Further file organization

Further file organization
This commit is contained in:
Jaysyn904
2023-08-23 22:11:00 -04:00
parent 3062876237
commit d87fe14826
22364 changed files with 0 additions and 3253 deletions

View File

@@ -0,0 +1,32 @@
//::///////////////////////////////////////////////
//:: Grapple End
//:: prc_grappleend
//::///////////////////////////////////////////////
/** @file
Relies on prc_inc_combmove to end a grapple
@author Stratovarius
@date Created - 2018.9.27
*/
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
#include "prc_inc_combmove"
void main()
{
object oPC = OBJECT_SELF;
object oTarget = GetGrappleTarget(oPC);
if (GetLocalInt(oPC, "GrappleOriginator") == FALSE)
{
FloatingTextStringOnCreature("You cannot end a grapple you did not start", oPC, FALSE);
return;
}
EndGrapple(oPC, oTarget);
// Remove the hooks
if(DEBUG) DoDebug("prc_grappleend: Removing eventhooks");
RemoveEventScript(oPC, EVENT_ONHEARTBEAT, "prc_grapple", TRUE, FALSE);
FloatingTextStringOnCreature("Ending grapple", oPC, FALSE);
}