Skip to content

Instantly share code, notes, and snippets.

@jameslkingsley
Created October 27, 2016 17:10
Show Gist options
  • Select an option

  • Save jameslkingsley/dd177bb84dc4b28f8cb3da2293cf1c4a to your computer and use it in GitHub Desktop.

Select an option

Save jameslkingsley/dd177bb84dc4b28f8cb3da2293cf1c4a to your computer and use it in GitHub Desktop.
params ["_unit","_damagedPart","_damageDone","_sourceUnit","_projectile"];
// Define to-be-damaged parts.
_meme = [meme1, meme2];
_tailrotor = "mala vrtule";
if (_projectile != "FakeAmmo") exitWith {_damageDone};
if (((random 100) / 100) <= 0.2) then {
{
_x setHit [_tailrotor, 0.8];
_x removeAllEventHandlers "HandleDamage";
} forEach _meme;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment