/* * 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 * * Return Value: * The rating [0-3] * * 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