View Single Post
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 06-17-2021 , 14:06   Re: l4d2 Signature search
Reply With Quote #3

Quote:
Originally Posted by Silvers View Post
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 [] namebool Broadcast)
{
    
int client GetClientOfUserId(GetEventInt(event"userid"));
    {
        
        if(
IsPlayerAlive(client) && GetClientTeam(client) == 2)
        {
            
SDKCall(g_hSDK_Call_CTerrorPlayer_OnVomitedUponclientclienttrue);
            
SDKCall(g_hVomitclient);
        }
    }

Although your code CTerrorPlayer::OnITExpired works perfectly

Last edited by Alexmy; 06-17-2021 at 14:08.
Alexmy is offline