[GSC]: Renamed methods and functions
This commit is contained in:
parent
f13b1b43e3
commit
16ad327121
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user