Replace weapon entity with other
Hi.
I want to replace default weapons spawned by map to other, example weapon_m4a1 to weapon_m3. How? I saw plugin like this once, but cant find anymore. |
Re: Replace weapon entity with other
|
Re: Replace weapon entity with other
Hook "armoury_entity" (Ham_Spawn), and use cs_[get|set]_armoury_type() to get/set the weapon type and I think you would need to change pev_model too to show the new weapon model.
|
Re: Replace weapon entity with other
Quote:
PHP Code:
|
Re: Replace weapon entity with other
plugin_precache
|
Re: Replace weapon entity with other
o_O this is strange!
I tried with fm_setmodel, not works. I tried with plugin_precache (and find_ent_by_class) - nothing found. Wtf o.O |
Re: Replace weapon entity with other
Use Ham_Spawn in plugin_precache()
|
Re: Replace weapon entity with other
@up - oh, thanks. I nevermind about that. Now works!
|
| All times are GMT -4. The time now is 15:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.