summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 502cd3d)
raw | patch | inline | side by side (parent: 502cd3d)
author | TerminalHash <lyashuk.voxx@gmail.com> | |
Tue, 12 Sep 2023 22:03:46 +0000 (01:03 +0300) | ||
committer | TerminalHash <lyashuk.voxx@gmail.com> | |
Tue, 12 Sep 2023 22:03:46 +0000 (01:03 +0300) |
game: improve log writing for items randomization debug
src/game/g_items.pas | patch | blob | history | |
src/game/g_options.pas | patch | blob | history |
diff --git a/src/game/g_items.pas b/src/game/g_items.pas
index 4337fffe3a2760fafd0d50a6778793ca4e61025c..4f0bd805167ee1d9f615b0900da7b4c05d25b43e 100644 (file)
--- a/src/game/g_items.pas
+++ b/src/game/g_items.pas
ITEM_INVIS, ITEM_MEDKIT_BLACK, ITEM_JETPACK, ITEM_SUIT] then
begin
ggItems[ID].RespawnTime := Max(1, (gGameSettings.RulezRespawnTime + RandomRange(-gGameSettings.RulezRespawnRandom, gGameSettings.RulezRespawnRandom + 1)) * 36);
- //e_logwritefln ('Randomized rulez time: %s', [ggItems[ID].RespawnTime]);
+ //e_logwritefln ('Randomized rulez %s time: %s', [ggItems[ID].ItemType, ggItems[ID].RespawnTime]);
end;
end;
ITEM_WEAPON_FLAMETHROWER] then
begin
ggItems[ID].RespawnTime := Max(1, (gGameSettings.ItemRespawnTime + RandomRange(-gGameSettings.ItemRespawnRandom, gGameSettings.ItemRespawnRandom + 1)) * 36);
- //e_logwritefln ('Randomized item time: %s', [ggItems[ID].RespawnTime]);
+ //e_logwritefln ('Randomized item %s time: %s', [ggItems[ID].ItemType, ggItems[ID].RespawnTime]);
end;
end;
ITEM_AMMO_BACKPACK] then
begin
ggItems[ID].RespawnTime := Max(1, (gGameSettings.ItemRespawnTime + RandomRange(-gGameSettings.ItemRespawnRandom, gGameSettings.ItemRespawnRandom + 1)) * 36);
- //e_logwritefln ('Randomized help item time: %s', [ggItems[ID].RespawnTime]);
+ //e_logwritefln ('Randomized help item %s time: %s', [ggItems[ID].ItemType, ggItems[ID].RespawnTime]);
end;
end;
ITEM_AMMO_CELL, ITEM_AMMO_CELL_BIG, ITEM_AMMO_FUELCAN] then
begin
ggItems[ID].RespawnTime := Max(1, (gGameSettings.ItemRespawnTime + RandomRange(-gGameSettings.ItemRespawnRandom, gGameSettings.ItemRespawnRandom + 1)) * 36);
- //e_logwritefln ('Randomized ammo time: %s', [ggItems[ID].RespawnTime]);
+ //e_logwritefln ('Randomized ammo %s time: %s', [ggItems[ID].ItemType, ggItems[ID].RespawnTime]);
end;
end;
ITEM_WEAPON_BFG, ITEM_WEAPON_SUPERPULEMET, ITEM_WEAPON_FLAMETHROWER] then
begin
ggItems[ID].RespawnTime := Max(1, (gGameSettings.ItemRespawnTime + RandomRange(-gGameSettings.ItemRespawnRandom, gGameSettings.ItemRespawnRandom + 1)) * 36);
- //e_logwritefln ('Randomized weapons time: %s', [ggItems[ID].RespawnTime]);
+ //e_logwritefln ('Randomized weapon %s time: %s', [ggItems[ID].ItemType, ggItems[ID].RespawnTime]);
end;
end;
end;
diff --git a/src/game/g_options.pas b/src/game/g_options.pas
index 13033d20cc1507bc8fb8acbcea9415f833224961..93e9199a211d2f4c40a03531898b8f49667f734b 100644 (file)
--- a/src/game/g_options.pas
+++ b/src/game/g_options.pas
gsGameFlags := GAME_OPTION_ALLOWEXIT or GAME_OPTION_DMKEYS or
GAME_OPTION_BOTVSPLAYER or GAME_OPTION_BOTVSMONSTER or
GAME_OPTION_TEAMHITTRACE or GAME_OPTION_TEAMHITPROJECTILE or
- GAME_OPTION_ALLOWDROPFLAG or GAME_OPTION_RULEZRANDOM;
+ GAME_OPTION_ALLOWDROPFLAG;
gsPlayers := 1;
if not gGameOn then