PDA

View Full Version : When the Player is using the sight to AWP


lucas_7_94
06-15-2010, 08:26
hi everyone.

One cuestion , it's possible to hook when the player is using the sight to the AWP and when he stop to use the sight ?

Sorry, I can not explain

ot_207
06-15-2010, 08:32
Are you refering to zoom

#8 SickneSS
06-15-2010, 08:35
Are you refering to zoom
ot is back :O!

Yes...

lucas_7_94
06-15-2010, 08:37
Are you refering to zoom

yeah, i need hook this , when is using the zoom and when is stop using the zoom.

NiHiLaNTh
06-15-2010, 09:00
Hmm probably you should use Ham_Weapon_SecondaryAttack

RegisterHam ( Ham_WeaponSecondaryAttack, "weapon_awp", "fw_AwpSecAttack_Post", 1 )

and than you just can check FOV :?

joropito
06-15-2010, 12:25
Hmm probably you should use Ham_Weapon_SecondaryAttack

RegisterHam ( Ham_WeaponSecondaryAttack, "weapon_awp", "fw_AwpSecAttack_Post", 1 )

and than you just can check FOV :?

Lucas, check CS-SDK for that:

http://code.google.com/p/cs-sdk/source/browse/trunk/wpn_awp.cpp#132

As nihilanth said, hook ham_weaponsecondaryattack (only used for M4A1, AWP, SCOUT and some others weapons).
Then you can change fov as your needs then supercede it

lucas_7_94
06-15-2010, 13:38
Joro and Nihilanth really thanks.

one cuestion , exist a plugin with this funcion ?

KadiR
06-15-2010, 17:17
This?

http://forums.alliedmods.net/showthread.php?p=468319