REGISTER_REGISTRY(Turrets)
REGISTRY_CHECK(Turrets)
+#define TR_PROPS_COMMON(P, class, prefix) \
+ P(class, prefix, aim_firetolerance_dist, float) \
+ P(class, prefix, aim_maxpitch, float) \
+ P(class, prefix, aim_maxrot, float) \
+ P(class, prefix, aim_speed, float) \
+ P(class, prefix, ammo, float) \
+ P(class, prefix, ammo_max, float) \
+ P(class, prefix, ammo_recharge, float) \
+ P(class, prefix, health, float) \
+ P(class, prefix, respawntime, float) \
+ P(class, prefix, shot_dmg, float) \
+ P(class, prefix, shot_force, float) \
+ P(class, prefix, shot_radius, float) \
+ P(class, prefix, shot_refire, float) \
+ P(class, prefix, shot_speed, float) \
+ P(class, prefix, shot_spread, float) \
+ P(class, prefix, shot_volly, float) \
+ P(class, prefix, shot_volly_refire, float) \
+ P(class, prefix, target_range, float) \
+ P(class, prefix, target_range_min, float) \
+ P(class, prefix, target_range_optimal, float) \
+ P(class, prefix, target_select_anglebias, float) \
+ P(class, prefix, target_select_missilebias, float) \
+ P(class, prefix, target_select_playerbias, float) \
+ P(class, prefix, target_select_rangebias, float) \
+ P(class, prefix, target_select_samebias, float) \
+ P(class, prefix, track_accel_pitch, float) \
+ P(class, prefix, track_accel_rot, float) \
+ P(class, prefix, track_blendrate, float) \
+ P(class, prefix, track_type, float) \
+ /**/
+
#define TR_PROPS(L, class, prefix) \
L(TR_CONFIG_BEGIN, TR_CONFIG, TR_CONFIG_END, class, prefix) \
- /**/ \
+ /**/
#define TR_CONFIG(class, turname, fld, T) _TR_CONFIG(class, fld, T, turname)
#define TR_CONFIG_BEGIN(class) METHOD(class, tr_config, void(class this)) {
#define X(BEGIN, P, END, class, prefix) \
BEGIN(class) \
- P(class, prefix, aim_firetolerance_dist, float) \
- P(class, prefix, aim_maxpitch, float) \
- P(class, prefix, aim_maxrot, float) \
- P(class, prefix, aim_speed, float) \
- P(class, prefix, ammo, float) \
- P(class, prefix, ammo_max, float) \
- P(class, prefix, ammo_recharge, float) \
- P(class, prefix, health, float) \
- P(class, prefix, respawntime, float) \
- P(class, prefix, shot_dmg, float) \
- P(class, prefix, shot_force, float) \
- P(class, prefix, shot_radius, float) \
- P(class, prefix, shot_refire, float) \
- P(class, prefix, shot_speed, float) \
- P(class, prefix, shot_spread, float) \
- P(class, prefix, shot_volly, float) \
- P(class, prefix, shot_volly_refire, float) \
+ TR_PROPS_COMMON(P, class, prefix) \
P(class, prefix, speed_fast, float) \
P(class, prefix, speed_slow, float) \
P(class, prefix, speed_slower, float) \
P(class, prefix, speed_stop, float) \
- P(class, prefix, target_range, float) \
- P(class, prefix, target_range_min, float) \
- P(class, prefix, target_range_optimal, float) \
- P(class, prefix, target_select_anglebias, float) \
- P(class, prefix, target_select_missilebias, float) \
- P(class, prefix, target_select_playerbias, float) \
- P(class, prefix, target_select_rangebias, float) \
- P(class, prefix, target_select_samebias, float) \
- P(class, prefix, track_accel_pitch, float) \
- P(class, prefix, track_accel_rot, float) \
- P(class, prefix, track_blendrate, float) \
- P(class, prefix, track_type, float) \
P(class, prefix, turnrate, float) \
END()
TR_PROPS(X, EWheel, ewheel)
#define X(BEGIN, P, END, class, prefix) \
BEGIN(class) \
- P(class, prefix, aim_firetolerance_dist, float) \
- P(class, prefix, aim_maxpitch, float) \
- P(class, prefix, aim_maxrot, float) \
- P(class, prefix, aim_speed, float) \
- P(class, prefix, ammo, float) \
- P(class, prefix, ammo_max, float) \
- P(class, prefix, ammo_recharge, float) \
- P(class, prefix, health, float) \
- P(class, prefix, respawntime, float) \
- P(class, prefix, shot_dmg, float) \
- P(class, prefix, shot_force, float) \
- P(class, prefix, shot_radius, float) \
- P(class, prefix, shot_refire, float) \
- P(class, prefix, shot_speed, float) \
- P(class, prefix, shot_spread, float) \
- P(class, prefix, shot_volly, float) \
- P(class, prefix, shot_volly_refire, float) \
- P(class, prefix, target_range, float) \
- P(class, prefix, target_range_min, float) \
- P(class, prefix, target_range_optimal, float) \
- P(class, prefix, target_select_anglebias, float) \
- P(class, prefix, target_select_missilebias, float) \
- P(class, prefix, target_select_playerbias, float) \
- P(class, prefix, target_select_rangebias, float) \
- P(class, prefix, target_select_samebias, float) \
- P(class, prefix, track_accel_pitch, float) \
- P(class, prefix, track_accel_rot, float) \
- P(class, prefix, track_blendrate, float) \
- P(class, prefix, track_type, float) \
+ TR_PROPS_COMMON(P, class, prefix) \
END()
TR_PROPS(X, Flac, flac)
#undef X
#define X(BEGIN, P, END, class, prefix) \
BEGIN(class) \
- P(class, prefix, aim_firetolerance_dist, float) \
- P(class, prefix, aim_maxpitch, float) \
- P(class, prefix, aim_maxrot, float) \
- P(class, prefix, aim_speed, float) \
- P(class, prefix, ammo, float) \
- P(class, prefix, ammo_max, float) \
- P(class, prefix, ammo_recharge, float) \
- P(class, prefix, health, float) \
- P(class, prefix, respawntime, float) \
- P(class, prefix, shot_dmg, float) \
- P(class, prefix, shot_force, float) \
- P(class, prefix, shot_radius, float) \
- P(class, prefix, shot_refire, float) \
- P(class, prefix, shot_speed, float) \
- P(class, prefix, shot_spread, float) \
- P(class, prefix, shot_volly, float) \
- P(class, prefix, shot_volly_refire, float) \
- P(class, prefix, target_range, float) \
- P(class, prefix, target_range_min, float) \
- P(class, prefix, target_range_optimal, float) \
- P(class, prefix, target_select_anglebias, float) \
- P(class, prefix, target_select_playerbias, float) \
- P(class, prefix, target_select_rangebias, float) \
- P(class, prefix, target_select_samebias, float) \
- P(class, prefix, track_accel_pitch, float) \
- P(class, prefix, track_accel_rot, float) \
- P(class, prefix, track_blendrate, float) \
- P(class, prefix, track_type, float) \
+ TR_PROPS_COMMON(P, class, prefix) \
END()
TR_PROPS(X, FusionReactor, fusreac)
#undef X
#define X(BEGIN, P, END, class, prefix) \
BEGIN(class) \
- P(class, prefix, aim_firetolerance_dist, float) \
- P(class, prefix, aim_maxpitch, float) \
- P(class, prefix, aim_maxrot, float) \
- P(class, prefix, aim_speed, float) \
- P(class, prefix, ammo, float) \
- P(class, prefix, ammo_max, float) \
- P(class, prefix, ammo_recharge, float) \
- P(class, prefix, health, float) \
- P(class, prefix, respawntime, float) \
- P(class, prefix, shot_dmg, float) \
- P(class, prefix, shot_force, float) \
- P(class, prefix, shot_radius, float) \
- P(class, prefix, shot_refire, float) \
- P(class, prefix, shot_speed, float) \
+ TR_PROPS_COMMON(P, class, prefix) \
P(class, prefix, shot_speed_gain, float) \
P(class, prefix, shot_speed_max, float) \
- P(class, prefix, shot_spread, float) \
- P(class, prefix, shot_volly, float) \
- P(class, prefix, shot_volly_refire, float) \
- P(class, prefix, target_range, float) \
- P(class, prefix, target_range_min, float) \
- P(class, prefix, target_range_optimal, float) \
- P(class, prefix, target_select_anglebias, float) \
- P(class, prefix, target_select_missilebias, float) \
- P(class, prefix, target_select_playerbias, float) \
- P(class, prefix, target_select_rangebias, float) \
- P(class, prefix, target_select_samebias, float) \
- P(class, prefix, track_accel_pitch, float) \
- P(class, prefix, track_accel_rot, float) \
- P(class, prefix, track_blendrate, float) \
- P(class, prefix, track_type, float) \
END()
TR_PROPS(X, Hellion, hellion)
#undef X
#define X(BEGIN, P, END, class, prefix) \
BEGIN(class) \
- P(class, prefix, aim_firetolerance_dist, float) \
- P(class, prefix, aim_maxpitch, float) \
- P(class, prefix, aim_maxrot, float) \
- P(class, prefix, aim_speed, float) \
- P(class, prefix, ammo, float) \
- P(class, prefix, ammo_max, float) \
- P(class, prefix, ammo_recharge, float) \
- P(class, prefix, health, float) \
- P(class, prefix, respawntime, float) \
- P(class, prefix, shot_dmg, float) \
- P(class, prefix, shot_force, float) \
- P(class, prefix, shot_radius, float) \
- P(class, prefix, shot_refire, float) \
- P(class, prefix, shot_speed, float) \
+ TR_PROPS_COMMON(P, class, prefix) \
P(class, prefix, shot_speed_accel, float) \
P(class, prefix, shot_speed_accel2, float) \
P(class, prefix, shot_speed_decel, float) \
P(class, prefix, shot_speed_max, float) \
P(class, prefix, shot_speed_turnrate, float) \
- P(class, prefix, shot_spread, float) \
- P(class, prefix, shot_volly, float) \
- P(class, prefix, shot_volly_refire, float) \
- P(class, prefix, target_range, float) \
- P(class, prefix, target_range_min, float) \
- P(class, prefix, target_range_optimal, float) \
- P(class, prefix, target_select_anglebias, float) \
- P(class, prefix, target_select_missilebias, float) \
- P(class, prefix, target_select_playerbias, float) \
- P(class, prefix, target_select_rangebias, float) \
- P(class, prefix, target_select_samebias, float) \
- P(class, prefix, track_accel_pitch, float) \
- P(class, prefix, track_accel_rot, float) \
- P(class, prefix, track_blendrate, float) \
- P(class, prefix, track_type, float) \
END()
TR_PROPS(X, HunterKiller, hk)
#undef X
#define X(BEGIN, P, END, class, prefix) \
BEGIN(class) \
- P(class, prefix, aim_firetolerance_dist, float) \
- P(class, prefix, aim_maxpitch, float) \
- P(class, prefix, aim_maxrot, float) \
- P(class, prefix, aim_speed, float) \
- P(class, prefix, ammo, float) \
- P(class, prefix, ammo_max, float) \
- P(class, prefix, ammo_recharge, float) \
- P(class, prefix, health, float) \
- P(class, prefix, respawntime, float) \
- P(class, prefix, shot_dmg, float) \
- P(class, prefix, shot_force, float) \
- P(class, prefix, shot_radius, float) \
- P(class, prefix, shot_refire, float) \
- P(class, prefix, shot_speed, float) \
- P(class, prefix, shot_spread, float) \
- P(class, prefix, shot_volly, float) \
- P(class, prefix, shot_volly_refire, float) \
- P(class, prefix, target_range, float) \
- P(class, prefix, target_range_min, float) \
- P(class, prefix, target_range_optimal, float) \
- P(class, prefix, target_select_anglebias, float) \
- P(class, prefix, target_select_missilebias, float) \
- P(class, prefix, target_select_playerbias, float) \
- P(class, prefix, target_select_rangebias, float) \
- P(class, prefix, target_select_samebias, float) \
- P(class, prefix, track_accel_pitch, float) \
- P(class, prefix, track_accel_rot, float) \
- P(class, prefix, track_blendrate, float) \
- P(class, prefix, track_type, float) \
+ TR_PROPS_COMMON(P, class, prefix) \
END()
TR_PROPS(X, MachineGunTurret, machinegun)
#undef X
#define X(BEGIN, P, END, class, prefix) \
BEGIN(class) \
- P(class, prefix, aim_firetolerance_dist, float) \
- P(class, prefix, aim_maxpitch, float) \
- P(class, prefix, aim_maxrot, float) \
- P(class, prefix, aim_speed, float) \
- P(class, prefix, ammo, float) \
- P(class, prefix, ammo_max, float) \
- P(class, prefix, ammo_recharge, float) \
- P(class, prefix, health, float) \
- P(class, prefix, respawntime, float) \
- P(class, prefix, shot_dmg, float) \
- P(class, prefix, shot_force, float) \
- P(class, prefix, shot_radius, float) \
- P(class, prefix, shot_refire, float) \
- P(class, prefix, shot_speed, float) \
- P(class, prefix, shot_spread, float) \
- P(class, prefix, shot_volly, float) \
- P(class, prefix, shot_volly_refire, float) \
- P(class, prefix, target_range, float) \
- P(class, prefix, target_range_min, float) \
- P(class, prefix, target_range_optimal, float) \
- P(class, prefix, target_select_anglebias, float) \
- P(class, prefix, target_select_missilebias, float) \
- P(class, prefix, target_select_playerbias, float) \
- P(class, prefix, target_select_rangebias, float) \
- P(class, prefix, target_select_samebias, float) \
- P(class, prefix, track_accel_pitch, float) \
- P(class, prefix, track_accel_rot, float) \
- P(class, prefix, track_blendrate, float) \
- P(class, prefix, track_type, float) \
+ TR_PROPS_COMMON(P, class, prefix) \
END()
TR_PROPS(X, MLRSTurret, mlrs)
#undef X
#define X(BEGIN, P, END, class, prefix) \
BEGIN(class) \
- P(class, prefix, aim_firetolerance_dist, float) \
- P(class, prefix, aim_maxpitch, float) \
- P(class, prefix, aim_maxrot, float) \
- P(class, prefix, aim_speed, float) \
- P(class, prefix, ammo, float) \
- P(class, prefix, ammo_max, float) \
- P(class, prefix, ammo_recharge, float) \
- P(class, prefix, health, float) \
- P(class, prefix, respawntime, float) \
- P(class, prefix, shot_dmg, float) \
- P(class, prefix, shot_force, float) \
- P(class, prefix, shot_radius, float) \
- P(class, prefix, shot_refire, float) \
- P(class, prefix, shot_speed, float) \
- P(class, prefix, shot_spread, float) \
- P(class, prefix, shot_volly, float) \
- P(class, prefix, shot_volly_refire, float) \
- P(class, prefix, target_range, float) \
- P(class, prefix, target_range_min, float) \
- P(class, prefix, target_range_optimal, float) \
- P(class, prefix, target_select_anglebias, float) \
- P(class, prefix, target_select_missilebias, float) \
- P(class, prefix, target_select_playerbias, float) \
- P(class, prefix, target_select_rangebias, float) \
- P(class, prefix, target_select_samebias, float) \
- P(class, prefix, track_accel_pitch, float) \
- P(class, prefix, track_accel_rot, float) \
- P(class, prefix, track_blendrate, float) \
- P(class, prefix, track_type, float) \
+ TR_PROPS_COMMON(P, class, prefix) \
END()
TR_PROPS(X, PhaserTurret, phaser)
#undef X
#define X(BEGIN, P, END, class, prefix) \
BEGIN(class) \
- P(class, prefix, aim_firetolerance_dist, float) \
- P(class, prefix, aim_maxpitch, float) \
- P(class, prefix, aim_maxrot, float) \
- P(class, prefix, aim_speed, float) \
- P(class, prefix, ammo, float) \
- P(class, prefix, ammo_max, float) \
- P(class, prefix, ammo_recharge, float) \
- P(class, prefix, health, float) \
- P(class, prefix, respawntime, float) \
- P(class, prefix, shot_dmg, float) \
- P(class, prefix, shot_force, float) \
- P(class, prefix, shot_radius, float) \
- P(class, prefix, shot_refire, float) \
- P(class, prefix, shot_speed, float) \
- P(class, prefix, shot_spread, float) \
- P(class, prefix, shot_volly, float) \
- P(class, prefix, shot_volly_refire, float) \
- P(class, prefix, target_range, float) \
- P(class, prefix, target_range_min, float) \
- P(class, prefix, target_range_optimal, float) \
- P(class, prefix, target_select_anglebias, float) \
- P(class, prefix, target_select_missilebias, float) \
- P(class, prefix, target_select_playerbias, float) \
- P(class, prefix, target_select_rangebias, float) \
- P(class, prefix, target_select_samebias, float) \
- P(class, prefix, track_accel_pitch, float) \
- P(class, prefix, track_accel_rot, float) \
- P(class, prefix, track_blendrate, float) \
- P(class, prefix, track_type, float) \
+ TR_PROPS_COMMON(P, class, prefix) \
END()
TR_PROPS(X, PlasmaTurret, plasma)
#undef X
#define X(BEGIN, P, END, class, prefix) \
BEGIN(class) \
- P(class, prefix, aim_firetolerance_dist, float) \
- P(class, prefix, aim_maxpitch, float) \
- P(class, prefix, aim_maxrot, float) \
- P(class, prefix, aim_speed, float) \
- P(class, prefix, ammo, float) \
- P(class, prefix, ammo_max, float) \
- P(class, prefix, ammo_recharge, float) \
- P(class, prefix, health, float) \
- P(class, prefix, respawntime, float) \
- P(class, prefix, shot_dmg, float) \
- P(class, prefix, shot_force, float) \
- P(class, prefix, shot_radius, float) \
- P(class, prefix, shot_refire, float) \
- P(class, prefix, shot_speed, float) \
- P(class, prefix, shot_spread, float) \
- P(class, prefix, shot_volly, float) \
- P(class, prefix, shot_volly_refire, float) \
- P(class, prefix, target_range, float) \
- P(class, prefix, target_range_min, float) \
- P(class, prefix, target_range_optimal, float) \
- P(class, prefix, target_select_anglebias, float) \
- P(class, prefix, target_select_missilebias, float) \
- P(class, prefix, target_select_playerbias, float) \
- P(class, prefix, target_select_rangebias, float) \
- P(class, prefix, target_select_samebias, float) \
- P(class, prefix, track_accel_pitch, float) \
- P(class, prefix, track_accel_rot, float) \
- P(class, prefix, track_blendrate, float) \
- P(class, prefix, track_type, float) \
+ TR_PROPS_COMMON(P, class, prefix) \
END()
TR_PROPS(X, DualPlasmaTurret, plasma_dual)
#undef X
#define X(BEGIN, P, END, class, prefix) \
BEGIN(class) \
- P(class, prefix, aim_firetolerance_dist, float) \
- P(class, prefix, aim_maxpitch, float) \
- P(class, prefix, aim_maxrot, float) \
- P(class, prefix, aim_speed, float) \
- P(class, prefix, ammo, float) \
- P(class, prefix, ammo_max, float) \
- P(class, prefix, ammo_recharge, float) \
- P(class, prefix, health, float) \
- P(class, prefix, respawntime, float) \
- P(class, prefix, shot_dmg, float) \
- P(class, prefix, shot_force, float) \
- P(class, prefix, shot_radius, float) \
- P(class, prefix, shot_refire, float) \
- P(class, prefix, shot_speed, float) \
- P(class, prefix, shot_spread, float) \
- P(class, prefix, shot_volly, float) \
- P(class, prefix, shot_volly_refire, float) \
- P(class, prefix, target_range, float) \
- P(class, prefix, target_range_min, float) \
- P(class, prefix, target_range_optimal, float) \
- P(class, prefix, target_select_anglebias, float) \
- P(class, prefix, target_select_missilebias, float) \
- P(class, prefix, target_select_playerbias, float) \
- P(class, prefix, target_select_rangebias, float) \
- P(class, prefix, target_select_samebias, float) \
- P(class, prefix, track_accel_pitch, float) \
- P(class, prefix, track_accel_rot, float) \
- P(class, prefix, track_blendrate, float) \
- P(class, prefix, track_type, float) \
+ TR_PROPS_COMMON(P, class, prefix) \
END()
TR_PROPS(X, TeslaCoil, tesla)
#undef X
#define X(BEGIN, P, END, class, prefix) \
BEGIN(class) \
- P(class, prefix, aim_firetolerance_dist, float) \
- P(class, prefix, aim_maxpitch, float) \
- P(class, prefix, aim_maxrot, float) \
- P(class, prefix, aim_speed, float) \
- P(class, prefix, ammo, float) \
- P(class, prefix, ammo_max, float) \
- P(class, prefix, ammo_recharge, float) \
- P(class, prefix, health, float) \
+ TR_PROPS_COMMON(P, class, prefix) \
P(class, prefix, melee_damage, float) \
P(class, prefix, melee_force, float) \
P(class, prefix, melee_range, float) \
- P(class, prefix, respawntime, float) \
P(class, prefix, rocket_damage, float) \
P(class, prefix, rocket_force, float) \
P(class, prefix, rocket_radius, float) \
P(class, prefix, rocket_refire, float) \
P(class, prefix, rocket_speed, float) \
P(class, prefix, rocket_turnrate, float) \
- P(class, prefix, shot_dmg, float) \
- P(class, prefix, shot_force, float) \
- P(class, prefix, shot_radius, float) \
- P(class, prefix, shot_refire, float) \
- P(class, prefix, shot_speed, float) \
- P(class, prefix, shot_spread, float) \
- P(class, prefix, shot_volly, float) \
- P(class, prefix, shot_volly_refire, float) \
P(class, prefix, speed_jump, float) \
P(class, prefix, speed_roam, float) \
P(class, prefix, speed_run, float) \
P(class, prefix, speed_stop, float) \
P(class, prefix, speed_swim, float) \
P(class, prefix, speed_walk, float) \
- P(class, prefix, target_range, float) \
- P(class, prefix, target_range_min, float) \
- P(class, prefix, target_range_optimal, float) \
- P(class, prefix, target_select_anglebias, float) \
- P(class, prefix, target_select_missilebias, float) \
- P(class, prefix, target_select_playerbias, float) \
- P(class, prefix, target_select_rangebias, float) \
- P(class, prefix, target_select_samebias, float) \
- P(class, prefix, track_accel_pitch, float) \
- P(class, prefix, track_accel_rot, float) \
- P(class, prefix, track_blendrate, float) \
- P(class, prefix, track_type, float) \
P(class, prefix, turn, float) \
P(class, prefix, turn_run, float) \
P(class, prefix, turn_strafe, float) \
set g_turrets_unit_fusreac_target_select_samebias 0
set g_turrets_unit_fusreac_target_select_anglebias 0
set g_turrets_unit_fusreac_target_select_playerbias 0
+set g_turrets_unit_fusreac_target_select_missilebias 0
set g_turrets_unit_fusreac_aim_firetolerance_dist 0
set g_turrets_unit_fusreac_aim_speed 0
set g_turrets_unit_fusreac_aim_maxrot 0