-
-
Notifications
You must be signed in to change notification settings - Fork 464
Closed
Description
I was thinking something along the lines of????
EngineVersion test = GetEngineVersion();
if ( test == Engine_Left4Dead2 || test == Engine_Left4Dead ){
g_Cvar_Difficulty = FindConVar("z_difficulty");
char g_Difficulty[64];
if (g_Cvar_Difficulty == "Easy"){g_Difficulty = "easy"}};
if (g_Cvar_Difficulty == "Normal"){g_Difficulty = "normal"}};
if (g_Cvar_Difficulty == "Hard"){g_Difficulty = "hard"}};
if (g_Cvar_Difficulty == "Impossible"){g_Difficulty = "expert"}};
g_Cvar_FriendlyFire = FindConVar("survivor_friendly_fire_factor_%s", g_Difficulty);
} else {
g_Cvar_FriendlyFire = FindConVar("mp_friendlyfire");
}
the above code is broken and not even tested but the concept is there because L4D ignores mp_friendlyfire
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels