AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   When the Player is using the sight to AWP (https://forums.alliedmods.net/showthread.php?t=129647)

lucas_7_94 06-15-2010 08:26

When the Player is using the sight to AWP
 
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

Re: When the Player is using the sight to AWP
 
Are you refering to zoom

#8 SickneSS 06-15-2010 08:35

Re: When the Player is using the sight to AWP
 
Quote:

Originally Posted by ot_207 (Post 1209333)
Are you refering to zoom

[off]ot is back :O![/off]

Yes...

lucas_7_94 06-15-2010 08:37

Re: When the Player is using the sight to AWP
 
Quote:

Originally Posted by ot_207 (Post 1209333)
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

Re: When the Player is using the sight to AWP
 
Hmm probably you should use Ham_Weapon_SecondaryAttack
Code:

RegisterHam ( Ham_WeaponSecondaryAttack, "weapon_awp", "fw_AwpSecAttack_Post", 1 )
and than you just can check FOV :?

joropito 06-15-2010 12:25

Re: When the Player is using the sight to AWP
 
Quote:

Originally Posted by NiHiLaNTh (Post 1209380)
Hmm probably you should use Ham_Weapon_SecondaryAttack
Code:

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/sour...pn_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

Re: When the Player is using the sight to AWP
 
Joro and Nihilanth really thanks.

one cuestion , exist a plugin with this funcion ?

KadiR 06-15-2010 17:17

Re: When the Player is using the sight to AWP
 
This?

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


All times are GMT -4. The time now is 14:52.

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