From 8c951810ecd554890ca588f32b72ad49a093d1e6 Mon Sep 17 00:00:00 2001 From: Safalin Date: Sun, 10 Mar 2024 17:19:00 +0000 Subject: [PATCH] Attempting to debug removal of the delay when a kart is first spawned --- src/data/microtf2/Minigames.txt | 2 +- src/scripting/Minigames/KartBump.sp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/microtf2/Minigames.txt b/src/data/microtf2/Minigames.txt index b9108d7..1c75c20 100644 --- a/src/data/microtf2/Minigames.txt +++ b/src/data/microtf2/Minigames.txt @@ -275,7 +275,7 @@ { "enabled" "0" "BackgroundMusic" "gemidyne/warioware/{version}/minigames/bgm/airblast.mp3" - "EntryPoint" "Minigame33_EntryPoint" + "EntryPoint" "Minigame32_EntryPoint" "BlockedSpecialRounds" "12" "RequiresMultiplePlayers" "1" "BackgroundMusic_Length" "3.874125" diff --git a/src/scripting/Minigames/KartBump.sp b/src/scripting/Minigames/KartBump.sp index 0dc2f81..989eea1 100644 --- a/src/scripting/Minigames/KartBump.sp +++ b/src/scripting/Minigames/KartBump.sp @@ -67,6 +67,7 @@ public void Minigame32_OnMinigameSelected(int client) TeleportEntity(client, pos, ang, vel); player.AddCondition(TFCond_HalloweenKart); SetEntProp(player.ClientId, Prop_Send, "m_iKartHealth", 0); + SetEntPropFloat(player.ClientId, Prop_Send, "m_flKartNextAvailableBoost", 0.0); SDKHook(client, SDKHook_PreThink, Minigame32_RemoveLeftClick); }