Areas and Fixes
Added CCOH and missing areas Changed some areas to be craftable, Fixed some on death issues, Fixed the Gaurd
This commit is contained in:
30
_module/nss/combat_battle.nss
Normal file
30
_module/nss/combat_battle.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
// Modification of NW_C2_DEFAULT3
|
||||
// NPC will stay close to a waypoint named DefensePoint
|
||||
|
||||
#include "NW_I0_GENERIC"
|
||||
#include "i_battle"
|
||||
void main()
|
||||
{
|
||||
// Ignore everything and return to the waypoint once we get away from it
|
||||
if (InBattle() &&
|
||||
TooFarFrom("DefensePoint"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
// Otherwise do default behavior
|
||||
|
||||
if(GetBehaviorState(NW_FLAG_BEHAVIOR_SPECIAL))
|
||||
{
|
||||
DetermineSpecialBehavior();
|
||||
}
|
||||
else if(!GetSpawnInCondition(NW_FLAG_SET_WARNINGS))
|
||||
{
|
||||
DetermineCombatRound();
|
||||
}
|
||||
if(GetSpawnInCondition(NW_FLAG_END_COMBAT_ROUND_EVENT))
|
||||
{
|
||||
SignalEvent(OBJECT_SELF, EventUserDefined(1003));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user