]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
add Infection gamemode: survivors must avoid getting infected squeaktoy/infection-gamemode
authorsqueaktoy <latex@disroot.org>
Wed, 10 Jul 2024 18:16:53 +0000 (20:16 +0200)
committersqueaktoy <latex@disroot.org>
Thu, 11 Jul 2024 19:27:14 +0000 (21:27 +0200)
commitcf1c7c4ba6e9a76b83402821fc473ed09f89d4af
tree839fbf8260679db43e169ef8cf4978608630aaff
parent25571296e621ad7d138de565cb8b204302029f87
add Infection gamemode: survivors must avoid getting infected

The game begins with only survivors. After a few seconds, a random
player will be selected to become infected. If a survivor is killed by
an infected player, the survivor will become infected. If all survivors
are dead, the infected win. If the infected fail to kill all survivors
within the timeframe, survivors win.

This commit is incomplete and will not work. Current issues:
- Fix game crash when a survivor is killed
- Mutators for setting what weapons infected have at their disposal
14 files changed:
gamemodes-client.cfg
gamemodes-server.cfg
notifications.cfg
qcsrc/common/gamemodes/gamemode/_mod.inc
qcsrc/common/gamemodes/gamemode/_mod.qh
qcsrc/common/gamemodes/gamemode/infection/_mod.inc [new file with mode: 0644]
qcsrc/common/gamemodes/gamemode/infection/_mod.qh [new file with mode: 0644]
qcsrc/common/gamemodes/gamemode/infection/infection.qc [new file with mode: 0644]
qcsrc/common/gamemodes/gamemode/infection/infection.qh [new file with mode: 0644]
qcsrc/common/gamemodes/gamemode/infection/sv_infection.qc [new file with mode: 0644]
qcsrc/common/gamemodes/gamemode/infection/sv_infection.qh [new file with mode: 0644]
qcsrc/common/notifications/all.inc
qcsrc/menu/xonotic/util.qc
qcsrc/server/world.qc