From d078435931fc6c3937d4757cf706560498ab8c10 Mon Sep 17 00:00:00 2001 From: Beu Date: Mon, 27 Dec 2021 17:23:31 +0100 Subject: [PATCH] fix reset timer at respawn --- Events/TM_HolidayShowdown.Script.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Events/TM_HolidayShowdown.Script.txt b/Events/TM_HolidayShowdown.Script.txt index 066deda..d1f77c2 100644 --- a/Events/TM_HolidayShowdown.Script.txt +++ b/Events/TM_HolidayShowdown.Script.txt @@ -31,10 +31,12 @@ foreach (Event in RacePendingEvents) { Log::Log("[RacePendingEvents][MainLoop] Event.Type: " ^ Event.Type); if (Event.Type == Events::C_Type_StartLine || Event.Type == Events::C_Type_GiveUp || Event.Type == Events::C_Type_SkipOutro || Event.Type == Events::C_Type_Respawn) { if (Event.Player != Null) { - declare netwrite Integer Net_CoolDownForEffects for Event.Player; - declare netwrite Integer Net_CoolDownBeforeReset for Event.Player; - Net_CoolDownForEffects = 0; - Net_CoolDownBeforeReset = 0; + if (Event.Type != Events::C_Type_Respawn) { + declare netwrite Integer Net_CoolDownForEffects for Event.Player; + declare netwrite Integer Net_CoolDownBeforeReset for Event.Player; + Net_CoolDownForEffects = 0; + Net_CoolDownBeforeReset = 0; + } declare netwrite Net_PlayerPhysics for Event.Player = InitPlayerPhysicsVariable(); Net_PlayerPhysics = InitPlayerPhysicsVariable(); if (!ApplyPhysics_Queue.existskey(Event.Player.User.WebServicesUserId)) ApplyPhysics_Queue[Event.Player.User.WebServicesUserId] = [];