SHARE
TWEET

Untitled

a guest May 26th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. // Parameters
  3. params ["_unit", "_selection", "_damage", "_source", "_projectile", "_hitIndex", "_instigator", "_hitPoint"];
  4.  
  5. // Init
  6. private _heavyVehicles = [
  7.     "O_Heli_Light_02_unarmed_F",
  8.     "O_Heli_Transport_04_F",
  9.     "O_Heli_Transport_04_bench_F",
  10.     "B_MRAP_01_F",
  11.     "I_MRAP_03_F",
  12.     "O_MRAP_02_F",
  13.     "I_Heli_Transport_02_F",
  14.     "B_Heli_Transport_01_F"
  15. ];
  16.  
  17. // Vehicle was shot by an rpg
  18. if ((_projectile in ["R_PG7_F", "ammo_Penetrator_PG7"]) && (_selection isEqualTo "") && ((typeOf _unit) in _heavyVehicles)) then {
  19.     _damage = switch (typeOf _unit) do {
  20.         case "B_Heli_Transport_01_F": {_damage * 0.80};
  21.         case "B_MRAP_01_F": {_damage * 0.70};
  22.         default {_damage * 0.75};
  23.     };
  24. };
  25.  
  26. // Exit
  27. _damage
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top