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>
18 lines
483 B
C++
18 lines
483 B
C++
class vn_grenadehand;
|
|
class vn_molotov_grenade_ammo: vn_grenadehand {
|
|
ACE_damageType = QGVAR(explosive_incendiary);
|
|
EGVAR(frag,enabled) = 0;
|
|
};
|
|
|
|
class vn_t67_grenade_ammo: vn_grenadehand {
|
|
EGVAR(grenades,rollVectorDirAndUp)[] = {{-1, 0, 0}, {0, 0, 1}};
|
|
};
|
|
class vn_chicom_grenade_ammo: vn_grenadehand {
|
|
EGVAR(grenades,rollVectorDirAndUp)[] = {{1, 0, 0}, {0, 0, 1}};
|
|
};
|
|
|
|
class SmokeShell;
|
|
class vn_m14_grenade_ammo: SmokeShell {
|
|
EGVAR(grenades,incendiary) = 1;
|
|
};
|