Blocking spawned CSDM items
How do you block the spawned items from CSDM item mode?
All of them have the prefix "csdm" or if its a weapon. "csdmw_" I want to block everything that is spawned from it. Heres the list from the source PHP Code:
|
Re: Blocking spawned CSDM items
what u trying to do?
y not remove the spawn items module / plugin |
Re: Blocking spawned CSDM items
I'm trying to block it from weapon pickup for a team.
I'm using the touch forward to do so but can't figure out how to do so. |
Re: Blocking spawned CSDM items
Get the player team and ent classname and do something like this.
Code:
Forward_Touch(Ent, id) |
Re: Blocking spawned CSDM items
Check first if ent is a valid entity or you'll get some errors.
I also guess that the function has to be public, and that you should return FMRES_IGNORED, not FMRES_HANDLED, but i may be wrong on this last point. Code:
You also may avoid using the native get_user_team checking player team offset. |
Re: Blocking spawned CSDM items
Meh...how you say...
|
Re: Blocking spawned CSDM items
Why doesn't this work? I tried doing this...
PHP Code:
arm is for armory_entity csd is for the csdm spawned items |
Re: Blocking spawned CSDM items
try to replace last FMRES_IGNORED with FMRES_HANDLED :/
Edit:I don't think will work. Should be FMRES_IGNORED but , you'r example should work :s Try to use equali(classname[0], "w")) and so...instead of classname[0] == 'w' |
Re: Blocking spawned CSDM items
I assume you have registered the forward in plugin_init ?
Code:
|
Re: Blocking spawned CSDM items
use {} ?
yes he declared touch |
| All times are GMT -4. The time now is 01:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.