Quote:
Originally Posted by Silvers
You could use the "L4D_OnSpawnITMob" forward from Left4DHooks to block. Or probably detour the "CTerrorPlayer::OnVomitedUpon" or something similar to completely block.
|
I'm trying to use
CTerrorPlayer::OnVomitedUpon . What am I doing wrong ? This does not work, a panic event is created.
PHP Code:
public void EventPlayer_Now_It(Event event, const char [] name, bool Broadcast)
{
int client = GetClientOfUserId(GetEventInt(event, "userid"));
{
if(IsPlayerAlive(client) && GetClientTeam(client) == 2)
{
SDKCall(g_hSDK_Call_CTerrorPlayer_OnVomitedUpon, client, client, true);
SDKCall(g_hVomit, client);
}
}
}
Although your code
CTerrorPlayer::OnITExpired works perfectly