Block pickup for everything except C4
To not create a new thread, I've changed the title and the first post.
So, how can I block any entity from picking up except C4? It just can't catch 'models/w_c4.mdl' while catches any other model perfectly. Code:
|
Re: Is it better to register new event instead?
Quote:
|
Re: Is it better to register new event instead?
Quote:
|
Re: Is it better to register new event instead?
Quote:
EDIT: Looks like I made it to work propertly. Code I'm using right now: Code:
|
Re: Block pickup for everything except C4
Changed title and question of the thread. Please take attention. ^^
|
Re: Block pickup for everything except C4
Quote:
|
Re: Block pickup for everything except C4
Well, I'm not an idiot for sure. And I believe that I'm the only one who had that problem with CurWeapon (which was easily solved). I don't think anyone could have used this thread, so I changed it instead of creating a new one.
If you wont answer to question, don't post non-sense. |
Re: Block pickup for everything except C4
ok i'm were working on situation like yours, but i deleted that code
ok you need hook touch forwards, and check what he touched, if weaponbox, and get his classname, if its equal to csw_c4 (dont remmeber really how i did) then continue, if something other do supercede |
Re: Block pickup for everything except C4
LOL, does C4 have an individual class name?
|
Re: Block pickup for everything except C4
grenade or otherway there is way to get CSW_c4
|
| All times are GMT -4. The time now is 09:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.