Advertisement
L1ghtsh0w

Untitled

Jan 11th, 2017
1,211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer reloading = FALSE;
  2.  
  3. reload()
  4. {
  5.     reloading = TRUE;
  6.     // reload anim/sound
  7.     // set ammo to full
  8.     llSleep(1.4);
  9.     reloading = FALSE;
  10. }
  11.  
  12. control( key vId, integer vLvl, integer vEdg )
  13. {
  14.     integer vStop = ~vLvl & vEdg;
  15.  
  16.     if ((llGetUnixTime() - gLstFrTm) < gDly )
  17.         return;
  18.  
  19.     if (reloading)
  20.         return;
  21.  
  22.     if ((vStop & CONTROL_ML_LBUTTON) && !reloading)
  23.     {
  24.         llTriggerSound( gFrSnd, 1 );
  25.         uFire();
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement