]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow mappers to define item skins
authorMario <mario.mario@y7mail.com>
Tue, 6 Dec 2022 08:06:42 +0000 (18:06 +1000)
committerMario <mario.mario@y7mail.com>
Tue, 6 Dec 2022 08:06:42 +0000 (18:06 +1000)
qcsrc/server/items/items.qc

index 6a19a435f2a502c05d0e6c8ed39ca7565c3a3601..7f3a1c7c1132f3641d51c4d7a670bbb187572d18 100644 (file)
@@ -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);