Initial upload

Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
Jaysyn904
2024-03-11 23:44:08 -04:00
parent c4b5794c59
commit 7b9e44ebbb
11454 changed files with 10436475 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
//::///////////////////////////////////////////////
//:: NW_C2_VAMPIREG9.nss
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Vampire gas, when spawned in tries to
move coffin with same name as self
*/
//:://////////////////////////////////////////////
//:: Created By: Brent
//:: Created On: January 2002
//:://////////////////////////////////////////////
void main()
{
// * search for nearest coffin
int bFound = FALSE;
int nCount = 0;
object oCoffin = GetObjectByTag(GetTag(OBJECT_SELF)+"_coffin");
if (GetIsObjectValid(oCoffin) && (GetObjectType(oCoffin) == OBJECT_TYPE_PLACEABLE))
{
bFound = TRUE;
ActionMoveToObject(oCoffin, FALSE, 3.0); //* moving this number too close will make this break
ActionDoCommand(SignalEvent(oCoffin, EventUserDefined(50)));
ActionDoCommand(SignalEvent(OBJECT_SELF, EventUserDefined(7777)));
SetCommandable(FALSE);
}
else
// * if no coffin then destroy self
if (GetIsObjectValid(oCoffin) == FALSE)
{
bFound = TRUE;
DestroyObject(OBJECT_SELF, 0.1);
}
}