Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Parameters
- params ["_unit", "_selection", "_damage", "_source", "_projectile", "_hitIndex", "_instigator", "_hitPoint"];
- // Init
- private _heavyVehicles = [
- "O_Heli_Light_02_unarmed_F",
- "O_Heli_Transport_04_F",
- "O_Heli_Transport_04_bench_F",
- "B_MRAP_01_F",
- "I_MRAP_03_F",
- "O_MRAP_02_F",
- "I_Heli_Transport_02_F",
- "B_Heli_Transport_01_F"
- ];
- // Vehicle was shot by an rpg
- if ((_projectile in ["R_PG7_F", "ammo_Penetrator_PG7"]) && (_selection isEqualTo "") && ((typeOf _unit) in _heavyVehicles)) then {
- _damage = switch (typeOf _unit) do {
- case "B_Heli_Transport_01_F": {_damage * 0.80};
- case "B_MRAP_01_F": {_damage * 0.70};
- default {_damage * 0.75};
- };
- };
- // Exit
- _damage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement