[GSC]: Renamed methods and functions

This commit is contained in:
JerryALT 2024-05-29 19:51:17 +03:00
parent f13b1b43e3
commit 16ad327121

View File

@ -28,7 +28,7 @@ namespace Components
void GSC::AddMethods() 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); const auto* ent = Game::GetPlayerEntity(entref);
@ -72,7 +72,7 @@ namespace Components
return Game::Scr_AddInt(false); return Game::Scr_AddInt(false);
}, false); }, false);
GSC::AddMethod("isMantling", [](Game::scr_entref_t entref) GSC::AddMethod("IsMantling", [](Game::scr_entref_t entref)
{ {
const auto* ent = Game::GetPlayerEntity(entref); const auto* ent = Game::GetPlayerEntity(entref);
if (ent->client->ps.pm_flags & Game::PMF_MANTLE) if (ent->client->ps.pm_flags & Game::PMF_MANTLE)
@ -81,7 +81,7 @@ namespace Components
return Game::Scr_AddInt(false); return Game::Scr_AddInt(false);
}, false); }, false);
GSC::AddMethod("isSwapping", [](Game::scr_entref_t entref) GSC::AddMethod("IsSwapping", [](Game::scr_entref_t entref)
{ {
const auto* ent = Game::GetPlayerEntity(entref); const auto* ent = Game::GetPlayerEntity(entref);
if (ent->client->ps.weaponstate >= Game::WEAPON_DROPPING && ent->client->ps.weaponstate <= Game::WEAPON_DROPPING_QUICK) 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() void GSC::AddFunctions()
{ {
GSC::AddFunction("exec", [] GSC::AddFunction("Exec", []
{ {
const auto str = Game::Scr_GetString(0); const auto str = Game::Scr_GetString(0);