From: Mario Date: Mon, 22 Apr 2013 11:56:00 +0000 (+1000) Subject: Set minimum monster fuel drop amount to 5 X-Git-Tag: xonotic-v0.8.0~241^2^2~317 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=43a4a31cad17b512fde0a7177474d9c009284a6b;p=xonotic%2Fxonotic-data.pk3dir.git Set minimum monster fuel drop amount to 5 --- diff --git a/qcsrc/server/mutators/gamemode_towerdefense.qc b/qcsrc/server/mutators/gamemode_towerdefense.qc index 21e92aad9..828abda16 100644 --- a/qcsrc/server/mutators/gamemode_towerdefense.qc +++ b/qcsrc/server/mutators/gamemode_towerdefense.qc @@ -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)