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:
2024-08-30 11:38:44 -04:00
parent 8622e5ce08
commit 69879d6957
17234 changed files with 4253346 additions and 0 deletions

19
_module/nss/hb_battle.nss Normal file
View File

@@ -0,0 +1,19 @@
/**
hb_battle
OnHeartbeat: Forces this NPC to stay close to a waypoint named DefensePoint
J.D. Robertson, 2002
*/
#include "i_battle"
void main()
{
// If too far from your defense point, run back to it
if (InBattle() &&
TooFarFrom("DefensePoint"))
{
object waypoint = GetNearestObjectByTag("DefensePoint");
ActionDoCommand(ActionForceMoveToObject(waypoint, TRUE, IntToFloat(d6())));
ActionDoCommand(SetFacing(GetFacing(waypoint)));
}
}