Posted By: StJiongTeam
Waiting for AUM93 - 06/03/10 06:57
Looking forward to AUM93!!!Is it coming out soon, George?
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; } }