1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-07 21:58:06 -05:00

63 Commits

Author SHA1 Message Date
RaidMax
78c5b43ed4 fix issue with game interface and increase debug logging 2024-07-06 15:16:50 -05:00
yfbsei
1dd125c579
feat: add basic integration support for IW6x (#320)
Co-authored-by: RaidMax <raidmax@live.com>
Co-authored-by: Edo <edoardo.sanguineti222@gmail.com>
2024-02-13 11:32:16 +01:00
Violent
104b16dccd
Show() instead of Hide() If no clip disabled (#321)
Show() instead of Hide() If no clip disabled (IW5 game interface)
2024-02-04 20:18:02 -06:00
INeedGames
321ac5558f Update _customcallbacks.gsc 2023-10-11 23:40:40 -05:00
INeedGames
b1831e1ec9 Fix possible infinite loop
Possibility of an exploiter killing an enemy and disconnecting within the `wait` window to trigger an infinite loop.
2023-10-11 23:40:40 -05:00
RaidMax
5da651e01b fix get Xuid wrapper for T5 game interface 2023-09-02 13:07:54 -05:00
Edo
8c07bf52dc
feature(iw5: gsc): use preprocessor to deduplicate code (#308) 2023-07-17 15:28:14 +02:00
RaidMax
80a7676766 use fs_homepath as default integration bus dir 2023-06-11 17:29:25 -05:00
INSANEMODE
24264fd573
game interface t6 file bus mode support (#307)
* - add support for game interface "file" bus mode for plutonium t6

* rename _integration_t6_filesystem_bus.gsc to _integration_t6_file_bus.gsc

* - remove visual studio's changes to solution, and fix file path for new _integration_t6_file_bus.gsc
- add new line to end of _integration_t6_file_bus.gsc

* add new line to end of solution
2023-06-10 15:53:52 -05:00
RaidMax
29d4c65393 tweak game interface bus mode 2023-06-07 16:15:54 -05:00
RaidMax
fd7c8fcb4a implement bus mode for game interface to allow files for bus data transfer 2023-06-06 17:56:12 -05:00
RaidMax
c24e838bb5 add example module to game interface. convert gi command registration to a iw4madmin request 2023-06-06 12:09:20 -05:00
INSANEMODE
e47e0661c8
gameinterface additions (#306)
* -add waittill_any_timeout to _integration_t6.gsc
- thread event handler calls in monitorEvents

* - add WaitTillAnyTimeout to iw5
- remove unneeded thread from event handlers
- change WaitTillAnyTimeout in t6 to use a wrapper
2023-06-04 19:07:52 -05:00
RaidMax
cc67438b9a implement dynamic command registration through game interface 2023-06-03 22:46:15 -05:00
RaidMax
dfcf6e958c implement initial url request functionality for game interface 2023-06-03 16:48:03 -05:00
RaidMax
f19ca8a813 adjust last seen format in game interface 2023-06-02 16:35:00 -05:00
INSANEMODE
f633d47762
Patch game interface (#305)
* remove extra set of parentheses in call to DisplaypopupsWaiter()

* add missing event argument in call to GotoCoordImpl()

* remove event arg from GotoCoordImpl() in t6 to match other game interface scripts
2023-06-02 11:44:36 -05:00
RaidMax
b1ac32df80 update t5zm game interface gsc game end event 2023-06-01 21:11:08 -05:00
RaidMax
bd3e5bc18d more game interface gsc tweaks 2023-06-01 21:09:18 -05:00
RaidMax
13d5dcb8a8 clean-up and make game interface gsc consistent 2023-06-01 20:45:05 -05:00
xerxes-at
d0e39b240a
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
e8d3dc0b08
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
7e5bc2fb91 remove reference to deprecated httpGet in customcallbacks 2023-01-09 13:44:41 -06:00
RaidMax
bfad75d7eb remove unused method in shared integration 2022-10-23 14:40:14 -05:00
RaidMax
0ba4eda35c fix indentation on shared integration 2022-10-23 14:39:39 -05:00
RaidMax
34cafc4066 create shared integration for performance-based autobalance support 2022-10-23 13:29:01 -05:00
RaidMax
054ae71d14 Merge branch 'release/pre' of github.com:RaidMax/IW4M-Admin into release/pre 2022-10-05 09:51:24 -05:00
xerxes-at
447737c117
Game Interface ported to T5. (#254)
* Implement game interface for IW5 and T5
2022-10-05 09:49:00 -05:00
RaidMax
fb54aac7b8 add client tag to default game interface data 2022-09-24 10:06:07 -05:00
Amos
2d3761b430
NoClip Fix - Removed NoClipOff - Toggle Hide (#263)
* Usage of Hide is now consistent with NoClip; toggleable
Removed obsolete !NoClipOff
2022-09-11 11:51:10 -05:00
RaidMax
a3649124ff fix issue with game interface meta/provide full example 2022-09-11 11:46:13 -05:00
RaidMax
f2b0e5855b iw4x integration - add delay before sending up persistent data 2022-08-31 16:17:02 -05:00
RaidMax
e7dce1ad1d modularize the game integration files and better organize the anticheat folder structure 2022-08-20 10:57:03 -05:00
RaidMax
eebe390f99 Merge branch 'release/pre' of https://github.com/RaidMax/IW4M-Admin into release/pre 2022-07-16 09:56:48 -05:00
RaidMax
b2d4e596e1 tweaks and persistent guid update to game integration/interface 2022-07-16 09:32:07 -05:00
Edo
d746ca0a7d
Improvements to game scripts (#253) 2022-07-16 08:40:10 -05:00
RaidMax
eaac12fa75 update to game interface/integration for persistent stat data 2022-07-13 16:10:16 -05:00
Amos
5245c483ca Fixed formatting... Tabs/spaces 2022-06-02 09:25:00 -05:00
Ryan Amos
51438c7ee9 Fix !hide provide "mitigation" to noclip ghost bug 2022-06-02 09:25:00 -05:00
xerxes-at
fadece39ed
PlutoIW5 support for the Game Interface and improvements to the GSC part of it. (#242)
* Improvements to the GSC part of the Game Interface
* Adds compatibility with PlutoIW5 with minimal changes.
* Fixes issues when commands are called from the web interface when the used profile is not on the server.
    * New Debug output when the target or origin of a command is sent by IW4MAdmin but not found in-game.
    * Commands that can be run on the context of the target are now run in it.
* Simplifies the command registration and execution.
    * Got rid of the huge switch block.
    * Introduced AddClientCommand to register new commands for example
        * `AddClientCommand("SwitchTeams",  true,  ::TeamSwitchImpl);`
        * `AddClientCommand("Hide",         false, ::HideImpl);`
    * Callbacks are called with the full event object and the parsed data as parameters to allow maximum flexibility.
* Introduced level.eventBus.gamename to know which game we are to add minor changes.
* Changes - noclip/lockcontrols/playertome
Additional changes to support other games' functions

Co-Authored-By: Amos <4959320+MrAmos123@users.noreply.github.com>
2022-05-19 17:04:34 -05:00
RaidMax
b013872f14 ignore bots for game interface 2022-04-28 10:20:55 -05:00
RaidMax
527ebdd053 update integration gsc 2022-03-12 13:41:10 -06:00
RaidMax
bc76afd25c implement team tracking via game interface (EFClient.Team and EFClient.TeamName) 2022-03-12 13:38:33 -06:00
RaidMax
663de4d37f refactor some game interface plugin approach 2022-03-07 19:59:34 -06:00
RaidMax
5ec924ba05 tweak cod rcon connection and fix max health for hide integration command 2022-03-05 13:13:00 -06:00
RaidMax
cf3c7cf692 add set spectator command for game interface 2022-03-01 12:45:39 -06:00
RaidMax
f2ad510c4d fix issue with tempban not displaying properly 2022-02-25 08:22:40 -06:00
RaidMax
ce27d4fe61 tweak for integration 2022-02-22 17:10:33 -06:00
RaidMax
cbe28360df validate game interface commands to ensure it's enabled before trying to execute 2022-02-18 10:15:11 -06:00
RaidMax
3c21bf3242 game interface improvements 2022-02-15 20:05:50 -06:00