set g_mayhem_fraglimit 30 "Team Mayhem basis for how many frags until the match ends, edit this over point_limit preferably"
set g_tmayhem_fraglimit 50 "Team Mayhem basis for how many frags until the match ends, edit this over point_limit preferably"
-set g_mayhem_point_limit 1000 "Mayhem visual score limit overriding the mapinfo specified one"
-set g_tmayhem_point_limit 1000 "Team Mayhem visual score limit overriding the mapinfo specified one"
+set g_mayhem_visual_score_limit 1000 "Mayhem visual score limit overriding the mapinfo specified one"
+set g_tmayhem_visual_score_limit 1000 "Team Mayhem visual score limit overriding the mapinfo specified one"
-set g_tmayhem_point_leadlimit -1 "Team Mayhem point lead limit overriding the mapinfo specified one (use 0 to play without limit, and -1 to use the mapinfo's limit)"
+set g_tmayhem_score_leadlimit -1 "Team Mayhem score lead limit(based on tmayhem_visual_score_limit, not tmayhem_fraglimit) overriding the mapinfo specified one (use 0 to play without limit, and -1 to use the mapinfo's limit)"
set g_mayhem_weaponarena "most_available" "starting weapons - takes the same options as g_weaponarena"
set g_tmayhem_weaponarena "most_available" "starting weapons - takes the same options as g_weaponarena"
void mayhem_Initialize()
{
- if(autocvar_g_mayhem_point_limit > 0 && autocvar_g_mayhem_fraglimit > 0)
- mayhempointmultiplier = autocvar_g_mayhem_point_limit / autocvar_g_mayhem_fraglimit;
+ if(autocvar_g_mayhem_visual_score_limit > 0 && autocvar_g_mayhem_fraglimit > 0)
+ mayhempointmultiplier = autocvar_g_mayhem_visual_score_limit / autocvar_g_mayhem_fraglimit;
- GameRules_limit_score(autocvar_g_mayhem_point_limit);
+ GameRules_limit_score(autocvar_g_mayhem_visual_score_limit);
InitializeEntity(NULL, mayhem_DelayedInit, INITPRIO_GAMETYPE);
}
#include <common/mutators/base.qh>
//someone who understands numbers better check if 2 following floats can be ints without imprecision, I'm scared of spaghettimonsters
float autocvar_g_mayhem_fraglimit;
-float autocvar_g_mayhem_point_limit;
+float autocvar_g_mayhem_visual_score_limit;
float mayhempointmultiplier = 1000/30;
void mayhem_Initialize();
void tmayhem_Initialize()
{
- if(autocvar_g_tmayhem_point_limit != 0 && autocvar_g_tmayhem_fraglimit != 0)
- tmayhempointmultiplier = autocvar_g_tmayhem_point_limit / autocvar_g_tmayhem_fraglimit;
+ if(autocvar_g_tmayhem_visual_score_limit != 0 && autocvar_g_tmayhem_fraglimit != 0)
+ tmayhempointmultiplier = autocvar_g_tmayhem_visual_score_limit / autocvar_g_tmayhem_fraglimit;
GameRules_teams(true);
GameRules_spawning_teams(autocvar_g_tmayhem_team_spawns);
- GameRules_limit_score(autocvar_g_tmayhem_point_limit);
- GameRules_limit_lead(autocvar_g_tmayhem_point_leadlimit);
+ GameRules_limit_score(autocvar_g_tmayhem_visual_score_limit);
+ GameRules_limit_lead(autocvar_g_tmayhem_score_leadlimit);
InitializeEntity(NULL, tmayhem_DelayedInit, INITPRIO_GAMETYPE);
}
#include <common/mutators/base.qh>
//someone who understands numbers better check if 2 following floats can be ints without imprecision, I'm scared of spaghettimonsters
float autocvar_g_tmayhem_fraglimit;
-float autocvar_g_tmayhem_point_limit;
-float autocvar_g_tmayhem_point_leadlimit;
+float autocvar_g_tmayhem_visual_score_limit;
+float autocvar_g_tmayhem_score_leadlimit;
bool autocvar_g_tmayhem_team_spawns;
float tmayhempointmultiplier = 1000/50;
void tmayhem_Initialize();
BADCVAR("g_spawn_alloweffects");
BADCVAR("g_tdm_point_leadlimit");
BADCVAR("g_tdm_point_limit");
- BADCVAR("g_tmayhem_point_leadlimit");
- BADCVAR("g_tmayhem_point_limit");
+ BADCVAR("g_mayhem_fraglimit");
+ BADCVAR("g_tmayhem_fraglimit");
+ BADCVAR("g_mayhem_visual_score_limit");
+ BADCVAR("g_tmayhem_visual_score_limit");
+ BADCVAR("g_tmayhem_score_leadlimit");
BADCVAR("leadlimit_and_fraglimit");
BADCVAR("leadlimit_override");
- BADCVAR("g_mayhem_frags2score");
- BADCVAR("g_mayhem_damage2score");
- BADCVAR("g_mayhem_damage2score_multiplier");
- BADCVAR("g_tmayhem_frags2score");
- BADCVAR("g_tmayhem_damage2score");
- BADCVAR("g_tmayhem_damage2score_multiplier");
+ BADCVAR("g_mayhem_scoringmethod");
+ BADCVAR("g_tmayhem_scoringmethod");
BADCVAR("pausable");
BADCVAR("sv_announcer");
BADCVAR("sv_checkforpacketsduringsleep");