mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
25 lines
459 B
Plaintext
25 lines
459 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* 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
|
|
*/
|
|
|
|
params ["_damage"];
|
|
|
|
if (_damage <= 0.04) exitWith {0};
|
|
if (_damage <= 0.06) exitWith {1};
|
|
if (_damage <= 0.09) exitWith {2};
|
|
|
|
3
|