Advertisement
BenFromTTG

DoubleTap script

Apr 21st, 2020
950
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.47 KB | None | 0 0
  1. [doubletap, true] remoteExec ["hideObjectGlobal", 2];  
  2. doubletap addAction    
  3. [  
  4.     "Get Double-Tap 2",    
  5.     {  
  6.   params ["_target", "_idPerson", "_actionId", "_arguments"];  
  7.  
  8.    
  9.      
  10.    
  11.   _sus = [_idPerson] spawn {  
  12.   params["_idPerson"];
  13.    
  14.   doubletap say3D "open";  
  15.   sleep 0.8;  
  16.   doubletap say3D "swallow";  
  17.   sleep 0.8;  
  18.   doubletap say3D "break";  
  19.   sleep 0.8;  
  20.   doubletap say3D "belch";  
  21.    
  22.   _idPerson addEventHandler ["FiredMan",{  
  23.   params ["_unit","_weapon","_muzzle"];  
  24.   _typeWeapon = _weapon call BIS_fnc_itemType;
  25.   _timeFiring = -1;  
  26.   switch (_typeWeapon select 1) do {  
  27.   case 'SniperRifle' : {_timeFiring = 0.5};    
  28.   case 'AssaultRifle' : {_timeFiring = 0.5};  
  29.   case 'Handgun' : {_timeFiring = 0.5};  
  30.   case 'Rifle' : {_timeFiring = 0.5};  
  31.   case 'SubmachineGun' : {_timeFiring = 0.5};  
  32.   case 'MachineGun' : {_timeFiring = 0.5};  
  33.   case 'Mortar' : {};  
  34.   case 'GrenadeLauncher' : {_timeFiring = 0.5};    
  35.   case 'BombLauncher' : {};    
  36.   case 'MissileLauncher' : {_timeFiring = 0.5};    
  37.   case 'RocketLauncher' : {_timeFiring = 0.5};    
  38.   case 'Cannon' : {};    
  39.   case 'Throw' : {};    
  40.   };  
  41.   if (_timeFiring isEqualTo -1) exitWith {};  
  42.   (vehicle _idPerson) setWeaponReloadingTime [(vehicle _idPerson), _muzzle, _timeFiring];  
  43.   }];  
  44.   };  
  45.  
  46.   },  
  47.   [],  
  48.   1.5,    
  49.   true,    
  50.   true,    
  51.   "",  
  52.   "true",  
  53.   5,  
  54.   false,  
  55.   "",  
  56.   ""  
  57. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement