Raised This Month: $ Target: $400
 0% 

Corpse classname


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 05-01-2011 , 10:59   Corpse classname
Reply With Quote #1

How to detect if a dead body is player's corpse, whats classname of it?
( I need to check it not by model )
__________________
xbatista is offline
Send a message via Skype™ to xbatista
pRoxxxDD
Junior Member
Join Date: Feb 2011
Location: Ukraine
Old 05-01-2011 , 11:02   Re: Corpse classname
Reply With Quote #2

from HLSDK
PHP Code:
string_t    istrClassname MAKE_STRING("bodyque"); 
__________________
pRoxxxDD is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-01-2011 , 11:25   Re: Corpse classname
Reply With Quote #3

The corpse is not an entity spawned by the server. It's a temporary client-side entity triggered from ClCorpse message.
__________________
Arkshine is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 05-01-2011 , 11:26   Re: Corpse classname
Reply With Quote #4

So, I can't detect it's classname "bodyque" ?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-01-2011 , 11:27   Re: Corpse classname
Reply With Quote #5

CS != HL ; even if this entity exists in CS, it's not used. You can use it though.
__________________
Arkshine is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 05-01-2011 , 11:30   Re: Corpse classname
Reply With Quote #6

For example:
PHP Code:
static entbody;
new 
Float:aim_distance get_user_aiming(cliententbody);

if ( 
aim_distance <= 50.0 )
if (
pev_valid(ent) ) blah blah blah
if ( corpse 
How to detect if it is player's Corpse?

EDIT: So can I detect by classname "bodyque" or not?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-01-2011 , 11:32   Re: Corpse classname
Reply With Quote #7

Try?
__________________
hleV is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-01-2011 , 11:33   Re: Corpse classname
Reply With Quote #8

When you can't aim the player, meaning no entity found.
__________________
Arkshine is offline
pRoxxxDD
Junior Member
Join Date: Feb 2011
Location: Ukraine
Old 05-01-2011 , 11:42   Re: Corpse classname
Reply With Quote #9

mm, I did so, block ClCorpse Message, hook player death, making him invisible on his origin create an entity, put his model, death animations. Then I can do anything with a corpse.

P.S. Sorry my bad English.
__________________
pRoxxxDD is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 05-01-2011 , 11:52   Re: Corpse classname
Reply With Quote #10

Tried to detect by that classname, it's not working.
Btw I don't need antyhing only detect if entity is player's body
__________________
xbatista is offline
Send a message via Skype™ to xbatista
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 04:27.


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