From: Mario Date: Mon, 4 Mar 2013 07:53:43 +0000 (+1100) Subject: Allow specifying zombie skin, rather than always forcing a random one X-Git-Tag: xonotic-v0.8.0~241^2^2~488 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5cdf11f27f824c2e8a09a3f09c4ff9844eaf2e4e;p=xonotic%2Fxonotic-data.pk3dir.git Allow specifying zombie skin, rather than always forcing a random one --- diff --git a/qcsrc/server/monsters/monster/zombie.qc b/qcsrc/server/monsters/monster/zombie.qc index 7261141b1..dee874b67 100644 --- a/qcsrc/server/monsters/monster/zombie.qc +++ b/qcsrc/server/monsters/monster/zombie.qc @@ -170,7 +170,9 @@ void zombie_spawn() self.checkattack = GenericCheckAttack; self.attack_melee = zombie_attack_standing; self.attack_ranged = zombie_attack_ranged; - self.skin = rint(random() * 4); + + if not(self.skin) + self.skin = rint(random() * 4); monster_hook_spawn(); // for post-spawn mods }