summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c80103f)
raw | patch | inline | side by side (parent: c80103f)
author | TerminalHash <lyashuk.voxx@gmail.com> | |
Thu, 31 Aug 2023 22:08:31 +0000 (01:08 +0300) | ||
committer | TerminalHash <lyashuk.voxx@gmail.com> | |
Thu, 31 Aug 2023 22:08:31 +0000 (01:08 +0300) |
src/game/g_language.pas | patch | blob | history | |
src/game/g_menu.pas | patch | blob | history |
index 341a4577299dde8c97cdc8cb4e9456587f583ba8..22b589a58252e874b462e698928fba47a535c470 100644 (file)
--- a/src/game/g_language.pas
+++ b/src/game/g_language.pas
I_MENU_DEATHMATCH_KEYS,
I_MENU_ENABLE_EXITS,
I_MENU_WEAPONS_STAY,
+ I_MENU_ENABLE_TEAM_DAMAGE_ABSOBR,
I_MENU_ENABLE_MONSTERS,
I_MENU_ENABLE_RULEZ_RANDOM,
I_MENU_RULEZ_RESPAWN_MULTIPLIER,
'Âêëþ÷èòü âûõîä:'),
('MENU WEAPONS STAY', 'Weapons stay:',
'Îðóæèå îñòà¸òñÿ:'),
+ ('MENU ENABLE TEAM DAMAGE ABSOBR', 'Enable team damage absorbtion:',
+ 'Ïîãëîùåíèå óðîíà ñîþçíèêàìè:'),
('MENU ENABLE MONSTERS', 'Enable monsters:',
'Ìîíñòðû:'),
('MENU ENABLE RULEZ RANDOM', 'Enable random powerup respawn:',
diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas
index 39da0203a5cd3b4ee9eaa5ba59a9e61086a117ea..8da0b63c93a5c66826098e2965a5b060264917c1 100644 (file)
--- a/src/game/g_menu.pas
+++ b/src/game/g_menu.pas
gsGameFlags := 0;
if TGUISwitch(GetControl('swTeamDamage')).ItemIndex = 0 then
gsGameFlags := gsGameFlags or GAME_OPTION_TEAMDAMAGE;
+ if TGUISwitch(GetControl('swTeamAbsorbDamage')).ItemIndex = 0 then
+ gsGameFlags := gsGameFlags or GAME_OPTION_TEAMABSORBDAMAGE;
if TGUISwitch(GetControl('swDeathmatchKeys')).ItemIndex = 0 then
gsGameFlags := gsGameFlags or GAME_OPTION_DMKEYS;
if TGUISwitch(GetControl('swEnableExits')).ItemIndex = 0 then
else
ItemIndex := 3;
end;
+ with AddSwitch(_lc[I_MENU_ENABLE_TEAM_DAMAGE_ABSOBR]) do
+ begin
+ Name := 'swTeamAbsorbDamage';
+ AddItem(_lc[I_MENU_YES]);
+ AddItem(_lc[I_MENU_NO]);
+ if LongBool(gsGameFlags and GAME_OPTION_TEAMABSORBDAMAGE) then
+ ItemIndex := 0
+ else
+ ItemIndex := 1;
+ end;
with AddSwitch(_lc[I_MENU_DEATHMATCH_KEYS]) do
begin
Name := 'swDeathmatchKeys';
else
ItemIndex := 3;
end;
+ with AddSwitch(_lc[I_MENU_ENABLE_TEAM_DAMAGE_ABSOBR]) do
+ begin
+ Name := 'swTeamAbsorbDamage';
+ AddItem(_lc[I_MENU_YES]);
+ AddItem(_lc[I_MENU_NO]);
+ if LongBool(gsGameFlags and GAME_OPTION_TEAMABSORBDAMAGE) then
+ ItemIndex := 0
+ else
+ ItemIndex := 1;
+ end;
with AddSwitch(_lc[I_MENU_DEATHMATCH_KEYS]) do
begin
Name := 'swDeathmatchKeys';