remove hostage + bombsite
how can i remove hostages and bombsites?
i have looked at no objectives + no round timer, i want the round timer and i want the round to end @ 0:00, but this plugin checks every entity spawn which is not the way i want it to so i just want to find hostage entity and bomb site entity and remove them can i do this? Code:
|
Re: remove hostage + bombsite
Simple hostage remove should be potential to crash. You can try to request CHostage::Remove(void) implementation for Ham Sandwich module.
|
Re: remove hostage + bombsite
i think thare is a plugin for this to set the hostage life with that u can set the hostage life to 0 so thay die on the begin of the map
|
Re: remove hostage + bombsite
i can just move the hostages away
but would that script work and it has to be executed every round right? |
Re: remove hostage + bombsite
i noticed after trying to remove hostages that renaming the entity works
so you give each hostage entity a new classname like old_hostage and then you remove all old_hostage. doesnt crash or nothin :) |
Re: remove hostage + bombsite
I would test that with bots on server if I were you... just to be safe...
|
Re: remove hostage + bombsite
Quote:
|
Re: remove hostage + bombsite
i tested that with bots and it works fine :)
i suggest you test it too :) |
Re: remove hostage + bombsite
Kill hostages with trigger_hurt or move them under the floor.
|
Re: remove hostage + bombsite
ugh well as you said my server got unstable :/ (it wasnt before)
so i changed it and moved the hostages instead engfunc(engfunc_setorigin,ent,{4096.0,4096.0, 4096.0}) |
| All times are GMT -4. The time now is 07:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.