Added more creature model overrides

Added more creature model overrides.  Added another "boss" creature to the Labyrinth.  Tweaked several other creatures.  Full compile.  Updated release archive.
This commit is contained in:
Jaysyn904
2024-04-07 18:07:07 -04:00
parent bfbbd2f1ac
commit dc236b3073
146 changed files with 122012 additions and 76538 deletions

View File

@@ -43,6 +43,15 @@ const int EVENT_USER_DEFINED_POSTSPAWN = 1511;
#include "ms_name_inc"
#include "x2_inc_switches"
void Embiggen(object oNPC, float fIncrease);
void Embiggen(object oNPC, float fIncrease)
{
SetObjectVisualTransform(OBJECT_SELF, OBJECT_VISUAL_TRANSFORM_SCALE, fIncrease);
}
void main()
{
//:: User defined OnSpawn event requested?
@@ -151,7 +160,15 @@ void main()
int nHunefer = GetStringLeft(GetTag(OBJECT_SELF), 7) == "HUNEFER" ? TRUE : FALSE;
if(nHunefer)ExecuteScript("fear2_aura",OBJECT_SELF);
//:: Make a creature a little bigger.
int nEmbiggen = GetLocalInt(OBJECT_SELF,"EMBIGGEN");
if (nEmbiggen > 0)
{
float fIncrease = (IntToFloat(nEmbiggen)+100.0) / 100.0;
DelayCommand(0.0f, Embiggen(OBJECT_SELF, fIncrease));
}
//:: Handle various onspawn immunities & buffs
//:: Shadows should be unaffected by darkness
@@ -548,6 +565,17 @@ void main()
DelayCommand(0.0f, ApplyEffectToObject(DURATION_TYPE_PERMANENT,eVis,OBJECT_SELF));
}
//:: If Incorporeal, apply changes
if (GetCreatureFlag(OBJECT_SELF, CREATURE_VAR_IS_INCORPOREAL) == TRUE)
{
effect eConceal = EffectConcealment(50, MISS_CHANCE_TYPE_NORMAL);
eConceal = ExtraordinaryEffect(eConceal);
effect eGhost = EffectCutsceneGhost();
eGhost = ExtraordinaryEffect(eGhost);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eConceal, OBJECT_SELF);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eGhost, OBJECT_SELF);
}
//:: Execute OnSpawn script.
int nSpider = GetStringLeft(GetTag(OBJECT_SELF), 12) == "MONST_SPIDER" ? TRUE : FALSE;
if(nSpider)