Thread: Woodelf bsty
View Single Post
  #2  
Old 06-23-2015, 06:29 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,603
Default

Just add it to the switch like this (change ID to the race ID and TEXTURE to the texture you want):
Code:
switch(GetBaseRace())
{
    case VAHSHIR:
        npc_type->race = TIGER;
        npc_type->size *= 0.8f;
        break;
    case TROLL:
        npc_type->race = ALLIGATOR;
        npc_type->size *= 2.5f;
        break;
    case OGRE:
        npc_type->race = BEAR;
        npc_type->texture = 3;
        npc_type->gender = 2;
        break;
    case BARBARIAN:
        npc_type->race = WOLF;
        npc_type->texture = 2;
        break;
    case IKSAR:
        npc_type->race = WOLF;
        npc_type->texture = 0;
        npc_type->gender = 1;
        npc_type->size *= 2.0f;
        npc_type->luclinface = 0;
        break;
    case WOOD_ELF:
        npc_type->race = ID;
        npc_type->texture = TEXTURE;
        break;
    default:
        npc_type->race = WOLF;
        npc_type->texture = 0;
}
Reply With Quote