diff --git a/src/game/g_console.pas b/src/game/g_console.pas
index 35530016786688639acf4254fd6435302c00bf47..cbfcf5faaabf1134618ca6942c99485d89bb364d 100644 (file)
--- a/src/game/g_console.pas
+++ b/src/game/g_console.pas
implementation
uses
- g_textures, g_main, e_graphics, e_input, g_game,
+ g_textures, g_main, e_graphics, e_input, g_game, g_gfx, g_player, g_items,
SysUtils, g_basic, g_options, Math, g_touch, e_res,
g_menu, g_gui, g_language, g_net, g_netmsg, e_log, conbuf;
AddCommand('r_reset', g_Options_Commands);
AddCommand('g_language', g_Options_Commands);
+ AddCommand('g_max_particles', g_Options_Commands);
+ AddCommand('g_max_shells', g_Options_Commands);
+ AddCommand('g_max_gibs', g_Options_Commands);
+ AddCommand('g_max_corpses', g_Options_Commands);
+ AddCommand('g_item_respawn_time', g_Options_Commands);
AddCommand('bind', BindCommands);
AddCommand('bindlist', BindCommands);
AddCommand('d_joy', DebugCommands);
AddCommand('d_mem', DebugCommands);
- AddCommand('p1_name', GameCVars);
- AddCommand('p2_name', GameCVars);
- AddCommand('p1_color', GameCVars);
- AddCommand('p2_color', GameCVars);
+ AddCommand('p1_name', PlayerSettingsCVars);
+ AddCommand('p2_name', PlayerSettingsCVars);
+ AddCommand('p1_color', PlayerSettingsCVars);
+ AddCommand('p2_color', PlayerSettingsCVars);
+ AddCommand('p1_model', PlayerSettingsCVars);
+ AddCommand('p2_model', PlayerSettingsCVars);
+
AddCommand('r_showscore', GameCVars);
AddCommand('r_showlives', GameCVars);
AddCommand('r_showstat', GameCVars);
AddCommand('g_friendlyfire', GameCVars);
AddCommand('g_weaponstay', GameCVars);
AddCommand('g_allow_exit', GameCVars);
+ AddCommand('g_dm_keys', GameCVars);
AddCommand('g_allow_monsters', GameCVars);
AddCommand('g_bot_vsmonsters', GameCVars);
AddCommand('g_bot_vsplayers', GameCVars);
AddCommand('g_timelimit', GameCVars);
AddCommand('g_maxlives', GameCVars);
AddCommand('g_warmuptime', GameCVars);
- AddCommand('net_interp', GameCVars);
- AddCommand('net_forceplayerupdate', GameCVars);
- AddCommand('net_predictself', GameCVars);
- AddCommand('sv_name', GameCVars);
- AddCommand('sv_passwd', GameCVars);
- AddCommand('sv_maxplrs', GameCVars);
- AddCommand('sv_public', GameCVars);
+ AddCommand('g_spawn_invul', GameCVars);
AddCommand('sv_intertime', GameCVars);
+ AddCommand('sv_name', NetServerCVars);
+ AddCommand('sv_passwd', NetServerCVars);
+ AddCommand('sv_maxplrs', NetServerCVars);
+ AddCommand('sv_public', NetServerCVars);
+
AddCommand('quit', GameCommands);
AddCommand('exit', GameCommands);
AddCommand('pause', GameCommands);
AddCommand('reconnect', GameCommands);
AddCommand('say', GameCommands);
AddCommand('tell', GameCommands);
+ AddCommand('centerprint', GameCommands);
AddCommand('overtime', GameCommands);
AddCommand('rcon_password', GameCommands);
AddCommand('rcon', GameCommands);
WhitelistCommand('restart');
WhitelistCommand('kick');
WhitelistCommand('ban');
+ WhitelistCommand('centerprint');
WhitelistCommand('addbot');
WhitelistCommand('bot_add');
WhitelistCommand('g_allow_monsters');
WhitelistCommand('g_scorelimit');
WhitelistCommand('g_timelimit');
+ WhitelistCommand('g_dm_keys');
+ WhitelistCommand('g_spawn_invul');
+ WhitelistCommand('g_warmuptime');
g_Console_ResetBinds;
g_Console_ReadConfig(configScript);
Write(f, ' ', QuoteStr(GetCommandString(gInputBinds[i].up)));
WriteLn(f, '');
end;
+ if gAskLanguage then
+ WriteLn(f, 'g_language ask')
+ else
+ WriteLn(f, 'g_language ', gLanguage);
+ WriteLn(f, 'g_max_particles ', g_GFX_GetMax());
+ WriteLn(f, 'g_max_shells ', g_Shells_GetMax());
+ WriteLn(f, 'g_max_gibs ', g_Gibs_GetMax());
+ WriteLn(f, 'g_max_corpses ', g_Corpses_GetMax());
+ WriteLn(f, 'g_item_respawn_time ', ITEM_RESPAWNTIME div 36);
+ with gPlayer1Settings do
+ begin
+ WriteLn(f, 'p1_name ', QuoteStr(Name));
+ WriteLn(f, 'p1_color ', Color.R, ' ', Color.G, ' ', Color.B);
+ end;
+ with gPlayer2Settings do
+ begin
+ WriteLn(f, 'p2_name ', QuoteStr(Name));
+ WriteLn(f, 'p2_color ', Color.R, ' ', Color.G, ' ', Color.B);
+ end;
for i := 0 to High(commands) do
begin
if not commands[i].cheat then
end
end
end;
- if gAskLanguage then
- WriteLn(f, 'g_language ask')
- else
- WriteLn(f, 'g_language ', gLanguage);
WriteLn(f, 'r_reset');
CloseFile(f)
end;