Fixed CCOH, Fixed starting GP, Fixed DMFI languages, Fix cep weapon appearances, Fixed new player start up system. Added PC deleter. Added ACP 4.1. Full compile. Updated release archive.
44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Golem Breath
|
|
//:: NW_S1_GolemGas
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Iron Golem spits out a cone of poison.
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Preston Watamaniuk
|
|
//:: Created On: May 22, 2001
|
|
//:://////////////////////////////////////////////
|
|
|
|
#include "prc_inc_spells"
|
|
|
|
//#include "wm_include"
|
|
void main()
|
|
{
|
|
//if (WildMagicOverride()) { return; }
|
|
//Declare major variables
|
|
location lTargetLocation = PRCGetSpellTargetLocation();
|
|
object oTarget;
|
|
effect eCone = EffectPoison(POISON_IRON_GOLEM);
|
|
//Get first target in spell area
|
|
oTarget = GetFirstObjectInShape(SHAPE_SPELLCONE, 10.0, lTargetLocation, TRUE);
|
|
while(GetIsObjectValid(oTarget))
|
|
{
|
|
if(!GetIsReactionTypeFriendly(oTarget) && oTarget != OBJECT_SELF)
|
|
{
|
|
//Fire cast spell at event for the specified target
|
|
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, SPELLABILITY_GOLEM_BREATH_GAS));
|
|
//Determine effect delay
|
|
float fDelay = GetDistanceBetween(OBJECT_SELF, oTarget)/20;
|
|
//Apply poison effect
|
|
DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_INSTANT, eCone, oTarget));
|
|
}
|
|
//Get next target in spell area
|
|
oTarget = GetNextObjectInShape(SHAPE_SPELLCONE, 10.0, lTargetLocation, TRUE);
|
|
}
|
|
}
|
|
|
|
|
|
|