// =========
// gungame
// =========
-set g_gg 0 "GunGame: Kill players with all weapons"
+set g_gg 0 "GunGame: Kill players with all weapons. One weapon at a time."
set g_gg_weapons "vortex mortar machinegun hagar arc electro devastator crylink shotgun blaster"
set g_gg_kills_per_weapon 3 "Number of kills needed to advance to the next weapon"
/// \file
/// \brief Source file that contains implementation of the GunGame gamemode.
-/// \author Lyberta
/// \copyright GNU GPLv2 or any later version.
#include "sv_gungame.qh"
gungame_leading_level = GunGame_GetPlayerLevel(gungame_leading_player);
gungame_leading_weapon = GunGame_GetWeapon(gungame_leading_level);
GunGame_UpdateStats();
- //PrintToChatAll(strcat(gungame_leading_player.netname,
- // " is leading with level ", ftos(gungame_leading_level)));
}
void GunGame_UpdateStats()
/// \brief Hook that is called to determine if there is a weapon arena.
MUTATOR_HOOKFUNCTION(gg, SetWeaponArena)
{
- //PrintToChatAll("SetWeaponArena");
M_ARGV(0, string) = "off";
}
/// \brief Hook that is called to determine start items of all players.
MUTATOR_HOOKFUNCTION(gg, SetStartItems)
{
- //PrintToChatAll("SetStartItems");
start_weapons = WEPSET(Null);
warmup_start_weapons = WEPSET(Null);
}
/// \brief Hook that is called when an item is about to spawn.
MUTATOR_HOOKFUNCTION(gg, FilterItemDefinition)
{
- //PrintToChatAll("FilterItemDefinition");
entity item = M_ARGV(0, entity);
if (item.instanceOfAmmo)
{
/// \brief Hook that determines whether remaining frags are announced.
MUTATOR_HOOKFUNCTION(gg, Scores_CountFragsRemaining)
{
- // announce remaining frags
+ // Announce remaining frags.
return true;
}
CLASS(GunGame, Gametype)
INIT(GunGame)
{
- this.gametype_init(this, _("GunGame"), "gg", "g_gg", false, "", "timelimit=20", _("Kill players with all weapons"));
+ this.gametype_init(this, _("GunGame"), "gg", "g_gg", false, "", "timelimit=20", _("Kill players with all weapons. One weapon at a time"));
}
METHOD(GunGame, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter))
{