fix weapon throwing breakage
authorRudolf Polzer <divverent@alientrap.org>
Tue, 4 May 2010 13:48:00 +0000 (15:48 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 4 May 2010 13:48:00 +0000 (15:48 +0200)
qcsrc/server/t_items.qc

index 9d32f3234bf7ae2f429f4c4038f84e1666cc67df..d9c3240603852704483caeea7b341d8195221120 100644 (file)
@@ -682,6 +682,9 @@ void StartItem (string itemmodel, string pickupsound, float defaultrespawntime,
 {
        startitem_failed = FALSE;
 
+       self.items = itemid;
+       self.weapons = weaponid;
+
        // is it a dropped weapon?
        if (self.classname == "droppedweapon")
        {
@@ -702,9 +705,6 @@ void StartItem (string itemmodel, string pickupsound, float defaultrespawntime,
        }
        else
        {
-               self.items = itemid;
-               self.weapons = weaponid;
-
                if(MUTATOR_CALLHOOK(FilterItem)) // error means we do not want the item
                {
                        startitem_failed = TRUE;