]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow specifying zombie skin, rather than always forcing a random one
authorMario <mario.mario@y7mail.com>
Mon, 4 Mar 2013 07:53:43 +0000 (18:53 +1100)
committerMario <mario.mario@y7mail.com>
Mon, 4 Mar 2013 07:53:43 +0000 (18:53 +1100)
qcsrc/server/monsters/monster/zombie.qc

index 7261141b1bf0186b6890a17ed18350f73ca59257..dee874b674a5d5be6ed5c283df50961d833f907f 100644 (file)
@@ -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
 }