From 1c2222443ef7f83c32d0c60445b265f36078b3d2 Mon Sep 17 00:00:00 2001 From: Resxt <55228336+Resxt@users.noreply.github.com> Date: Thu, 16 Feb 2023 05:25:21 +0100 Subject: [PATCH] chat_command_freeze 1.0.1 Fix the bug that was not targeting the player but was targeting the player calling the command instead --- chat_commands/README.md | 3 +-- chat_commands/chat_command_freeze.gsc | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/chat_commands/README.md b/chat_commands/README.md index 468a4a7..f8021ab 100644 --- a/chat_commands/README.md +++ b/chat_commands/README.md @@ -41,8 +41,7 @@ The player affected by the command dies and swaps to the other team. ## chat_command_freeze.gsc Toggles whether the targeted player can move or not. -Note that this does not work during the prematch period. -Also, if you unfreeze a bot the bot has to die before he starts moving again. +Note that this does not work during the prematch period. | # | Argument | Mandatory | |---|---|---| diff --git a/chat_commands/chat_command_freeze.gsc b/chat_commands/chat_command_freeze.gsc index beb2dd4..95b2cf5 100644 --- a/chat_commands/chat_command_freeze.gsc +++ b/chat_commands/chat_command_freeze.gsc @@ -48,7 +48,7 @@ ToggleFreeze(playerName) } else { - DoFreeze(false); + player DoFreeze(false); player notify("chat_commands_freeze_off"); } } @@ -62,7 +62,7 @@ ThreadFreeze() { self waittill("spawned_player"); - DoFreeze(true); + self DoFreeze(true); } }