mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
be9797d11d
* Add grenade rolling * Added some safeguards * Use `setVectorDirAndUp` instead of rotation * Don't allow players to roll grenades when in vehicles * Grenades - Rolling only add PFEH when needed (#10015) * Grenades - Rolling only add PFEH when needed * Corrected minor typo, moved variable init in preInit, fixed bugs --------- Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> * Don't switch modes if grenade can't be thrown * Minor tweaks --------- Co-authored-by: PabstMirror <pabstmirror@gmail.com>
25 lines
596 B
C++
25 lines
596 B
C++
#define COMPONENT grenades
|
|
#define COMPONENT_BEAUTIFIED Grenades
|
|
#include "\z\ace\addons\main\script_mod.hpp"
|
|
|
|
// #define DEBUG_MODE_FULL
|
|
// #define DISABLE_COMPILE_CACHE
|
|
// #define ENABLE_PERFORMANCE_COUNTERS
|
|
|
|
#ifdef DEBUG_ENABLED_GRENADES
|
|
#define DEBUG_MODE_FULL
|
|
#endif
|
|
|
|
#ifdef DEBUG_SETTINGS_GRENADES
|
|
#define DEBUG_SETTINGS DEBUG_SETTINGS_GRENADES
|
|
#endif
|
|
|
|
#include "\z\ace\addons\main\script_macros.hpp"
|
|
|
|
#define EFFECT_STAGE_RESETAI 0
|
|
#define EFFECT_STAGE_DELETELIGHT 1
|
|
#define EFFECT_STAGE_PARTIALRECOVERY 2
|
|
#define EFFECT_STAGE_FULLRECOVERY 3
|
|
|
|
#define MIN_EXPLOSION_TIME_FOR_ROLL 1
|