mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
456 B
Plaintext
25 lines
456 B
Plaintext
/*
|
|
* Author: Garth 'L-H' de Wet, commy2
|
|
* Turns 0-1 damage of explosion Event into a rating system of 0-3
|
|
*
|
|
* Arguments:
|
|
* 0: The amount of damage <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* The rating [0-3] <NUMBER>
|
|
*
|
|
* Example:
|
|
* 0.05 call ace_goggles_fnc_getExplosionIndex;
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_damage"];
|
|
|
|
if (_damage <= 0.04) exitWith {0};
|
|
if (_damage <= 0.06) exitWith {1};
|
|
if (_damage <= 0.09) exitWith {2};
|
|
|
|
3
|