From: Mario Date: Mon, 26 Sep 2016 10:26:18 +0000 (+1000) Subject: Add sv_aircontrol_backwards to allow strafing backwards X-Git-Tag: xonotic-v0.8.2~568 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7a83212927a9bcfc8738eadba9e332f5ecede45e;p=xonotic%2Fxonotic-data.pk3dir.git Add sv_aircontrol_backwards to allow strafing backwards --- diff --git a/physics.cfg b/physics.cfg index e9fe56289..92fccaa42 100644 --- a/physics.cfg +++ b/physics.cfg @@ -28,6 +28,7 @@ set g_physics_xonotic_airaccel_qw_stretchfactor 2 set g_physics_xonotic_airaccel_sideways_friction 0 set g_physics_xonotic_aircontrol 100 set g_physics_xonotic_aircontrol_power 2 +set g_physics_xonotic_aircontrol_backwards 0 set g_physics_xonotic_aircontrol_penalty 0 set g_physics_xonotic_warsowbunny_airforwardaccel 1.00001 set g_physics_xonotic_warsowbunny_topspeed 925 @@ -56,6 +57,7 @@ set g_physics_nexuiz_airaccel_qw_stretchfactor 0 set g_physics_nexuiz_airaccel_sideways_friction 0.35 set g_physics_nexuiz_aircontrol 0 set g_physics_nexuiz_aircontrol_power 2 +set g_physics_nexuiz_aircontrol_backwards 0 set g_physics_nexuiz_aircontrol_penalty 0 set g_physics_nexuiz_warsowbunny_airforwardaccel 1.00001 set g_physics_nexuiz_warsowbunny_topspeed 925 @@ -84,6 +86,7 @@ set g_physics_quake_airaccel_qw_stretchfactor 0 set g_physics_quake_airaccel_sideways_friction 0 set g_physics_quake_aircontrol 0 set g_physics_quake_aircontrol_power 2 +set g_physics_quake_aircontrol_backwards 0 set g_physics_quake_aircontrol_penalty 0 set g_physics_quake_warsowbunny_airforwardaccel 1.00001 set g_physics_quake_warsowbunny_topspeed 925 @@ -112,6 +115,7 @@ set g_physics_warsow_airaccel_qw_stretchfactor 0 set g_physics_warsow_airaccel_sideways_friction 0 set g_physics_warsow_aircontrol 0 set g_physics_warsow_aircontrol_power 2 +set g_physics_warsow_aircontrol_backwards 0 set g_physics_warsow_aircontrol_penalty 0 set g_physics_warsow_warsowbunny_airforwardaccel 1.00001 set g_physics_warsow_warsowbunny_topspeed 925 @@ -140,6 +144,7 @@ set g_physics_defrag_airaccel_qw_stretchfactor 0 set g_physics_defrag_airaccel_sideways_friction 0 set g_physics_defrag_aircontrol 150 set g_physics_defrag_aircontrol_power 2 +set g_physics_defrag_aircontrol_backwards 0 set g_physics_defrag_aircontrol_penalty 0 set g_physics_defrag_warsowbunny_airforwardaccel 1.00001 set g_physics_defrag_warsowbunny_topspeed 925 @@ -168,6 +173,7 @@ set g_physics_quake3_airaccel_qw_stretchfactor 0 set g_physics_quake3_airaccel_sideways_friction 0 set g_physics_quake3_aircontrol 0 set g_physics_quake3_aircontrol_power 2 +set g_physics_quake3_aircontrol_backwards 0 set g_physics_quake3_aircontrol_penalty 0 set g_physics_quake3_warsowbunny_airforwardaccel 1.00001 set g_physics_quake3_warsowbunny_topspeed 925 @@ -196,6 +202,7 @@ set g_physics_vecxis_airaccel_qw_stretchfactor 0 set g_physics_vecxis_airaccel_sideways_friction 0.3 set g_physics_vecxis_aircontrol 0 set g_physics_vecxis_aircontrol_power 2 +set g_physics_vecxis_aircontrol_backwards 0 set g_physics_vecxis_aircontrol_penalty 0 set g_physics_vecxis_warsowbunny_airforwardaccel 1.00001 set g_physics_vecxis_warsowbunny_topspeed 925 @@ -224,6 +231,7 @@ set g_physics_quake2_airaccel_qw_stretchfactor 0 set g_physics_quake2_airaccel_sideways_friction 0 set g_physics_quake2_aircontrol 0 set g_physics_quake2_aircontrol_power 2 +set g_physics_quake2_aircontrol_backwards 0 set g_physics_quake2_aircontrol_penalty 0 set g_physics_quake2_warsowbunny_airforwardaccel 1.00001 set g_physics_quake2_warsowbunny_topspeed 925 @@ -252,6 +260,7 @@ set g_physics_bones_airaccel_qw_stretchfactor 0 set g_physics_bones_airaccel_sideways_friction 0 set g_physics_bones_aircontrol 150 set g_physics_bones_aircontrol_power 2 +set g_physics_bones_aircontrol_backwards 0 set g_physics_bones_aircontrol_penalty 0 set g_physics_bones_warsowbunny_airforwardaccel 1.00001 set g_physics_bones_warsowbunny_topspeed 925 diff --git a/physicsCPMA.cfg b/physicsCPMA.cfg index e4bbad3d4..f2a4209c2 100644 --- a/physicsCPMA.cfg +++ b/physicsCPMA.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 150 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsFruit.cfg b/physicsFruit.cfg index ee44b5547..efe5b46ac 100644 --- a/physicsFruit.cfg +++ b/physicsFruit.cfg @@ -22,6 +22,7 @@ sv_maxairstrafespeed 100 sv_airstrafeaccel_qw -0.97 sv_aircontrol 125 sv_aircontrol_power 2.5 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsHavoc.cfg b/physicsHavoc.cfg index 6aac34178..8d02ff462 100644 --- a/physicsHavoc.cfg +++ b/physicsHavoc.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsLeeStricklin-ModdedFruit.cfg b/physicsLeeStricklin-ModdedFruit.cfg index 90eaa49c1..61ce6557d 100644 --- a/physicsLeeStricklin-ModdedFruit.cfg +++ b/physicsLeeStricklin-ModdedFruit.cfg @@ -31,6 +31,7 @@ sv_airstrafeaccel_qw -0.97 sv_aircontrol 125 sv_aircontrol_penalty 150 sv_aircontrol_power 2.5 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 800 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsLeeStricklin.cfg b/physicsLeeStricklin.cfg index 03081fdab..53ec90148 100644 --- a/physicsLeeStricklin.cfg +++ b/physicsLeeStricklin.cfg @@ -31,6 +31,7 @@ sv_airstrafeaccel_qw -0.95 sv_aircontrol 125 sv_aircontrol_penalty 150 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 800 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsLeeStricklinOld.cfg b/physicsLeeStricklinOld.cfg index ef213a70f..6a24567a9 100644 --- a/physicsLeeStricklinOld.cfg +++ b/physicsLeeStricklinOld.cfg @@ -26,6 +26,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsLzd.cfg b/physicsLzd.cfg index 51c49d783..f6f74cd21 100644 --- a/physicsLzd.cfg +++ b/physicsLzd.cfg @@ -24,6 +24,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsNexuiz10.cfg b/physicsNexuiz10.cfg index 0ce33aa95..9292016af 100644 --- a/physicsNexuiz10.cfg +++ b/physicsNexuiz10.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsNexuiz11.cfg b/physicsNexuiz11.cfg index 08711fd5b..660e7b818 100644 --- a/physicsNexuiz11.cfg +++ b/physicsNexuiz11.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsNexuiz151.cfg b/physicsNexuiz151.cfg index 092985cae..2c2e94c5f 100644 --- a/physicsNexuiz151.cfg +++ b/physicsNexuiz151.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsNexuiz151b.cfg b/physicsNexuiz151b.cfg index c6d9bef4b..45a46cb46 100644 --- a/physicsNexuiz151b.cfg +++ b/physicsNexuiz151b.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsNexuiz16rc1.cfg b/physicsNexuiz16rc1.cfg index 5e0ee6ae0..86f1c31c7 100644 --- a/physicsNexuiz16rc1.cfg +++ b/physicsNexuiz16rc1.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsNexuiz20.cfg b/physicsNexuiz20.cfg index d129a2db0..fe4617688 100644 --- a/physicsNexuiz20.cfg +++ b/physicsNexuiz20.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsNexuiz25.cfg b/physicsNexuiz25.cfg index 8a5229976..ed45598a9 100644 --- a/physicsNexuiz25.cfg +++ b/physicsNexuiz25.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsNexuiz26.cfg b/physicsNexuiz26.cfg index 4df3f211e..3f7cd58f1 100644 --- a/physicsNexuiz26.cfg +++ b/physicsNexuiz26.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsNoQWBunny-nexbased.cfg b/physicsNoQWBunny-nexbased.cfg index 3e905428f..77660a426 100644 --- a/physicsNoQWBunny-nexbased.cfg +++ b/physicsNoQWBunny-nexbased.cfg @@ -32,6 +32,7 @@ sv_airstrafeaccel_qw -0.9825 sv_aircontrol 125 sv_aircontrol_penalty 100 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsQ.cfg b/physicsQ.cfg index 448e087f4..609a8f3d3 100644 --- a/physicsQ.cfg +++ b/physicsQ.cfg @@ -24,6 +24,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsQ2.cfg b/physicsQ2.cfg index 124c50660..a9fbe166d 100644 --- a/physicsQ2.cfg +++ b/physicsQ2.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsQ2a.cfg b/physicsQ2a.cfg index 580f6257f..87817dfcf 100644 --- a/physicsQ2a.cfg +++ b/physicsQ2a.cfg @@ -24,6 +24,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsQ3.cfg b/physicsQ3.cfg index 6f00896b6..7363b216d 100644 --- a/physicsQ3.cfg +++ b/physicsQ3.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsQBF.cfg b/physicsQBF.cfg index 31963e9fe..adc9df69c 100644 --- a/physicsQBF.cfg +++ b/physicsQBF.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsQBFplus.cfg b/physicsQBFplus.cfg index 824638598..596d6ca3b 100644 --- a/physicsQBFplus.cfg +++ b/physicsQBFplus.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsSamual.cfg b/physicsSamual.cfg index 6858892e3..9041601e2 100644 --- a/physicsSamual.cfg +++ b/physicsSamual.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsWarsow.cfg b/physicsWarsow.cfg index 50101d73d..5fbe22bab 100644 --- a/physicsWarsow.cfg +++ b/physicsWarsow.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 9 // activates warsow movement mode sv_warsowbunny_accel 0.1593 diff --git a/physicsWarsowClassicBunny.cfg b/physicsWarsowClassicBunny.cfg index c4c3535a7..3b28d9099 100644 --- a/physicsWarsowClassicBunny.cfg +++ b/physicsWarsowClassicBunny.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 150 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsWarsowDev.cfg b/physicsWarsowDev.cfg index 331723ec9..cf31a3f93 100644 --- a/physicsWarsowDev.cfg +++ b/physicsWarsowDev.cfg @@ -23,6 +23,7 @@ sv_airstrafeaccel_qw 0 sv_aircontrol 0 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 6 // activates warsow movement mode sv_warsowbunny_accel 0.1585 diff --git a/physicsX.cfg b/physicsX.cfg index c109e1157..1fe218f06 100644 --- a/physicsX.cfg +++ b/physicsX.cfg @@ -38,6 +38,7 @@ sv_airstrafeaccel_qw -0.95 sv_aircontrol 100 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 900 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsX010.cfg b/physicsX010.cfg index 6dadcf161..0dfe0b46c 100644 --- a/physicsX010.cfg +++ b/physicsX010.cfg @@ -31,6 +31,7 @@ sv_airstrafeaccel_qw -0.95 sv_aircontrol 125 sv_aircontrol_penalty 150 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 800 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsX07.cfg b/physicsX07.cfg index a3e42a977..132aa9eff 100644 --- a/physicsX07.cfg +++ b/physicsX07.cfg @@ -37,6 +37,7 @@ sv_airstrafeaccel_qw -0.95 sv_aircontrol 125 sv_aircontrol_penalty 180 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 800 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsXDF.cfg b/physicsXDF.cfg index 8597e9e00..5a3aaa393 100644 --- a/physicsXDF.cfg +++ b/physicsXDF.cfg @@ -29,6 +29,7 @@ sv_airstrafeaccel_qw 1 sv_aircontrol 150 sv_aircontrol_penalty 0 sv_aircontrol_power 2 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/physicsXDFLight.cfg b/physicsXDFLight.cfg index 6cb0780dd..4d1f652bb 100644 --- a/physicsXDFLight.cfg +++ b/physicsXDFLight.cfg @@ -29,6 +29,7 @@ sv_airstrafeaccel_qw -0.987 sv_aircontrol 100 sv_aircontrol_penalty 100 sv_aircontrol_power 2.5 +sv_aircontrol_backwards 0 sv_airspeedlimit_nonqw 0 sv_warsowbunny_turnaccel 0 sv_warsowbunny_accel 0.1593 diff --git a/qcsrc/common/physics/player.qc b/qcsrc/common/physics/player.qc index f5c0e0316..4eb527d62 100644 --- a/qcsrc/common/physics/player.qc +++ b/qcsrc/common/physics/player.qc @@ -49,6 +49,7 @@ void Physics_UpdateStats(entity this, float maxspd_mod) STAT(MOVEVARS_AIRACCEL_SIDEWAYS_FRICTION, this) = Physics_ClientOption(this, "airaccel_sideways_friction", autocvar_sv_airaccel_sideways_friction); STAT(MOVEVARS_AIRCONTROL, this) = Physics_ClientOption(this, "aircontrol", autocvar_sv_aircontrol); STAT(MOVEVARS_AIRCONTROL_POWER, this) = Physics_ClientOption(this, "aircontrol_power", autocvar_sv_aircontrol_power); + STAT(MOVEVARS_AIRCONTROL_BACKWARDS, this) = Physics_ClientOption(this, "aircontrol_backwards", autocvar_sv_aircontrol_backwards); STAT(MOVEVARS_AIRCONTROL_PENALTY, this) = Physics_ClientOption(this, "aircontrol_penalty", autocvar_sv_aircontrol_penalty); STAT(MOVEVARS_WARSOWBUNNY_AIRFORWARDACCEL, this) = Physics_ClientOption(this, "warsowbunny_airforwardaccel", autocvar_sv_warsowbunny_airforwardaccel); STAT(MOVEVARS_WARSOWBUNNY_TOPSPEED, this) = Physics_ClientOption(this, "warsowbunny_topspeed", autocvar_sv_warsowbunny_topspeed); @@ -119,7 +120,11 @@ void PM_ClientMovement_UpdateStatus(entity this) void CPM_PM_Aircontrol(entity this, float dt, vector wishdir, float wishspeed) { - float k = 32 * (2 * IsMoveInDirection(this.movement, 0) - 1); + float movity = IsMoveInDirection(this.movement, 0); + if(PHYS_AIRCONTROL_BACKWARDS(this)) + movity += IsMoveInDirection(this.movement, 180); + + float k = 32 * (2 * movity - 1); if (k <= 0) return; diff --git a/qcsrc/common/physics/player.qh b/qcsrc/common/physics/player.qh index fb7edc83a..9f540148d 100644 --- a/qcsrc/common/physics/player.qh +++ b/qcsrc/common/physics/player.qh @@ -46,6 +46,7 @@ bool IsFlying(entity a); #define PHYS_AIRCONTROL(s) STAT(MOVEVARS_AIRCONTROL, s) #define PHYS_AIRCONTROL_PENALTY(s) STAT(MOVEVARS_AIRCONTROL_PENALTY, s) #define PHYS_AIRCONTROL_POWER(s) STAT(MOVEVARS_AIRCONTROL_POWER, s) +#define PHYS_AIRCONTROL_BACKWARDS(s) STAT(MOVEVARS_AIRCONTROL_BACKWARDS, s) #define PHYS_AIRSPEEDLIMIT_NONQW(s) STAT(MOVEVARS_AIRSPEEDLIMIT_NONQW, s) #define PHYS_AIRSTOPACCELERATE(s) STAT(MOVEVARS_AIRSTOPACCELERATE, s) #define PHYS_AIRSTRAFEACCELERATE(s) STAT(MOVEVARS_AIRSTRAFEACCELERATE, s) diff --git a/qcsrc/common/stats.qh b/qcsrc/common/stats.qh index d6aa068ea..e6cc5530c 100644 --- a/qcsrc/common/stats.qh +++ b/qcsrc/common/stats.qh @@ -272,6 +272,7 @@ REGISTER_STAT(MOVEVARS_AIRCONTROL_PENALTY, float) REGISTER_STAT(MOVEVARS_AIRSPEEDLIMIT_NONQW, float) REGISTER_STAT(MOVEVARS_AIRSTRAFEACCEL_QW, float) REGISTER_STAT(MOVEVARS_AIRCONTROL_POWER, float) +REGISTER_STAT(MOVEVARS_AIRCONTROL_BACKWARDS, bool) noref bool autocvar_sv_gameplayfix_nogravityonground; REGISTER_STAT(MOVEFLAGS, int, MOVEFLAG_VALID | (autocvar_sv_gameplayfix_q2airaccelerate ? MOVEFLAG_Q2AIRACCELERATE : 0) diff --git a/qcsrc/server/autocvars.qh b/qcsrc/server/autocvars.qh index 6faddf4dd..c4f77dfad 100644 --- a/qcsrc/server/autocvars.qh +++ b/qcsrc/server/autocvars.qh @@ -509,6 +509,7 @@ float autocvar_sv_warsowbunny_turnaccel; float autocvar_sv_airaccel_sideways_friction; float autocvar_sv_aircontrol; float autocvar_sv_aircontrol_power; +float autocvar_sv_aircontrol_backwards; float autocvar_sv_aircontrol_penalty; float autocvar_sv_warsowbunny_airforwardaccel; float autocvar_sv_warsowbunny_topspeed;