diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index aa04366d8bed39e698bf7e6d816e26710c685859..963f8aec27dfa4e0f4586e9ecfbbecd6c69f203c 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
if g_Game_IsNet and (gPlayer1 <> nil) then gPlayer1.PressKey(KEY_CHAT, 10000);
end;
// process weapon switch queue
if g_Game_IsNet and (gPlayer1 <> nil) then gPlayer1.PressKey(KEY_CHAT, 10000);
end;
// process weapon switch queue
- if gPlayer1 <> nil then gPlayer1.RealizeCurrentWeapon();
- if gPlayer2 <> nil then gPlayer2.RealizeCurrentWeapon();
end; // if server
// Íàáëþäàòåëü
end; // if server
// Íàáëþäàòåëü
if cmd = 'superchaingun' then begin plr.GiveItem(ITEM_WEAPON_SUPERPULEMET); g_Console_Add('player got a superchaingun'); continue; end;
if cmd = 'superchaingunzz' then begin plr.GiveItem(ITEM_WEAPON_SUPERPULEMET); plr.GiveItem(ITEM_AMMO_BULLETS_BOX); g_Console_Add('player got a superchaingun'); continue; end;
if cmd = 'superchaingun' then begin plr.GiveItem(ITEM_WEAPON_SUPERPULEMET); g_Console_Add('player got a superchaingun'); continue; end;
if cmd = 'superchaingunzz' then begin plr.GiveItem(ITEM_WEAPON_SUPERPULEMET); plr.GiveItem(ITEM_AMMO_BULLETS_BOX); g_Console_Add('player got a superchaingun'); continue; end;
+ if (cmd = 'flamer') or (cmd = 'flamethrower') or (cmd = 'ft') then begin plr.GiveItem(ITEM_WEAPON_FLAMETHROWER); g_Console_Add('player got a flame thrower'); continue; end;
+ if (cmd = 'flamerzz') or (cmd = 'flamethrowerzz') or (cmd = 'ftzz') then begin plr.GiveItem(ITEM_WEAPON_FLAMETHROWER); plr.GiveItem(ITEM_AMMO_FUELCAN); g_Console_Add('player got a flame thrower'); continue; end;
+
if cmd = 'chainsaw' then begin plr.GiveItem(ITEM_WEAPON_SAW); g_Console_Add('player got a chainsaw'); continue; end;
if cmd = 'ammo' then
if cmd = 'chainsaw' then begin plr.GiveItem(ITEM_WEAPON_SAW); g_Console_Add('player got a chainsaw'); continue; end;
if cmd = 'ammo' then
plr.GiveItem(ITEM_AMMO_BULLETS_BOX);
plr.GiveItem(ITEM_AMMO_CELL_BIG);
plr.GiveItem(ITEM_AMMO_ROCKET_BOX);
plr.GiveItem(ITEM_AMMO_BULLETS_BOX);
plr.GiveItem(ITEM_AMMO_CELL_BIG);
plr.GiveItem(ITEM_AMMO_ROCKET_BOX);
+ plr.GiveItem(ITEM_AMMO_FUELCAN);
g_Console_Add('player got some ammo');
continue;
end;
g_Console_Add('player got some ammo');
continue;
end;
if cmd = 'rocket' then begin plr.GiveItem(ITEM_AMMO_ROCKET); g_Console_Add('player got a rocket'); continue; end;
if cmd = 'rocketbox' then begin plr.GiveItem(ITEM_AMMO_ROCKET_BOX); g_Console_Add('player got some rockets'); continue; end;
if cmd = 'rocket' then begin plr.GiveItem(ITEM_AMMO_ROCKET); g_Console_Add('player got a rocket'); continue; end;
if cmd = 'rocketbox' then begin plr.GiveItem(ITEM_AMMO_ROCKET_BOX); g_Console_Add('player got some rockets'); continue; end;
+ if (cmd = 'fuel') or (cmd = 'fuelcan') then begin plr.GiveItem(ITEM_AMMO_FUELCAN); g_Console_Add('player got fuel canister'); continue; end;
+
if cmd = 'weapons' then
begin
plr.GiveItem(ITEM_WEAPON_SHOTGUN1);
if cmd = 'weapons' then
begin
plr.GiveItem(ITEM_WEAPON_SHOTGUN1);
// Debug mode:
s := Find_Param_Value(pars, '--debug');
if (s <> '') then
// Debug mode:
s := Find_Param_Value(pars, '--debug');
if (s <> '') then
+ begin
g_Game_SetDebugMode();
g_Game_SetDebugMode();
+ s := Find_Param_Value(pars, '--netdump');
+ if (s <> '') then
+ NetDump := True;
+ end;
// Connect when game loads
ip := Find_Param_Value(pars, '-connect');
// Connect when game loads
ip := Find_Param_Value(pars, '-connect');