]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge remote-tracking branch 'origin/divVerent/allow-override-item-model'
authorRudolf Polzer <divverent@alientrap.org>
Mon, 9 Jan 2012 20:54:32 +0000 (21:54 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 9 Jan 2012 20:54:32 +0000 (21:54 +0100)
Conflicts:
qcsrc/server/t_items.qc

1  2 
defaultXonotic.cfg
qcsrc/server/t_items.qc

index d255f8e338ac656bbe6cae29ed39e2fe38c2dcf1,18ce4a988194079a8b0ef0368ea96a8a1401ae92..52c14b2be90d9f41000144d0ad6a9060b27e3e35
@@@ -438,7 -447,6 +438,7 @@@ set bot_ai_aimskill_order_filter_5th 0.
  
  // waypoint editor enable
  set g_waypointeditor 0
- set g_waypointeditor_auto 0 "Automatically create waypoints for bots while playing"
++set g_waypointeditor_auto 0 "Automatically create waypoints for bots while playing; BEWARE, this currently creates too many of them"
  set bot_ignore_bots 0 "When set, bots don't shoot at other bots"
  set bot_join_empty 0  "When set, bots also play if no player has joined the server"
  set bot_vs_human 0    "Bots and humans play in different teams when set. positive values to make an all-bot blue team, set to negative values to make an all-bot red team, the absolute value is the ratio bots vs humans (1 for equal count). Changes will be correctly applied only from the next game"
index 79c39ae95d7998899e99529451df30ff22b05fed,2ca9162f858229c309d66050460cace9909c87eb..46c7342f4ead3431f4a67995024da8339dab4740
@@@ -729,13 -712,11 +729,18 @@@ void StartItem (string itemmodel, strin
                        return;
                }
  
 +              if(!have_pickup_item())
 +              {
 +                      startitem_failed = TRUE;
 +                      remove (self);
 +                      return;
 +              }
 +
+               if(self.model != "")
+                       itemmodel = self.model;
+               if(self.item_pickupsound != "")
+                       pickupsound = self.item_pickupsound;
                self.reset = Item_Reset;
                // it's a level item
                if(self.spawnflags & 1)