From c17b948d800cf6abf41f88c8d0acc07fb5d2079a Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 6 Dec 2022 18:06:42 +1000 Subject: [PATCH] Allow mappers to define item skins --- qcsrc/server/items/items.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/items/items.qc b/qcsrc/server/items/items.qc index 6a19a435f..7f3a1c7c1 100644 --- a/qcsrc/server/items/items.qc +++ b/qcsrc/server/items/items.qc @@ -1101,7 +1101,8 @@ void _StartItem(entity this, entity def, float defaultrespawntime, float default //this.effects |= EF_LOWPRECISION; // support skinned models for powerups - this.skin = def.m_skin; + if(!this.skin) + this.skin = def.m_skin; setsize (this, this.pos1 = def.m_mins, this.pos2 = def.m_maxs); -- 2.39.2