Updated scripts to use MyPRCGetRacialType
Updated scripts to use MyPRCGetRacialType. Full compile.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
#include "prc_inc_racial"
|
||||
|
||||
// void main (){}
|
||||
// VOICE CONFIGURATION - NEW IN 1.07 and UP
|
||||
|
||||
// Set this to 0 if you want to DISABLE listening by NPCs for performance reasons.
|
||||
@@ -672,7 +675,7 @@ void SmokePipe(object oActivator)
|
||||
// Set height based on race and gender
|
||||
if (GetGender(oActivator) == GENDER_MALE)
|
||||
{
|
||||
switch (GetRacialType(oActivator))
|
||||
switch (MyPRCGetRacialType(oActivator))
|
||||
{
|
||||
case RACIAL_TYPE_HUMAN:
|
||||
case RACIAL_TYPE_HALFELF: fHeight = 1.7; fDistance = 0.12; break;
|
||||
@@ -686,7 +689,7 @@ void SmokePipe(object oActivator)
|
||||
else
|
||||
{
|
||||
// FEMALES
|
||||
switch (GetRacialType(oActivator))
|
||||
switch (MyPRCGetRacialType(oActivator))
|
||||
{
|
||||
case RACIAL_TYPE_HUMAN:
|
||||
case RACIAL_TYPE_HALFELF: fHeight = 1.6; fDistance = 0.12; break;
|
||||
@@ -712,7 +715,7 @@ void SmokePipe(object oActivator)
|
||||
// puff of smoke above and in front of head
|
||||
AssignCommand(oActivator, ActionDoCommand(ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SMOKE_PUFF), lAboveHead)));
|
||||
// if female, turn head to left
|
||||
if ((GetGender(oActivator) == GENDER_FEMALE) && (GetRacialType(oActivator) != RACIAL_TYPE_DWARF))
|
||||
if ((GetGender(oActivator) == GENDER_FEMALE) && (MyPRCGetRacialType(oActivator) != RACIAL_TYPE_DWARF))
|
||||
AssignCommand(oActivator, ActionPlayAnimation(ANIMATION_FIREFORGET_HEAD_TURN_LEFT, 1.0, 5.0));
|
||||
}
|
||||
|
||||
@@ -1093,7 +1096,7 @@ string dmwand_Inventory(object oEntity)
|
||||
|
||||
string dmwand_Race(object oEntity)
|
||||
{
|
||||
switch (GetRacialType(oEntity))
|
||||
switch (MyPRCGetRacialType(oEntity))
|
||||
{
|
||||
case RACIAL_TYPE_ABERRATION: return "Aberration"; break;
|
||||
case RACIAL_TYPE_ALL: return "All"; break;
|
||||
|
Reference in New Issue
Block a user