Skip to content

Commit

Permalink
Merge pull request #384 from osm/fix-tot-mode-weapons
Browse files Browse the repository at this point in the history
Toggle ToT mode weapons with k_disallow_weapons
  • Loading branch information
tcsabina authored Jan 12, 2025
2 parents b09ab2c + 0bbcb63 commit 99fb92f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -2149,9 +2149,7 @@ void PutClientInServer(void)
items |= IT_SUPER_SHOTGUN;
items |= IT_ROCKET_LAUNCHER;
items |= IT_GRENADE_LAUNCHER;

if (streq(mapname, "dm3") || streq(mapname, "dm4"))
items |= IT_LIGHTNING;
items |= IT_LIGHTNING;

items &= ~( IT_ARMOR1 | IT_ARMOR2 | IT_ARMOR3);
if (!self->isBot)
Expand Down
1 change: 1 addition & 0 deletions src/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -4427,6 +4427,7 @@ const char tot_um_init[] =
"dq 0\n"
"dr 0\n"
"k_bzk 0\n"
"k_disallow_weapons 80\n"
"k_exttime 0\n"
"k_fb_enabled 1\n"
"k_fb_quad_multiplier 8\n"
Expand Down

0 comments on commit 99fb92f

Please sign in to comment.