Because I really like the shooter template series, so I am eager to see the coming one in AUM93. By the way, I think if the template have two modes for sniper scope. Because you need to hold the right mouse button to keep the sniper scope in current mode (like COD,hold RT), I suggest adding another mode of sniper scope that you just need to click the right mouse button to open the scope and click again to close it (like Counter Strike). My friend help me change it by the following code, please check it out, are there any problems? Thanks.
First declare two variables
int openScope // the state that open the scope
var curWeapon // current weapon
Code:
function judgesnipe(){
   if(curWeapon ==2  &&openScope==0){sniperscope .flags |= SHOW; // show the sniper scope panel
      gun2.flags2 &= ~SHOW;
          while (camera.arc > 10) // zoom in until camera.arc is smaller than or equal with 10
    {
     camera.arc -= 10 * time_step; // 10 gives the zoom-in speed
     wait (1);
    }
    // the maximum zoom-in factor has been achieved here
    camera.pan += (5 - random(10)) * 0.01 * time_step; // time to add fatigue to the mix
    camera.tilt += (5 - random(10)) * 0.01 * time_step; // the pan and tilt angles of the camera will c}
    openScope = 1;
    damage = 100;
return;
          }
          if(curWeapon ==2  && openScope==1){ 
          sniperscope.flags &= ~SHOW; // then let's hide the sniper scope panel
     
    while (camera.arc < 60) // restore the initial camera.arc value of 90
    {
     camera.arc += 5 * time_step; // 5 gives the zoom-out value
     wait (1);
    }
    gun2.flags2 |= SHOW;
    camera.arc = 60; // the initial camera.arc value is restored here
    openScope=0;
    damage =5;
   }
             }


Finally, put judgesnipe(); inside the mouse_right.


3DGS Commercial A7/A8
Intel i7, 8GB DDR3, AMD 5870