How to remove corpses?
was wondering how would corpse entities (dead bodies) be removed a single time on the entire map?
purpose: lets say before a match starts. (this will be instead of reloading the map manually) |
Re: How to remove corpses?
Hook Corpse message and block it
|
Re: How to remove corpses?
wouldn't that rather prevent a corpse to appear?
I want to clear out any existing corpses once before a match starts. (f.e. in cs1.6 when a round start) our game Half-life deathmatch Code:
Game registered user msgs: msgid size |
Re: How to remove corpses?
PHP Code:
|
Re: How to remove corpses?
If for HL, I guess you can play with "bodyque" entity.
In this game, it creates at server starts four "bodyque" entities. The system is : when you die, it creates a fake corpses by copying some informations to this entity, then meanwhile the dead player is hidden he can respawn somewhere else. You can have 4 fake bodies at once, so this four entites are reused once a player is dead. The related code in HLSDK :
Spoiler
I guess the most appropriate way, is to play with the origin because you don't want to remove them (created one time, and I guess you sill want to see corpses), and the next time they will be used, the origin will be overwritten. So, before a match as your example, loop on "bodyque" entities, and set their origins to let say 9999/9999/9999 Something like that :
Spoiler
|
Re: How to remove corpses?
thanks arkshine ill have a look at that.
Quote:
|
Re: How to remove corpses?
ClCorpse doesn't existe in HL and I've already gave you the solution above. Not sure what you're trying to do.
|
Re: How to remove corpses?
Quote:
|
Re: How to remove corpses?
Float:{ 9999.0, 9999.0, 9999.0 }
|
Re: How to remove corpses?
GFD
|
| All times are GMT -4. The time now is 05:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.