GAMES CHEATS GUIs SCRIPTS MAPS TUTORIALS SOUNDS TOOLS SERVERS SKINS TEXTURES MODELS PLUGINS MODS
 
Rating
Based on GVME Community!
Rating:


Your rating: N/A
Total votes: 0

You cannot rating yet!
You can rate anything - when you add rating to a submission your vote determines its success or failure.

To vote on this submission
register or login

You cannot add to Favorites!
Total Favorites

You cannot say thanks!
You must register or login

Statistics
Scores and popularity
Views: 1523
Downloads: 0
Feedback: 0

2 zoom sniper scope

Share: F F F F F F F
  Added by: exeqtR
  Category: GoldSource Engine > Programming
Difficulty Level: Begginer
  Tags: zoom sniper scope double awp
CODE
//You may "Cut & Paste" this code...Just
//please show me credit
//Don''t forget to "int Scope_Zoom"
void CSniperRifle::SecondaryAttack( void )
{
// Zoom code
switch (Scope_Zoom)
{
case 1: m_pPlayer->m_iFOV = 0;
m_fInZoom = 0;
Scope_Zoom = 2;
break;
case 2: m_pPlayer->m_iFOV = 45;
m_fInZoom = 1;
Scope_Zoom = 3;
break;
case 3: m_pPlayer->m_iFOV = 11;
m_fInZoom = 1;
Scope_Zoom = 1;
break;
default: m_pPlayer->m_iFOV = 45;
m_fInZoom = 1;
Scope_Zoom = 3;
break;
}
// Plays "scope_zoom" sound
EMIT_SOUND(ENT(m_pPlayer->pev), CHAN_WEAPON, "zoom.wav", 0.8, ATTN_NORM);
//Set time
pev->nextthink = gpGlobals->time + 0.1;
m_flNextSecondaryAttack = gpGlobals->time + 1.0;
}
  Added: Jan 10 2021, 11:39 PM    Modified: Never edited!    Thanks List: [+]      
Add Feedback

You cannot post yet!
Get involved on GVME by posting your thoughts. Give authors your feedback to help them develop.

To post in this submission register or login
Feedback