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

[L4D2] Detecting if player is trapped by a Special Infected.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eyal282
Veteran Member
Join Date: Aug 2011
Old 03-20-2017 , 17:43   [L4D2] Detecting if player is trapped by a Special Infected.
Reply With Quote #1

I got this code I made according to the dump file. Does it work flawlessly to all Special Infected?
Code:
stock bool IsClientTrappedBySI(client) // Is he trapped by a Special Infected?
{
	if(GetClientTeam(client) != 2)
		return false;
	
	return ( ( GetEntProp(client, Prop_Send, "m_pummelAttacker") > 0 ) || (GetEntProp(client, Prop_Send, "m_pounceAttacker") > 0) || (GetEntProp(client, Prop_Send, "m_jockeyAttacker") > 0) || (GetEntProp(client, Prop_Send, "m_isHangingFromTongue") > 0) || (GetEntProp(client, Prop_Send, "m_isProneTongueDrag") > 0) || (GetEntProp(client, Prop_Send, "m_reachedTongueOwner") > 0) ) ? true : false;
}

Last edited by eyal282; 03-20-2017 at 17:43.
eyal282 is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 03-21-2017 , 00:21   Re: [L4D2] Detecting if player is trapped by a Special Infected.
Reply With Quote #2

Not 100% check out this https://github.com/breezyplease/hard...op_util.sp#L82

to have a full list.
xerox8521 is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 03-21-2017 , 05:27   Re: [L4D2] Detecting if player is trapped by a Special Infected.
Reply With Quote #3

Quote:
Originally Posted by xerox8521 View Post
Not 100% check out this https://github.com/breezyplease/hard...op_util.sp#L82

to have a full list.
For some reason tongue owner didn't work for me.
eyal282 is offline
Reply



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 20:19.


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