AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   l4d2 Signature search (https://forums.alliedmods.net/showthread.php?t=333058)

Alexmy 06-17-2021 09:33

l4d2 Signature search
 
HI. Does anyone have the opportunity to find a signature so that the survivor ignores the fat man's vomit. I found https://forums.alliedmods.net/showthread.php?t=185653 the fat man's vomiting is ignored but a panic event is still generated

Silvers 06-17-2021 10:21

Re: l4d2 Signature search
 
You could use the "L4D_OnSpawnITMob" forward from Left4DHooks to block. Or probably detour the "CTerrorPlayer::OnVomitedUpon" or something similar to completely block.

Alexmy 06-17-2021 14:06

Re: l4d2 Signature search
 
Quote:

Originally Posted by Silvers (Post 2750128)
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

Silvers 06-17-2021 14:09

Re: l4d2 Signature search
 
Detour "CTerrorPlayer::OnVomitedUpon" not use as SDKCall.

cravenge 06-18-2021 05:22

Re: l4d2 Signature search
 
Quote:

Originally Posted by Alexmy (Post 2750155)
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

The third parameter decides whether to spawn an IT mob along or not. Just change to false.

Lux 06-18-2021 06:47

Re: l4d2 Signature search
 
Quote:

Originally Posted by cravenge (Post 2750265)
The third parameter decides whether to spawn an IT mob along or not. Just change to false.


CTerrorPlayer::OnVomitedUpon
the third param is if the boomer explosion biled them or not, nextbot manager handles mob spawning.

cravenge 06-18-2021 07:58

Re: l4d2 Signature search
 
Quote:

Originally Posted by Lux (Post 2750277)

CTerrorPlayer::OnVomitedUpon
the third param is if the boomer explosion biled them or not, nextbot manager handles mob spawning.

Ah, I guess that makes sense as to why an IT mob didn't spawn when it's set to false, at least from my testing.

Alexmy 06-22-2021 14:00

Re: l4d2 Signature search
 
Can anyone help me? Is this function still working CTerrorPlayer_OnAdrenalineUsed? If so, who can help me find the updated signature?

Psyk0tik 06-22-2021 14:13

Re: l4d2 Signature search
 
Quote:

Originally Posted by Alexmy (Post 2750740)
Can anyone help me? Is this function still working CTerrorPlayer_OnAdrenalineUsed? If so, who can help me find the updated signature?

I already posted here: https://forums.alliedmods.net/showpo...1&postcount=66

Alexmy 06-22-2021 14:38

Re: l4d2 Signature search
 
Quote:

Originally Posted by Crasher_3637 (Post 2750743)

when using the signature, the server crashes


All times are GMT -4. The time now is 10:44.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.