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

[L4d] Determine infected type


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
muukis
Veteran Member
Join Date: Apr 2009
Old 09-22-2009 , 07:53   [L4d] Determine infected type
Reply With Quote #1

Is there a way to tell what type of infected (boomer/smoker/hunter/tank) a player is controlling?
muukis is offline
Dragonshadow
BANNED
Join Date: Jun 2008
Old 09-22-2009 , 08:22   Re: [L4d] Determine infected type
Reply With Quote #2

Courtesy AS:

PHP Code:
PrintToChatAll("My m_zombieclass: %i"GetEntProp(clientProp_Send"m_zombieClass")); 
Dragonshadow is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 09-23-2009 , 18:47   Re: [L4d] Determine infected type
Reply With Quote #3

Its actually the inferior method to GetClientModel because it doesnt change from death to respawn. Just so you know
AtomicStryker is offline
Frus
Senior Member
Join Date: Aug 2009
Old 09-23-2009 , 22:28   Re: [L4d] Determine infected type
Reply With Quote #4

Quote:
Originally Posted by AtomicStryker View Post
Its actually the inferior method to GetClientModel because it doesnt change from death to respawn. Just so you know
&& IsPlayerAlive(i). And it's more efficient than comparing a string.
Frus is offline
Damizean
SourceMod Donor
Join Date: Mar 2009
Old 09-25-2009 , 07:13   Re: [L4d] Determine infected type
Reply With Quote #5

Quote:
Originally Posted by AtomicStryker View Post
Its actually the inferior method to GetClientModel because it doesnt change from death to respawn. Just so you know
But using the client model to determine the zombie class won't let you use custom models.
__________________
Dat annoying guy
Damizean is offline
Send a message via AIM to Damizean Send a message via MSN to Damizean
olj
Veteran Member
Join Date: Jun 2009
Old 09-25-2009 , 07:21   Re: [L4d] Determine infected type
Reply With Quote #6

More than that - if you change your model with something like character select - plugins which use GetClientModel wont work properly.
__________________
olj is offline
Merudo
Senior Member
Join Date: Feb 2016
Old 03-01-2016 , 13:53   Re: [L4d] Determine infected type
Reply With Quote #7

This is super old, but I'd like to know what the problem is with GetEntProp(client, Prop_Send, "m_zombieClass").

Does it work incorrectly for dead zombies? If so, what should be used instead?
Merudo 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 15:38.


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