Initial upload

Initial upload.
This commit is contained in:
Jaysyn904
2023-09-25 21:32:17 -04:00
parent c1b271b363
commit ec287507a1
10074 changed files with 8442145 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
//::///////////////////////////////////////////////
//:: Name: pgs_mssngr_follw
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
This script, depending on the current state
of the messenger will either start following,
or stop following.
*/
//:://////////////////////////////////////////////
//:: Created By: Samius Maximus
//:: Created On:
//:://////////////////////////////////////////////
#include "inc_gsystem_cnfg"
void main()
{
if (GetLocalInt (OBJECT_SELF, "Messenger_Following"))
{
DeleteLocalInt (OBJECT_SELF, "Messenger_Following");
//----------------------------------------
//Stop following, and adjust max distance.
//----------------------------------------
AssignCommand (OBJECT_SELF, ClearAllActions());
SetLocalFloat (OBJECT_SELF, "Max_Distance", PGS_MAX_MESSENGER_STAND_DISTANCE);
}
else
{
SetLocalInt (OBJECT_SELF, "Messenger_Following", TRUE);
//----------------------------------------
//Start following, and adjust max distance.
//----------------------------------------
AssignCommand (OBJECT_SELF, ActionForceFollowObject (GetLocalObject
(OBJECT_SELF, "Temp_Player"), 3.0f));
SetLocalFloat (OBJECT_SELF, "Max_Distance", PGS_MAX_MESSENGER_FOLLOW_DISTANCE);
}
}