ACE3/optionals/compat_gm/CfgWeapons.hpp
nomisum 7009404d39
Add Global Mobilization Compatibility (#7835)
* GM Compat

add GM Compat addon - it's #7835 without fastroping & refuel changes
* plus compat_gm moved into optionals
* plus a few whitespace fixes

Co-authored-by: jonpas <jonpas33@gmail.com>
Co-authored-by: Fusselwurm <fusselwurm@gmail.com>

* add ACE CSW dep (see script_component.hpp)

* warn about missiong compat_gm if GM is loaded

* move medic tents to EGVAR(medical,facilities) array thing

* add pDumbs

Co-authored-by: jonpas <jonpas33@gmail.com>
Co-authored-by: Fusselwurm <fusselwurm@gmail.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2021-10-14 10:48:54 -05:00

125 lines
4.4 KiB
C++

class CfgWeapons {
// MACHINE GUNS
class gm_pk_base;
class gm_pkm_base: gm_pk_base {
EGVAR(overheating,mrbs) = 3000;
EGVAR(overheating,slowdownFactor) = 1;
EGVAR(overheating,allowSwapBarrel) = 1;
EGVAR(overheating,dispersion) = 0.25;
};
class gm_machineGun_base;
class gm_mg3_base: gm_machineGun_base {
EGVAR(overheating,mrbs) = 3000;
EGVAR(overheating,slowdownFactor) = 1;
EGVAR(overheating,allowSwapBarrel) = 1;
EGVAR(overheating,dispersion) = 0.25;
};
class gm_mg3_veh_base: gm_mg3_base {
EGVAR(overheating,allowSwapBarrel) = 0;
};
class gm_launcher_base;
class gm_carlgustaf_m2_base: gm_launcher_base {
EGVAR(reloadlaunchers,enabled) = 1;
EGVAR(overpressure,angle) = 60;
EGVAR(overpressure,damage) = 0.7;
EGVAR(overpressure,priority) = 1;
EGVAR(overpressure,range) = 10;
};
// HELMETS
#define HEARING_PROTECTION_OPEN EGVAR(hearing,protection) = 0; EGVAR(hearing,lowerVolume) = 0;
#define HEARING_PROTECTION_VICCREW EGVAR(hearing,protection) = 0.85; EGVAR(hearing,lowerVolume) = 0.6;
#define HEARING_PROTECTION_EARMUFF EGVAR(hearing,protection) = 0.75; EGVAR(hearing,lowerVolume) = 0.5;
#define HEARING_PROTECTION_PELTOR EGVAR(hearing,protection) = 0.75; EGVAR(hearing,lowerVolume) = 0;
class gm_ge_headgear_headset_crew_base;
class gm_ge_headgear_headset_crew_oli: gm_ge_headgear_headset_crew_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_sph4_base;
class gm_ge_headgear_sph4_oli: gm_ge_headgear_sph4_base{
HEARING_PROTECTION_PELTOR
};
class gm_pl_headgear_wz63_base;
class gm_pl_army_headgear_wz63_oli: gm_pl_headgear_wz63_base {
HEARING_PROTECTION_PELTOR
};
class gm_pl_army_headgear_wz63_net_oli: gm_pl_headgear_wz63_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_crewhat_80_base;
class gm_ge_headgear_crewhat_80_blk: gm_ge_headgear_crewhat_80_base {
HEARING_PROTECTION_PELTOR
};
class gm_gc_headgear_crewhat_80_base;
class gm_gc_army_headgear_crewhat_80_blk: gm_gc_headgear_crewhat_80_base {
HEARING_PROTECTION_PELTOR
};
class gm_gc_headgear_zsh3_base;
class gm_gc_headgear_zsh3_wht: gm_gc_headgear_zsh3_base {
HEARING_PROTECTION_PELTOR
};
class gm_gc_headgear_zsh3_blu: gm_gc_headgear_zsh3_base {
HEARING_PROTECTION_PELTOR
};
class gm_gc_headgear_zsh3_orn: gm_gc_headgear_zsh3_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_beret_base;
class gm_ge_headgear_beret_crew_red_antiair: gm_ge_headgear_beret_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_beret_crew_blk_antitank: gm_ge_headgear_beret_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_beret_crew_blk_armor: gm_ge_headgear_beret_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_beret_crew_blk_armorrecon: gm_ge_headgear_beret_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_beret_crew_red_artillery: gm_ge_headgear_beret_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_beret_crew_red_engineer: gm_ge_headgear_beret_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_beret_crew_red_maintenance: gm_ge_headgear_beret_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_beret_crew_grn_mechinf: gm_ge_headgear_beret_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_beret_crew_red_militarypolice: gm_ge_headgear_beret_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_beret_crew_red_nbc: gm_ge_headgear_beret_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_beret_crew_red_opcom: gm_ge_headgear_beret_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_beret_crew_bdx_paratrooper: gm_ge_headgear_beret_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_beret_crew_blk_recon: gm_ge_headgear_beret_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_beret_crew_red_supply: gm_ge_headgear_beret_base {
HEARING_PROTECTION_PELTOR
};
class gm_ge_headgear_beret_crew_red_signals: gm_ge_headgear_beret_base {
HEARING_PROTECTION_PELTOR
};
};