Quote:
Originally Posted by DeathChaos25
I haven't seen anyone post an updated version of forceset to work with this so I'll just drop it here.
I've done literally nothing except change the left4downtown include to now be l4dhooks include, I also tested and it works with last stand update provided you have updated gamedata.
Spoiler
PHP Code:
#include <left4dhooks>
#include <sourcemod>
#include <sdktools>
static Handle:g_SurvSetCVar;
public Plugin:myinfo =
{
name = "Survivor set enforcer",
author = "",
description = "Forces L4D2 survivor set",
version = "1.0",
}
public OnPluginStart()
{
g_SurvSetCVar = CreateConVar("l4d_force_survivorset", "2", "Forces specified survivor set (0 - no change, 1 - force L4D1, 2 - Force L4D2)");
}
public Action:L4D_OnGetSurivorSet(&retVal)
{
new val = GetConVarInt(g_SurvSetCVar);
if(val == 1 || val == 2)
{
retVal = val;
return Plugin_Handled;
}
return Plugin_Continue;
}
public Action:L4D_OnFastGetSurvivorSet(&retVal)
{
new val = GetConVarInt(g_SurvSetCVar);
if(val == 1 || val == 2)
{
retVal = val;
return Plugin_Handled;
}
return Plugin_Continue;
}
|
@deathchaos25 Hey death, I'm using left4downtown, forceset, sceneprocessor to correct voices of l4d1 and l4d2 characters when using characterselect plugin. Since left4downtown is unecessary and to be got rid of, do you know how to correct voice without left4downtown?