]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Set minimum monster fuel drop amount to 5
authorMario <mario.mario@y7mail.com>
Mon, 22 Apr 2013 11:56:00 +0000 (21:56 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 22 Apr 2013 11:56:00 +0000 (21:56 +1000)
qcsrc/server/mutators/gamemode_towerdefense.qc

index 21e92aad9ec33762de11d628141d20a745cee26a..828abda16b3c5e18590e6346919cceb523149655 100644 (file)
@@ -801,12 +801,10 @@ MUTATOR_HOOKFUNCTION(td_MonsterSpawn)
        
        self.spawnshieldtime = time + autocvar_g_td_monsters_spawnshield_time;
        
-       self.drop_size = self.health * 0.05;
+       self.drop_size = bound(5, self.health * 0.05, autocvar_g_pickup_fuel_max);
        
        self.target_range = 600;
        
-       if(self.drop_size < 1) self.drop_size = 1;
-       
        self.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_BOTCLIP | DPCONTENTS_CORPSE | DPCONTENTS_MONSTERCLIP;
        
        switch(self.monsterid)