summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 555f529)
raw | patch | inline | side by side (parent: 555f529)
author | TerminalHash <lyashuk.voxx@gmail.com> | |
Fri, 8 Sep 2023 10:28:53 +0000 (13:28 +0300) | ||
committer | TerminalHash <lyashuk.voxx@gmail.com> | |
Fri, 8 Sep 2023 10:28:53 +0000 (13:28 +0300) |
src/game/g_language.pas | patch | blob | history | |
src/game/g_menu.pas | patch | blob | history |
index 72098b4c05c9c4d202c6ada81bfdee9a9af7b0b7..518321113f3949ec94f6c6f7e75ed770790f3c53 100644 (file)
--- a/src/game/g_language.pas
+++ b/src/game/g_language.pas
I_MENU_ITEM_RANDOM_HELP_ONLY,
I_MENU_ITEM_RANDOM_AMMO_ONLY,
I_MENU_ITEM_RANDOM_WEAPON_ONLY,
+ I_MENU_ITEM_RANDOM_HELP_AMMO,
+ I_MENU_ITEM_RANDOM_HELP_WEAPON,
+ I_MENU_ITEM_RANDOM_WEAPON_AMMO,
I_MENU_ITEM_RANDOM_NOTHING,
I_MENU_DEATHMATCH_KEYS,
I_MENU_ENABLE_EXITS,
'Òîëüêî áîåïðèïàñû'),
('MENU ITEM RESPAWN WEAPON ONLY', 'For weapons only',
'Òîëüêî îðóæèå'),
+ ('MENU ITEM RESPAWN HELP AMMO', 'For help items and ammo',
+ 'Âñïîìîãàòåëüíîå è áîåïðèïàñû'),
+ ('MENU ITEM RESPAWN HELP WEAPON', 'For help items and weapons',
+ 'Âñïîìîãàòåëüíîå è îðóæèå'),
+ ('MENU ITEM RESPAWN WEAPON AMMO', 'For weapons and ammo',
+ 'Îðóæèå è áîåïðèïàñû'),
('MENU ITEM RESPAWN NOTHING', 'Nothing',
'Íè÷åãî'),
('MENU DEATHMATCH KEYS', 'Give all keys in DM:',
diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas
index 8cd9363c8da74eb2112b972339e9eab2fa7528a1..80989a887ad4a2d8d46a91a3afc4e992fd4c0559 100644 (file)
--- a/src/game/g_menu.pas
+++ b/src/game/g_menu.pas
1: gsGameFlags := gsGameFlags or GAME_OPTION_ITEMHELPRANDOM;
2: gsGameFlags := gsGameFlags or GAME_OPTION_ITEMAMMORANDOM;
3: gsGameFlags := gsGameFlags or GAME_OPTION_ITEMWEAPONRANDOM;
+ 4: gsGameFlags := gsGameFlags or GAME_OPTION_ITEMHELPRANDOM or GAME_OPTION_ITEMAMMORANDOM;
+ 5: gsGameFlags := gsGameFlags or GAME_OPTION_ITEMHELPRANDOM or GAME_OPTION_ITEMWEAPONRANDOM;
+ 6: gsGameFlags := gsGameFlags or GAME_OPTION_ITEMAMMORANDOM or GAME_OPTION_ITEMWEAPONRANDOM;
0: gsGameFlags := gsGameFlags or GAME_OPTION_ITEMALLRANDOM;
end;
AddItem(_lc[I_MENU_ITEM_RANDOM_HELP_ONLY]);
AddItem(_lc[I_MENU_ITEM_RANDOM_AMMO_ONLY]);
AddItem(_lc[I_MENU_ITEM_RANDOM_WEAPON_ONLY]);
+ AddItem(_lc[I_MENU_ITEM_RANDOM_HELP_AMMO]);
+ AddItem(_lc[I_MENU_ITEM_RANDOM_HELP_WEAPON]);
+ AddItem(_lc[I_MENU_ITEM_RANDOM_WEAPON_AMMO]);
AddItem(_lc[I_MENU_ITEM_RANDOM_NOTHING]);
if LongBool(gsGameFlags and GAME_OPTION_ITEMALLRANDOM) then
ItemIndex := 0
ItemIndex := 2
else if LongBool(gsGameFlags and GAME_OPTION_ITEMWEAPONRANDOM) then
ItemIndex := 3
+ else if (gsGameFlags and (GAME_OPTION_ITEMHELPRANDOM or GAME_OPTION_ITEMAMMORANDOM)) = (GAME_OPTION_ITEMHELPRANDOM or GAME_OPTION_ITEMAMMORANDOM) then
+ ItemIndex := 4
+ else if (gsGameFlags and (GAME_OPTION_ITEMHELPRANDOM or GAME_OPTION_ITEMWEAPONRANDOM)) = (GAME_OPTION_ITEMHELPRANDOM or GAME_OPTION_ITEMWEAPONRANDOM) then
+ ItemIndex := 5
+ else if (gsGameFlags and (GAME_OPTION_ITEMAMMORANDOM or GAME_OPTION_ITEMWEAPONRANDOM)) = (GAME_OPTION_ITEMAMMORANDOM or GAME_OPTION_ITEMWEAPONRANDOM) then
+ ItemIndex := 6
else
- ItemIndex := 4;
+ ItemIndex := 7;
end;
AddSpace();// Items Respawn block
with AddEdit(_lc[I_MENU_ITEM_RESPAWN_TIME]) do