]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Stop reviving progress and forbid throwing weapons and nades during the countdown...
authorterencehill <piuntn@gmail.com>
Wed, 27 Jan 2021 16:22:32 +0000 (17:22 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 27 Jan 2021 16:22:32 +0000 (17:22 +0100)
qcsrc/server/client.qc
qcsrc/server/weapons/throwing.qc

index 69e36d7c448da44922b574429d5eed256426ac9a..048d606bb5efcff781ab6d1dc645d64a3f01717f 100644 (file)
@@ -2498,7 +2498,7 @@ void PlayerPreThink (entity this)
                this.max_armorvalue = 0;
        }
 
-       if (frametime && IS_PLAYER(this))
+       if (frametime && IS_PLAYER(this) && time >= game_starttime)
        {
                if (STAT(FROZEN, this) == FROZEN_TEMP_REVIVING)
                {
index db89ffc443b3478e610cd996b10b6c2335b49443..1b3bb661c3a939358a31b212287de2946a3837f4 100644 (file)
@@ -149,6 +149,8 @@ void W_ThrowWeapon(entity this, .entity weaponentity, vector velo, vector delta,
        Weapon w = this.(weaponentity).m_weapon;
        if (w == WEP_Null)
                return; // just in case
+       if (time < game_starttime)
+               return;
        if(MUTATOR_CALLHOOK(ForbidThrowCurrentWeapon, this, this.(weaponentity)))
                return;
        if(!autocvar_g_weapon_throwable)