remove dead body/ghost(don't know how to call it)?
when someone has a net problem then he is out, but his float body remain in game. what is this body? is it still an entity? and when next round start, it's gone. but now i run csdm with no round end. so there are so many this XX remaining in game. how to remove them? thanks a lot and +kamma
|
Re: remove dead body/ghost(don't know how to call it)?
By blocking the ClCorpse Event. There two ways you can block it. This code is setup for when CSDM is active. This should work with 2.1 not sure about 2.0
It not an entity either. Think it a brush or a temp entity or something. PS. Not sure if this will block the ghost body for net problem but this will block the one left by player dying on a longer respawn time then 0.5 secs Code:
|
Re: remove dead body/ghost(don't know how to call it)?
thank you! tested it for two days, it's excellent!
|
Re: remove dead body/ghost(don't know how to call it)?
How to make this for individual players? I tried to get the player id and block it, seems like it doesn't work for me:
PHP Code:
|
Re: remove dead body/ghost(don't know how to call it)?
If enum is ok, code is ok
|
Re: remove dead body/ghost(don't know how to call it)?
Could you also test it please?
|
Re: remove dead body/ghost(don't know how to call it)?
lol no, already used such code and was working.
|
Re: remove dead body/ghost(don't know how to call it)?
I changed if(g_bBlockBody[id]) to if(is_user_connected(id)) and it still spawns the corpse.
Is there anyone else to test this beside arrogant connor? |
Re: remove dead body/ghost(don't know how to call it)?
I'm not arrogant, just telling you that the player id passed in the message is really the player id, so prevent corpse from being sent with index filter does work.
|
Re: remove dead body/ghost(don't know how to call it)?
Tell me where my fault is then? I could only test this on pod bots.
EDIT: Tested also on me, and I see myself in free look. Btw, I even made a debug message before getting the id. |
| All times are GMT -4. The time now is 04:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.