set g_start_weapon_campingrifle -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms"
set g_start_weapon_tuba -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms"
set g_start_weapon_fireball -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms"
-set g_start_weapon_seeker 0 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms"
+set g_start_weapon_seeker -1 "0 = never provide the weapon, 1 = always provide the weapon, -1 = game mode default, -2 = provide the weapon in ca and lms"
set g_balance_health_start 150
set g_balance_armor_start 0
set g_start_ammo_shells 40
set g_balance_laser_primary_animtime 0.3
set g_balance_laser_primary_lifetime 30
set g_balance_laser_primary_shotangle 0
-set g_balance_laser_primary_delay 0
+set g_balance_laser_primary_delay 0.05
set g_balance_laser_primary_gauntlet 0
set g_balance_laser_primary_force_zscale 1
set g_balance_laser_primary_force_velocitybias 0
set g_balance_health_rot 0.1
set g_balance_health_rotlinear 2.5
set g_balance_pause_health_rot 4
-set g_balance_pause_health_rot_spawn 15
+set g_balance_pause_health_rot_spawn 8
set g_balance_health_regenstable 100
set g_balance_health_rotstable 100
set g_balance_health_limit 999
set g_balance_armor_rot 0.1
set g_balance_armor_rotlinear 2.5
set g_balance_pause_armor_rot 4
-set g_balance_pause_armor_rot_spawn 15
+set g_balance_pause_armor_rot_spawn 8
set g_balance_armor_regenstable 100
set g_balance_armor_rotstable 100
set g_balance_armor_limit 999
set g_balance_fuel_rot 0.05
set g_balance_fuel_rotlinear 0
set g_balance_pause_fuel_rot 4
-set g_balance_pause_fuel_rot_spawn 15
+set g_balance_pause_fuel_rot_spawn 8
set g_balance_fuel_regenstable 50
set g_balance_fuel_rotstable 100
set g_balance_fuel_limit 999
set g_balance_laser_primary_animtime 0.6
set g_balance_laser_primary_lifetime 5
set g_balance_laser_primary_shotangle 0
-set g_balance_laser_primary_delay 0
+set g_balance_laser_primary_delay 0.03
set g_balance_laser_primary_gauntlet 0
set g_balance_laser_primary_force_zscale 1
set g_balance_laser_primary_force_velocitybias 0.25
// uid2name
seta cl_allow_uid2name -1 "-1 = ask if the player wants to disable/enable this feature, 0 = disable, 1 = enable uid2name (allows showing your name in race rankings for instance)"
+
+// polygonoffset for submodel SUCKS SUCKS SUCKS (only a hack for quake1, we don't need that)
+r_polygonoffset_submodel_offset 0
+r_polygonoffset_submodel_factor 0
+// workaround for "decals flicker all the time" - note that this polygonoffset still is not perfect, also, why do decals need higher polygonoffset when in a warpzone
+// this workaround causes decals to sometimes be visible through walls! (not seen it happen yet though other than on zfightometer)
+// once the issue is found, please revert back to the default of -14
+r_polygonoffset_decals_offset -100
+r_polygonoffset_decals_factor 0
{
t = car(s); s = cdr(s);
if (t == "weapons") MapInfo_Map_supportedFeatures |= MAPINFO_FEATURE_WEAPONS;
+ else if(t == "new_toys") MapInfo_Map_supportedFeatures |= MAPINFO_FEATURE_WEAPONS;
else
dprint("Map ", pFilename, " supports unknown feature ", t, ", ignored\n");
}
{
if(!(MapInfo_Map_supportedGametypes & pGametypeToSet))
{
- print("Can't select the requested game type. Trying anyway with stupid settings.\n");
- _MapInfo_Map_ApplyGametypeEx("", pGametypeToSet, MAPINFO_TYPE_DEATHMATCH);
+ error("Can't select the requested game type. This should never happen as the caller should prevent it!\n");
+ //_MapInfo_Map_ApplyGametypeEx("", pGametypeToSet, MAPINFO_TYPE_DEATHMATCH);
+ //return;
}
}
{
print("Mapinfo system is not functional at all. Assuming deathmatch.\n");
MapInfo_Map_supportedGametypes = MAPINFO_TYPE_DEATHMATCH;
+ _MapInfo_Map_ApplyGametypeEx("", t0, t0);
+ return; // do not call Get_ByName!
}
t = 1;
if(cvar("g_mapinfo_allow_unsupported_modes_and_let_stuff_break"))
{
print("EMERGENCY: can't play the selected map in the given game mode. Working with only the override settings.\n");
- cvar_set("timelimit", "0");
- cvar_set("fraglimit", "0");
- cvar_set("g_tdm_teams", "2");
- cvar_set("g_keyhunt_teams", "3");
- cvar_set("g_race_qualifying_timelimit", "0");
- cvar_set("leadlimit", "0");
+ cvar_settemp_restore();
+ _MapInfo_Map_ApplyGametypeEx("", t0, t0);
+ return; // do not call Get_ByName!
}
else
{
-float MAPINFO_TYPE_CTF = 1;
-float MAPINFO_TYPE_ASSAULT = 2;
-float MAPINFO_TYPE_ONSLAUGHT = 4;
-float MAPINFO_TYPE_RACE = 8;
-float MAPINFO_TYPE_DEATHMATCH = 16;
-float MAPINFO_TYPE_TEAM_DEATHMATCH = 32;
-float MAPINFO_TYPE_DOMINATION = 64;
-float MAPINFO_TYPE_RUNEMATCH = 128;
-float MAPINFO_TYPE_LMS = 256;
-float MAPINFO_TYPE_ARENA = 512;
-float MAPINFO_TYPE_KEYHUNT = 1024;
-float MAPINFO_TYPE_NEXBALL = 2048;
-float MAPINFO_TYPE_CTS = 4096;
-float MAPINFO_TYPE_CA = 8192;
-float MAPINFO_TYPE_ALL = 16383; // this has to include all above bits
+float MAPINFO_TYPE_DEATHMATCH = 1;
+float MAPINFO_TYPE_LMS = 2;
+float MAPINFO_TYPE_ARENA = 4;
+float MAPINFO_TYPE_RUNEMATCH = 8;
+float MAPINFO_TYPE_RACE = 16;
+float MAPINFO_TYPE_CTS = 32;
+float MAPINFO_TYPE_TEAM_DEATHMATCH = 64;
+float MAPINFO_TYPE_CTF = 128;
+float MAPINFO_TYPE_CA = 256;
+float MAPINFO_TYPE_DOMINATION = 512;
+float MAPINFO_TYPE_KEYHUNT = 1024;
+float MAPINFO_TYPE_ASSAULT = 2048;
+float MAPINFO_TYPE_ONSLAUGHT = 4096;
+float MAPINFO_TYPE_NEXBALL = 8192;
+float MAPINFO_TYPE_ALL = 16383; // this has to include all above bits
float MAPINFO_FEATURE_WEAPONS = 1; // not defined for minstagib-only maps
me.currentServerPing = strzone(s);
me.pingLabel.setText(me.pingLabel, me.currentServerPing);
- print(me.currentServerCName, "\n");
-
s = crypto_getidfp(me.currentServerCName);
if not(s)
s = "N/A";
void XonoticPlayerList_setPlayerList(entity me, string plist)
{
- dprint(plist,"------------\n");
-
float buf,i,n;
string s;
s = W_NumberWeaponOrder(cvar_string("cl_weaponpriority"));
t = W_FixWeaponOrder(s, 1);
if(t != s)
- {
- print("AUTOFIXED\n");
cvar_set("cl_weaponpriority", W_NameWeaponOrder(t));
- }
me.nItems = tokenize_console(t);
SUPER(XonoticWeaponsList).draw(me);
}
BADCVAR("g_runematch_point_leadlimit");
BADCVAR("leadlimit_and_fraglimit");
BADCVAR("leadlimit_override");
+ BADCVAR("sv_checkforpacketsduringsleep");
BADPREFIX("crypto_");
BADPREFIX("g_chat_");
BADPREFIX("prvm_");