Raised This Month: $ Target: $400
 0% 

Knife Question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 09-20-2007 , 14:03   Re: Knife Question
Reply With Quote #7

Alka, that has to be the most inefficient way to do that...Executing a command like that every prethink?

Execute the command once, then alter the pev_weapons bitmask to be ONLY the knife, which would be something like set_pev(id,pev_weapons,CSW_KNIFE);

To safeguard from some workarounds (I think lastinv might be one of them), also hook CurWeapon and test which weapon it is being changed to - if it's not the knife, execute weapon_knife again.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode