Raised This Month: $12 Target: $400
 3% 

l4d2 Signature search


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 06-17-2021 , 09:33   l4d2 Signature search
Reply With Quote #1

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
Alexmy is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-17-2021 , 10:21   Re: l4d2 Signature search
Reply With Quote #2

You could use the "L4D_OnSpawnITMob" forward from Left4DHooks to block. Or probably detour the "CTerrorPlayer::OnVomitedUpon" or something similar to completely block.
__________________
Silvers is offline
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
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-17-2021 , 14:09   Re: l4d2 Signature search
Reply With Quote #4

Detour "CTerrorPlayer::OnVomitedUpon" not use as SDKCall.
__________________
Silvers is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 06-18-2021 , 05:22   Re: l4d2 Signature search
Reply With Quote #5

Quote:
Originally Posted by Alexmy View Post
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.

Last edited by cravenge; 06-18-2021 at 05:22.
cravenge is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 06-18-2021 , 06:47   Re: l4d2 Signature search
Reply With Quote #6

Quote:
Originally Posted by cravenge View Post
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.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 06-18-2021 , 07:58   Re: l4d2 Signature search
Reply With Quote #7

Quote:
Originally Posted by Lux View Post

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.
cravenge is offline
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 06-22-2021 , 14:00   Re: l4d2 Signature search
Reply With Quote #8

Can anyone help me? Is this function still working CTerrorPlayer_OnAdrenalineUsed? If so, who can help me find the updated signature?
Alexmy is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 06-22-2021 , 14:13   Re: l4d2 Signature search
Reply With Quote #9

Quote:
Originally Posted by Alexmy View Post
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
__________________
Psyk0tik is offline
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 06-22-2021 , 14:38   Re: l4d2 Signature search
Reply With Quote #10

Quote:
Originally Posted by Crasher_3637 View Post
when using the signature, the server crashes
Alexmy is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:25.


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