Check if it is a player (aiming)
I am hooking a knife attack with ham:
PHP Code:
PHP Code:
I tested it like that now but I am getting weird errors: PHP Code:
|
Re: Check if it is a player (aiming)
Getting
Quote:
|
Re: Check if it is a player (aiming)
The weapon entity is passed to the ham forward, not player id. Use pev( iEntity , pev_owner ) to get the player id. You will still get the knife attack animation though no attack is actually occurring.
Untested PHP Code:
|
Re: Check if it is a player (aiming)
Wow, works perfect. Can you show me an example with that please? So that I can check also other entities easily.
PHP Code:
|
Re: Check if it is a player (aiming)
PHP Code:
|
Re: Check if it is a player (aiming)
Quote:
|
Re: Check if it is a player (aiming)
Quote:
|
Re: Check if it is a player (aiming)
Quote:
|
Re: Check if it is a player (aiming)
Uhhh sory but if u dont aim at the person and ur near him u may still hit him... therefore use trace_forward. :P
Hope this helps if when u want to fix that bug. |
| All times are GMT -4. The time now is 11:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.