Weapon Index from EntID?
Hello, is there any way around to detect weapon index from the world entity id?
|
Re: Weapon Index from EntID?
PHP Code:
|
Re: Weapon Index from EntID?
Okay, and any way how to use it in FM_SetModel? It looks like I won't be able to destroy only deagle whenever dropped, because when I compared the model it was w_weaponbox.mdl instead of w_deagle.
|
Re: Weapon Index from EntID?
FM_SetModel gets you a entity id, so you can use that define function on it.
And no, it can't have w_weaponbox.mdl model because then it would look like a big green can (drops from HLDM on death), it's got "weaponbox" classname but the model is models/w_<weapon_name>.mdl, so revise your code :P |
Re: Weapon Index from EntID?
PHP Code:
try it yourself |
Re: Weapon Index from EntID?
Because you are hooking the weapon box.
Try finding it's containing weapons. Code:
Code:
|
| All times are GMT -4. The time now is 03:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.