• R/O
  • SSH

zandronum-sandbox-stable: Commit


Commit MetaInfo

Revision8498d95c7352dc24e4de42c196aeca353a282d9a (tree)
Time2022-09-29 02:27:32
AuthorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

alwaysapplydmflags, teamdamage, and sv_fastweapons can now be configured in the GAMEMODE lump.

Change Summary

Incremental Difference

diff -r 3d017bd6119a -r 8498d95c7352 src/doomstat.cpp
--- a/src/doomstat.cpp Wed Sep 28 12:14:59 2022 -0400
+++ b/src/doomstat.cpp Wed Sep 28 13:27:32 2022 -0400
@@ -48,12 +48,14 @@
4848 CVAR (Bool, var_pushers, true, CVAR_SERVERINFO);
4949
5050 // [WS] Changed CVAR to CUSTOM_CVAR as we need to send clients the updated state of this.
51-CUSTOM_CVAR (Bool, alwaysapplydmflags, false, CVAR_SERVERINFO)
51+// [AK] Added CVAR_GAMEPLAYSETTING.
52+CUSTOM_CVAR (Bool, alwaysapplydmflags, false, CVAR_SERVERINFO | CVAR_GAMEPLAYSETTING)
5253 {
5354 SERVER_SettingChanged( self, false );
5455 }
5556
56-CUSTOM_CVAR (Float, teamdamage, 0.f, CVAR_SERVERINFO)
57+// [AK] Added CVAR_GAMEPLAYSETTING.
58+CUSTOM_CVAR (Float, teamdamage, 0.f, CVAR_SERVERINFO | CVAR_GAMEPLAYSETTING)
5759 {
5860 level.teamdamage = self;
5961 }
diff -r 3d017bd6119a -r 8498d95c7352 src/p_pspr.cpp
--- a/src/p_pspr.cpp Wed Sep 28 12:14:59 2022 -0400
+++ b/src/p_pspr.cpp Wed Sep 28 13:27:32 2022 -0400
@@ -66,7 +66,8 @@
6666
6767 // [SO] 1=Weapons states are all 1 tick
6868 // 2=states with a function 1 tick, others 0 ticks.
69-CUSTOM_CVAR( Int, sv_fastweapons, 0, CVAR_SERVERINFO )
69+// [AK] Added CVAR_GAMEPLAYSETTING.
70+CUSTOM_CVAR( Int, sv_fastweapons, 0, CVAR_SERVERINFO | CVAR_GAMEPLAYSETTING )
7071 {
7172 if ( self >= 3 )
7273 self = 2;
Show on old repository browser