From e7de9a09ff4241a1f5521c506b08e2e556cd4f42 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 2 Jan 2025 01:37:20 +0000 Subject: [PATCH] Fix monsters preferring player colours over team colours --- qcsrc/common/monsters/sv_monsters.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/common/monsters/sv_monsters.qc b/qcsrc/common/monsters/sv_monsters.qc index b71e1054d..6f3191196 100644 --- a/qcsrc/common/monsters/sv_monsters.qc +++ b/qcsrc/common/monsters/sv_monsters.qc @@ -164,10 +164,10 @@ entity Monster_FindTarget(entity this) void monster_setupcolors(entity this) { - if(IS_PLAYER(this.realowner)) - this.colormap = this.realowner.colormap; - else if(teamplay && this.team) + if(teamplay && this.team) this.colormap = 1024 + (this.team - 1) * 17; + else if(IS_PLAYER(this.realowner)) + this.colormap = this.realowner.colormap; else { if(this.monster_skill <= MONSTER_SKILL_EASY) -- 2.39.5