RATDOG/_module/nss/pw_enc_spawnin.nss
Jaysyn904 732d63e1f3 Spawner & Overhaul pass.
Added: Reforged, Undead Redux 2, Goblin, Ogre & Orc override content.  Updated appearance & placeables 2DA files to EE.  Added NPC spawners for Goldeyes, Paladins, Town Guards.  Added functionality to the mob randomizer.
2021-09-04 14:36:27 -04:00

25 lines
831 B
Plaintext

void main()
{
if(GetLocalInt(OBJECT_SELF, "DoOnce")) return;
location lLoc=GetLocation(OBJECT_SELF);
object oPC=GetFirstObjectInShape(SHAPE_SPHERE, 25.0, lLoc, FALSE);
object oPW=OBJECT_SELF;
while(GetIsObjectValid(oPC))
{
if(GetIsPC(oPC))
DelayCommand(2.5, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectKnockdown(), oPC, 6.0));
oPC=GetNextObjectInShape(SHAPE_SPHERE, 25.0, lLoc, FALSE);
AssignCommand(oPC, DelayCommand(0.8, PlaySound("sdr_paralyzed")));
AssignCommand(oPC, DelayCommand(2.5, PlaySound("sim_destruct_low")));
}
//earthquake visual effect. screen shake and rock falling sound
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(356), GetLocation(OBJECT_SELF), 7.0);
SetLocalInt(OBJECT_SELF, "DoOnce", TRUE);
}