HoS_PRC8/_mod/_module/nss/oe_gameentry.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

20 lines
874 B
Plaintext

#include "prc_inc_racial"
// oe_gameentry - Reset appearances to default for race
void main()
{
object oPC=GetEnteringObject();
int nRT;
if (GetIsPC(oPC))
{ // PC
nRT=MyPRCGetRacialType(oPC);
if (nRT==RACIAL_TYPE_HUMAN) SetCreatureAppearanceType(oPC,APPEARANCE_TYPE_HUMAN);
else if (nRT==RACIAL_TYPE_ELF) SetCreatureAppearanceType(oPC,APPEARANCE_TYPE_ELF);
else if (nRT==RACIAL_TYPE_HALFELF) SetCreatureAppearanceType(oPC,APPEARANCE_TYPE_HALF_ELF);
else if (nRT==RACIAL_TYPE_DWARF) SetCreatureAppearanceType(oPC,APPEARANCE_TYPE_DWARF);
else if (nRT==RACIAL_TYPE_GNOME) SetCreatureAppearanceType(oPC,APPEARANCE_TYPE_GNOME);
else if (nRT==RACIAL_TYPE_HALFLING) SetCreatureAppearanceType(oPC,APPEARANCE_TYPE_HALFLING);
else if (nRT==RACIAL_TYPE_HALFORC) SetCreatureAppearanceType(oPC,APPEARANCE_TYPE_HALF_ORC);
} // PC
}