1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

fix iw4x, integration. improve scripts overall (#287)

* fix(scripts): correct usage of notifyOnPlayerCommand

* fix(scripts): correct iw4x usage of is bot

* fix(scripts): correct iw4x usage of is bot

* fix(scripts): fix noclip on iw4x

* fix(scripts): ident

* iw5 too
This commit is contained in:
Edo
2023-04-08 03:42:18 +02:00
committed by GitHub
parent d8478bf99e
commit e8d3dc0b08
8 changed files with 20 additions and 14 deletions

View File

@ -4,7 +4,7 @@ Init()
{
level.eventBus.gamename = "IW5";
level thread Setup();
thread Setup();
}
Setup()
@ -19,6 +19,7 @@ Setup()
level.overrideMethods["GetTotalShotsFired"] = ::GetTotalShotsFired;
level.overrideMethods["SetDvarIfUninitialized"] = ::_SetDvarIfUninitialized;
level.overrideMethods["waittill_notify_or_timeout"] = ::_waittill_notify_or_timeout;
level.overrideMethods[level.commonFunctions.isBot] = ::IsTestClient;
RegisterClientCommands();
@ -40,7 +41,7 @@ OnPlayerConnect()
{
level waittill( "connected", player );
if ( scripts\mp\_integration_base::_IsBot( player ) )
if ( player call [[ level.overrideMethods[ level.commonFunctions.isBot ] ]]() )
{
// we don't want to track bots
continue;