2024-02-11 14:01:05 -05:00
|
|
|
//::///////////////////////////////////////////////
|
|
|
|
//:: OnPlayerRespawn eventscript
|
|
|
|
//:: prc_onrespawn
|
|
|
|
//:://////////////////////////////////////////////
|
|
|
|
#include "prc_alterations"
|
|
|
|
#include "inc_utility"
|
2025-05-22 21:06:53 -04:00
|
|
|
#include "prc_inc_function"
|
2024-02-11 14:01:05 -05:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
// Execute scripts hooked to this event for the player triggering it
|
|
|
|
object oPC = GetLastRespawnButtonPresser();
|
|
|
|
// clear the death marker if using PW death tracking
|
|
|
|
if(GetPRCSwitch(PRC_PW_DEATH_TRACKING))
|
|
|
|
SetPersistantLocalInt(oPC, "persist_dead", FALSE);
|
|
|
|
|
|
|
|
ExecuteAllScriptsHookedToEvent(oPC, EVENT_ONPLAYERRESPAWN);
|
2025-05-22 21:06:53 -04:00
|
|
|
|
|
|
|
DelayCommand(0.1f, EvalPRCFeats(oPC));
|
2024-02-11 14:01:05 -05:00
|
|
|
}
|