2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-01-18 21:50:45 +00:00
|
|
|
/*
|
2015-09-29 16:51:24 +00:00
|
|
|
* Author: Garth 'L-H' de Wet, commy2
|
2015-02-02 09:04:53 +00:00
|
|
|
* 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:
|
2015-04-18 03:40:37 +00:00
|
|
|
* 0.05 call ace_goggles_fnc_getExplosionIndex;
|
2015-02-02 09:04:53 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-01-18 21:50:45 +00:00
|
|
|
|
2015-09-29 16:51:24 +00:00
|
|
|
params ["_damage"];
|
2015-01-18 21:50:45 +00:00
|
|
|
|
2015-09-29 16:51:24 +00:00
|
|
|
if (_damage <= 0.04) exitWith {0};
|
|
|
|
if (_damage <= 0.06) exitWith {1};
|
|
|
|
if (_damage <= 0.09) exitWith {2};
|
|
|
|
|
|
|
|
3
|