]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a macro to dump common turret settings
authorterencehill <piuntn@gmail.com>
Fri, 12 Apr 2019 18:00:42 +0000 (20:00 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 12 Apr 2019 19:51:36 +0000 (21:51 +0200)
14 files changed:
qcsrc/common/turrets/all.qh
qcsrc/common/turrets/turret/ewheel.qh
qcsrc/common/turrets/turret/flac.qh
qcsrc/common/turrets/turret/fusionreactor.qh
qcsrc/common/turrets/turret/hellion.qh
qcsrc/common/turrets/turret/hk.qh
qcsrc/common/turrets/turret/machinegun.qh
qcsrc/common/turrets/turret/mlrs.qh
qcsrc/common/turrets/turret/phaser.qh
qcsrc/common/turrets/turret/plasma.qh
qcsrc/common/turrets/turret/plasma_dual.qh
qcsrc/common/turrets/turret/tesla.qh
qcsrc/common/turrets/turret/walker.qh
turrets.cfg

index b82af599b0c5fec587b4a47ce6422bd291ee79e6..f87b1a274422cf71a4d4f0df3dcdac942a27d0fc 100644 (file)
@@ -11,9 +11,41 @@ REGISTRY(Turrets, BITS(5))
 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)) {
index 4e4cc31fdf2525e04f68bb67c296605457b215d1..8a78d37be3e8f1cf7bfb215623fcd1aa8e621794 100644 (file)
@@ -17,39 +17,11 @@ CLASS(EWheel, Turret)
 
 #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)
index 041a8ea889c0530cf2db5bd1205d830a70465208..9892cbba39476e6bb57d20c2311707238ee14a0c 100644 (file)
@@ -15,35 +15,7 @@ CLASS(Flac, Turret)
 
 #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
index f3b1bfa540b85c0517e92b1f5652bb59af6a78d0..0723ba58254b97354651150fa592182214db94d5 100644 (file)
@@ -13,34 +13,7 @@ ENDCLASS(FusionReactor)
 
 #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
index 83556ebc52eed52e2c8a94beb57cfc1b14a32989..23aaa4abcc8a929d03e118a661f6b6956a2b1dcd 100644 (file)
@@ -15,37 +15,9 @@ CLASS(Hellion, Turret)
 
 #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
index c60d0f5fbc7d6d2a5592daf9f254283a23affec3..29060a61df6d1b3c64c99c35a37faaf11180c4df 100644 (file)
@@ -17,40 +17,12 @@ CLASS(HunterKiller, Turret)
 
 #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
index a6d9507990582879f210dadf6b04718bacee6f01..99b1f79e4ab53968571e678337a8885a5405fc81 100644 (file)
@@ -15,35 +15,7 @@ CLASS(MachineGunTurret, Turret)
 
 #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
index 78c1f76e081d4ac60597ecaaa1f469141d72eb5c..0c7c98f9d1bf2ef33d215abf452409a6f6388c1e 100644 (file)
@@ -15,35 +15,7 @@ CLASS(MLRSTurret, Turret)
 
 #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
index 538b62f2140a7c92bcfe2e59dad0a79154bbf104..0901f5c797144bd5066309857de21d9d0231fd22 100644 (file)
@@ -15,35 +15,7 @@ CLASS(PhaserTurret, Turret)
 
 #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
index a6be4dd7e389e4c54d81b1be52a01f3e7777f506..bc38f6ffd964c09a6685b3f23bdf8cb89a7f6c9b 100644 (file)
@@ -15,35 +15,7 @@ CLASS(PlasmaTurret, Turret)
 
 #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
index e444056c9f663d7b77f78dc4b0ec6f00dabcceb6..c0f63c1039673a3c65876fd4e883f7f618502dd6 100644 (file)
@@ -22,35 +22,7 @@ CLASS(DualPlasmaTurret, PlasmaTurret)
 
 #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
index 02b0d4af2c4da654ce2601e9cc0ee2ae4ee5e319..6f01737be2193a73ffb13bf1088817ca500a64a8 100644 (file)
@@ -15,35 +15,7 @@ CLASS(TeslaCoil, Turret)
 
 #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
index ce2023dc17fa8940dc6d7683255ad6e670f664a6..466040468ef8afadc7173048a7104a08b4610e66 100644 (file)
@@ -17,18 +17,10 @@ CLASS(WalkerTurret, Turret)
 
 #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) \
@@ -37,32 +29,12 @@ CLASS(WalkerTurret, Turret)
                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) \
index b16c16ac4ca23c5f2c531563e123bb7be888f9fc..6fc860bd1b94246bb608e9de3312b83dc8491566 100644 (file)
@@ -116,6 +116,7 @@ set g_turrets_unit_fusreac_target_select_rangebias 0
 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