]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
GunGame: Finishing touches.
authorLyberta <lyberta@lyberta.net>
Mon, 11 Jun 2018 16:18:24 +0000 (19:18 +0300)
committerLyberta <lyberta@lyberta.net>
Mon, 11 Jun 2018 16:18:24 +0000 (19:18 +0300)
gamemodes-server.cfg
qcsrc/common/gamemodes/gamemode/gungame/sv_gungame.qc
qcsrc/common/gamemodes/gamemode/gungame/sv_gungame.qh
qcsrc/common/mapinfo.qh

index a4251c23f623cf14075ddc263442f7d7ddb55b7c..37731c19849041a2922f56519e7dcdd6f2fa933e 100644 (file)
@@ -536,6 +536,6 @@ set g_invasion_type 0 "type of invasion mode - 0: round-based, 1: hunting, 2: co
 // =========
 //  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"
index cccfc72dc8fd2ce6e12829b6aa25c412d1d0c77e..9192e3bb6251bccc4fe459e10e2189a4d85335e0 100644 (file)
@@ -1,6 +1,5 @@
 /// \file
 /// \brief Source file that contains implementation of the GunGame gamemode.
-/// \author Lyberta
 /// \copyright GNU GPLv2 or any later version.
 
 #include "sv_gungame.qh"
@@ -114,8 +113,6 @@ void GunGame_UpdateLeadingPlayer()
        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()
@@ -165,14 +162,12 @@ void GunGame_GivePlayerWeapon(entity player)
 /// \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);
 }
@@ -180,7 +175,6 @@ MUTATOR_HOOKFUNCTION(gg, SetStartItems)
 /// \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)
        {
@@ -243,6 +237,6 @@ MUTATOR_HOOKFUNCTION(gg, PlayerDies)
 /// \brief Hook that determines whether remaining frags are announced.
 MUTATOR_HOOKFUNCTION(gg, Scores_CountFragsRemaining)
 {
-       // announce remaining frags
+       // Announce remaining frags.
        return true;
 }
index 44df2e3263c22b866b71cf4aa37d5e96e738692e..730a6f16bc852b07a0777cff3fac91d6e75ea486 100644 (file)
@@ -1,12 +1,10 @@
 /// \file
 /// \brief Header file that describes the GunGame gamemode.
-/// \author Lyberta
 /// \copyright GNU GPLv2 or any later version.
 
 #pragma once
 
 /// \brief Initializes global data for the gametype.
-/// \return No return.
 void GunGame_Initialize();
 
 REGISTER_MUTATOR(gg, false)
index 39ab76f530905ad22fb487e8a7d3c17b06ef9ad0..1f632859cc75df9ff05f6bbc7c7c11a2902fd84d 100644 (file)
@@ -488,7 +488,7 @@ void HUD_Mod_GG(vector pos, vector mySize);
 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))
     {