velocity_by_aim
i want it to add boost every time i press mouse 2 when holding a knife.
doesnt work :S PHP Code:
|
Re: velocity_by_aim
You can't hook +attack2 and other original half-life + and - commands. There is a way to hook it through fakemeta though. Try to search a little.
|
Re: velocity_by_aim
With this you can hook secondary attack of knife
Code:
public plugin_init ( ) |
Re: velocity_by_aim
hmm like this ?
PHP Code:
|
Re: velocity_by_aim
No
Replace Boost( id ) with Boost( iKnife ), where iKnife is the entity index of the knife, then use private offset m_pPlayer to retrieve player id, and add velocity to him (you may also check if it's the first push of attack2) This may help you : http://cs-sdk.googlecode.com/svn/trunk/wpn_knife.cpp Also, you shoule make some research on hamsandwich, fakemeta, on how to use ham hooks and pdatas, before you start anything, else you will make lots of errors and you gonna loose lot of time. |
| All times are GMT -4. The time now is 05:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.