]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add an option to configure the damage force players take from attacks
authorMario <mario@smbclan.net>
Fri, 9 Aug 2019 02:05:41 +0000 (12:05 +1000)
committerMario <mario@smbclan.net>
Fri, 9 Aug 2019 02:05:41 +0000 (12:05 +1000)
qcsrc/server/autocvars.qh
qcsrc/server/client.qc
xonotic-server.cfg

index 4d33e9b52a6464ee802e5d80135b03f955a55cde..4b71e28e8b4e74153e93bbf5c07f8a2497b9c692 100644 (file)
@@ -180,6 +180,7 @@ float autocvar_g_items_maxdist;
 int autocvar_g_pickup_items;
 float autocvar_g_player_alpha;
 float autocvar_g_player_brightness;
+float autocvar_g_player_damageforcescale = 2;
 bool autocvar_g_playerclip_collisions;
 int autocvar_g_powerups;
 int autocvar_g_projectiles_damage;
index 3afa06d1279c0df404c6174cb3b415d391ea96cb..f43785bbb2fce697784fb80c1511541d6466fa56 100644 (file)
@@ -604,7 +604,7 @@ void PutPlayerInServer(entity this)
                this.pauseregen_finished += f;
        }
 
-       this.damageforcescale = 2;
+       this.damageforcescale = autocvar_g_player_damageforcescale;
        this.death_time = 0;
        this.respawn_flags = 0;
        this.respawn_time = 0;
index 9613e7e773811aa9163de3f1e1365729dba3f30f..d261e262eab2a9351d4542b7969afa1fbd72f680 100644 (file)
@@ -222,6 +222,7 @@ set g_grab_range 200 "distance at which dragable objects can be grabbed"
 set g_cloaked 0 "display all players mostly invisible"
 set g_player_alpha 1 "default opacity of players"
 set g_player_brightness 0      "set to 2 for brighter players"
+set g_player_damageforcescale 2 "push multiplier of attacks against players"
 set g_balance_cloaked_alpha 0.25 "opacity of cloaked players"
 
 set g_playerclip_collisions 1 "0 = disable collision testing against playerclips, might be useful on some defrag maps"