Commit Graph

13 Commits

Author SHA1 Message Date
RaidMax
f79ba6466c tweak game interface bus mode 2023-06-07 16:15:54 -05:00
RaidMax
871f8d75df implement bus mode for game interface to allow files for bus data transfer 2023-06-06 17:56:12 -05:00
RaidMax
ad89ecb39d add example module to game interface. convert gi command registration to a iw4madmin request 2023-06-06 12:09:20 -05:00
RaidMax
3f0bdfe3a9 implement dynamic command registration through game interface 2023-06-03 22:46:15 -05:00
RaidMax
2fcbab9a37 implement initial url request functionality for game interface 2023-06-03 16:48:03 -05:00
RaidMax
e843f839f5 adjust last seen format in game interface 2023-06-02 16:35:00 -05:00
RaidMax
bc34211e43 more game interface gsc tweaks 2023-06-01 21:09:18 -05:00
RaidMax
7323c6e3d7 clean-up and make game interface gsc consistent 2023-06-01 20:45:05 -05:00
xerxes-at
7d436ac0c5 Fix Game Interface / AC Callbacks + support for T5ZM, T6MP and T6ZM for the Game Interface. (#288)
* Fix trying to write to a struct before its initialized.

Same issue on IW4, IW5 and T5 game modules.

* Fix path issues in the scripts + add support for t5zm.

* Fix deploy.bat
* Change paths inside the gsc scripts used to call functions in other scripts
* Remove mp includes from base gsc file.
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
* Define GetXuid as overrideMethod as t5zm doesn't have it.
* Define GetPlayerFromClientNum as getting all players is slightly different on t5zm.

* Remove the precompiled gsc file for T6 as PlutoT6 can load uncompiled GSC now.

* Fix _customcallbacks.gsc for T6

* Add T6 support to the game interface.

* Update _integration_base.gsc

use camelCase for functionName

* Make sure the Setup functions are always called in the right order.

Base -> shared -> game
Otherwise we might write to structs before they are created.

* Move functions interacting with the game from _base to _shared

GetPlayerFromClientNum
OnPlayerJoinedTeam
OnPlayerJoinedSpectators
GenerateJoinTeamString
PlayerTrackingOnInterval
SaveTrackingMetrics

* Block execution until game specific setup is done

Block _shared execution until the game specific file finished.
This allows the game specific file to override the events in _shared.

* Fix setup event flow

Move check of sv_iw4madmin_integration_enabled dvar after waittill in _shared so _base has a chance to set it to 1.
Move check of sv_iw4madmin_autobalance dvar to OnPlayerConnect in _shared so the game specific script has a chance to set the dvar.

* ignore bots

* add more spaces
2023-05-28 20:15:52 -05:00
Edo
c348283c94 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
2023-04-07 20:42:18 -05:00
RaidMax
9a08997825 remove unused method in shared integration 2022-10-23 14:40:14 -05:00
RaidMax
9cf91d030d fix indentation on shared integration 2022-10-23 14:39:39 -05:00
RaidMax
565f22b42e create shared integration for performance-based autobalance support 2022-10-23 13:29:01 -05:00