how to detect when player pull pin from grenade?
Hello, today I'm very early on here ( happens! :) )
Anyway... how to detect when player pull pin from grenade? :):) Thanks! |
Re: how to detect when player pull pin from grenade?
1 Attachment(s)
If you are referring at (see attachment), I think that's not an event in game, that's only an animation by weapon's model.
|
Re: how to detect when player pull pin from grenade?
Couldnt you hook cmdstart (or something) and check if the weapon is a nade and if in_attack is pressed?
|
Re: how to detect when player pull pin from grenade?
See the code source and figure out yourself. Tip : m_flReleaseThrow/m_flStartThrow.
|
Re: how to detect when player pull pin from grenade?
Quote:
I need to check if player hold in hand grenade, so how do i check that? |
Re: how to detect when player pull pin from grenade?
Quote:
|
Re: how to detect when player pull pin from grenade?
So I guess you don't understand the code.
|
Re: how to detect when player pull pin from grenade?
Quote:
|
Re: how to detect when player pull pin from grenade?
It seems not. You need to check the offsets in PrimaryAttack, and if you check here, it means obviously you're holding the grenade.
|
| All times are GMT -4. The time now is 00:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.