Updated scripts to use MyPRCGetRacialType
Updated scripts to use MyPRCGetRacialType. Full compile.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "dmfi_string_inc"
|
||||
#include "dmfi_plchlishk_i"
|
||||
#include "dmfi_db_inc"
|
||||
#include "prc_inc_racial"
|
||||
|
||||
const int DMFI_LOG_CONVERSATION = TRUE; // turn on or off logging of conversation text
|
||||
|
||||
@@ -754,7 +755,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;
|
||||
@@ -768,7 +769,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;
|
||||
@@ -794,7 +795,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));
|
||||
}
|
||||
|
||||
@@ -2571,7 +2572,7 @@ string TranslateCommonToLanguage(int iLang, string sText)
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
int GetDefaultRacialLanguage(object oPC, int iRename)
|
||||
{
|
||||
switch (GetRacialType(oPC))
|
||||
switch (MyPRCGetRacialType(oPC))
|
||||
{
|
||||
case RACIAL_TYPE_DWARF: if (iRename) SetLocalString(oPC, "hls_MyLanguageName", "Dwarven");return 4; break;
|
||||
case RACIAL_TYPE_ELF:
|
||||
|
Reference in New Issue
Block a user