Raised This Month: $ Target: $400
 0% 

dead body owner and position


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
paegus
Senior Member
Join Date: Nov 2004
Location: Extreme low earth orbit
Old 04-03-2009 , 03:46   Re: dead body owner and position
Reply With Quote #10

find the classname of the entity that is spawned as a ragdoll. phys_ragdoll or something.. then scroll though them with FindEntityByClassName(eTarget, "prop_ragdoll"), when you find one whose owner is your target then you can get the m_vecOrigin(?) properties.

but depending on the mod, usually any updates to the corpse are handled client side... which is why screenshots of a given scene are sometimes different. my view of the corpse is over here. yours will be over there. somie mods (like hidden-source) maintain position data for them since they contribute to game-play. so your data will report the position the entity was spawned at.

for that matter what would GetClientAimTarget() reply with for non-updated entities?
__________________
Live and learn or die and teach by example.
Plugins Mine | Hidden:SourceMod
paegus is offline
 



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 21:48.


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