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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user