From 16ad3271218271d01ef985237bd1fb49ca6f6760 Mon Sep 17 00:00:00 2001 From: JerryALT Date: Wed, 29 May 2024 19:51:17 +0300 Subject: [PATCH] [GSC]: Renamed methods and functions --- src/Components/Modules/GSC/GSC.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Components/Modules/GSC/GSC.cpp b/src/Components/Modules/GSC/GSC.cpp index 5275147..9d985c3 100644 --- a/src/Components/Modules/GSC/GSC.cpp +++ b/src/Components/Modules/GSC/GSC.cpp @@ -28,7 +28,7 @@ namespace Components void GSC::AddMethods() { - GSC::AddMethod("allowFire", [](Game::scr_entref_t entref) + GSC::AddMethod("AllowFire", [](Game::scr_entref_t entref) { const auto* ent = Game::GetPlayerEntity(entref); @@ -72,7 +72,7 @@ namespace Components return Game::Scr_AddInt(false); }, false); - GSC::AddMethod("isMantling", [](Game::scr_entref_t entref) + GSC::AddMethod("IsMantling", [](Game::scr_entref_t entref) { const auto* ent = Game::GetPlayerEntity(entref); if (ent->client->ps.pm_flags & Game::PMF_MANTLE) @@ -81,7 +81,7 @@ namespace Components return Game::Scr_AddInt(false); }, false); - GSC::AddMethod("isSwapping", [](Game::scr_entref_t entref) + GSC::AddMethod("IsSwapping", [](Game::scr_entref_t entref) { const auto* ent = Game::GetPlayerEntity(entref); if (ent->client->ps.weaponstate >= Game::WEAPON_DROPPING && ent->client->ps.weaponstate <= Game::WEAPON_DROPPING_QUICK) @@ -93,7 +93,7 @@ namespace Components void GSC::AddFunctions() { - GSC::AddFunction("exec", [] + GSC::AddFunction("Exec", [] { const auto str = Game::Scr_GetString(0);