Raised This Month: $ Target: $400
 0% 

Corpese Quesitons?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fredd
Veteran Member
Join Date: Jul 2007
Old 08-09-2007 , 20:43   Corpese Quesitons?
Reply With Quote #1

  1. whats the difference between players and corpse?
  2. are they the same thing just one is dead and one is not?
  3. is the index of the dead player same as when he was alive?
  4. how do i find a corpse , does the classname "player" change or not?
  5. how do i remove singal corpse's?
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!
Fredd is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-09-2007 , 21:04   Re: Corpese Quesitons?
Reply With Quote #2

1.Corpse = Cadaver (Dead player).
2.Yeah.
3.Think so.
4.Check if is_user_alive(index) .
5.Removing player ent.
Alka is offline
Old 08-09-2007, 21:05
[X]-RayCat
This message has been deleted by [X]-RayCat.
Fredd
Veteran Member
Join Date: Jul 2007
Old 08-09-2007 , 21:06   Re: Corpese Quesitons?
Reply With Quote #3

i know what the fuck is corpse i was tryin to ask if there any different when the player is dead or not execpt the fact hes dead.. i was wondering is there anythin changin, flags or anything. but thx alot alka gg raycat
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!
Fredd is offline
Fredd
Veteran Member
Join Date: Jul 2007
Old 08-09-2007 , 21:33   Re: Corpese Quesitons?
Reply With Quote #4

sorry to double post, but if i revive that dead player will his corpse be gonne?
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!
Fredd is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 08-10-2007 , 03:10   Re: Corpese Quesitons?
Reply With Quote #5

Put simple it's like this:
1. Player ID is alive. No corpse for him/her yet.
2. Player ID dies. When that happens the player "changes" to a corpse, flags are set to signal the engine, classname remains "player", ID remains a "valid" id, a timer is set (depending on "mp_corpse" or something like that) at which end the corpse (view model) is to be removed from the map.
3. The corpse "expired" and needs to be removed. The event "ClCorpse" is fired.
4. If the player is "revived" then all actions are suspended and the player "resets". This means that the corpse is removed from the map, timers are invalidated, etc.

The entire time the corpse is visible, ANY change to the phisical properties of the player will be reflected in the corpse too (ex. a team or model change would reset the corpses model to reflect that change).
You don't actually need to set/reset player flags unless you want a fine tune of that process. Some flags cannot be modified tho...
_Master_ is offline
Fredd
Veteran Member
Join Date: Jul 2007
Old 08-10-2007 , 05:19   Re: Corpese Quesitons?
Reply With Quote #6

k ty
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!
Fredd is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 08-11-2007 , 11:42   Re: Corpese Quesitons?
Reply With Quote #7

  1. Player is tied to an entity and corpse isn't actual entity. It's a special type of a temporary entity that is created by the game mod.
  2. Generally speaking "no". Before ClCorpse message is fired answer would be "yes".
  3. Yes, but dead player is still tied to an entity that isn't tied to a corpse.
  4. Since corpse is a temporary entity, it doesn't have any classname at all. You have to cache player's entity origin when ClCorpse message is fired so you can retrieve it at any time even when actual player is flying outside of map bounds.
  5. Generally speaking this shouldn't be possible. You can remove all decals/corpses with fm_cs_remove_decals() function from the Fakemeta Utilities optionally you can pass an id of a given client to remove such things only for that client.
As a side note: cl_corpsestay clientside CVar controls how long in seconds corpses will stay for a given client.

Last edited by VEN; 08-11-2007 at 11:47.
VEN is offline
Fredd
Veteran Member
Join Date: Jul 2007
Old 08-13-2007 , 02:00   Re: Corpese Quesitons?
Reply With Quote #8

ty so much
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!
Fredd is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 08-13-2007 , 02:49   Re: Corpese Quesitons?
Reply With Quote #9

I did say it's put simple
_Master_ 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 15:20.


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