Commit Graph

48 Commits

Author SHA1 Message Date
RaidMax
e843f839f5 adjust last seen format in game interface 2023-06-02 16:35:00 -05:00
INSANEMODE
e4535e09a0 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
b4f93602ef update t5zm game interface gsc game end event 2023-06-01 21:11:08 -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
b14d7b6865 remove reference to deprecated httpGet in customcallbacks 2023-01-09 13:44:41 -06: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
RaidMax
bdb5a1c5f8 Merge branch 'release/pre' of github.com:RaidMax/IW4M-Admin into release/pre 2022-10-05 09:51:24 -05:00
xerxes-at
5d9e2b3bf1 Game Interface ported to T5. (#254)
* Implement game interface for IW5 and T5
2022-10-05 09:49:00 -05:00
RaidMax
12da0f463b add client tag to default game interface data 2022-09-24 10:06:07 -05:00
Amos
d5cf4451a2 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
1e1e8bbe7b fix issue with game interface meta/provide full example 2022-09-11 11:46:13 -05:00
RaidMax
ca35fbb19f iw4x integration - add delay before sending up persistent data 2022-08-31 16:17:02 -05:00
RaidMax
6f086ac565 modularize the game integration files and better organize the anticheat folder structure 2022-08-20 10:57:03 -05:00
RaidMax
506b17dbb3 Merge branch 'release/pre' of https://github.com/RaidMax/IW4M-Admin into release/pre 2022-07-16 09:56:48 -05:00
RaidMax
b78c467539 tweaks and persistent guid update to game integration/interface 2022-07-16 09:32:07 -05:00
Edo
c3e042521a Improvements to game scripts (#253) 2022-07-16 08:40:10 -05:00
RaidMax
0a55c54c42 update to game interface/integration for persistent stat data 2022-07-13 16:10:16 -05:00
Amos
880f9333d9 Fixed formatting... Tabs/spaces 2022-06-02 09:25:00 -05:00
Ryan Amos
83a469cae3 Fix !hide provide "mitigation" to noclip ghost bug 2022-06-02 09:25:00 -05:00
xerxes-at
1700b7da91 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
bc38b36e4a ignore bots for game interface 2022-04-28 10:20:55 -05:00
RaidMax
287635fa36 update integration gsc 2022-03-12 13:41:10 -06:00
RaidMax
f567a03fa7 implement team tracking via game interface (EFClient.Team and EFClient.TeamName) 2022-03-12 13:38:33 -06:00
RaidMax
9f4d06c265 refactor some game interface plugin approach 2022-03-07 19:59:34 -06:00
RaidMax
acf66da4ca tweak cod rcon connection and fix max health for hide integration command 2022-03-05 13:13:00 -06:00
RaidMax
ec0f59cdb1 add set spectator command for game interface 2022-03-01 12:45:39 -06:00
RaidMax
bd6c0dd5be fix issue with tempban not displaying properly 2022-02-25 08:22:40 -06:00
RaidMax
a6b56ceded tweak for integration 2022-02-22 17:10:33 -06:00
RaidMax
2e531c4a50 validate game interface commands to ensure it's enabled before trying to execute 2022-02-18 10:15:11 -06:00
RaidMax
9a6d7c6a20 game interface improvements 2022-02-15 20:05:50 -06:00
RaidMax
3640d1df54 small updates for game interface 2022-02-12 21:54:21 -06:00
RaidMax
c9cf7be341 add set client meta and inc/dec to framework 2022-02-10 16:50:45 -06:00
RaidMax
aa6ae0ab8d more integration tweaks 2022-02-09 14:45:28 -06:00
RaidMax
12dfd8c558 more integration tweaks
add configurable flood protect interval for rcon
2022-02-08 12:03:55 -06:00
RaidMax
4cce336fb9 update custom callbacks to properly exit thread on disconnect 2022-01-26 15:20:10 -06:00
efinst0rm
02942e5c03 Add support for IW5 (#213) 2021-08-25 11:06:52 -05:00
xerxes-at
8c5ff440db Updated T6 AC GSC (#214)
* PlutoT6 AC GSC Updated

PlutoT6's GSC modding capabilities changed, this allows us to bring the script on parity with the IW4x one. The following things changed:
*  Script no longer replaces stock GSC since custom GSC files are now supported.
* The Script now captures the last time the client used his attack button; this is used to detect trigger bots.
* Cleaned up the code a bit

* Create README.MD

Basic installation guide.
2021-08-25 11:06:46 -05:00
RaidMax
03a27d113e Merge pull request #105 from xerxes-at/2.4-pr
Added support for the AC to PlutoT6
2020-08-06 08:48:53 -05:00
RaidMax
cad2952c46 [issue #140]
fix bug with friendly fire being disabled with custom callbacks on IW4x
2020-05-30 13:39:09 -05:00
RaidMax
c3c21a7749 refactor a good bit of stuff for better dependency injection
fix regular expression for T6 log parsing
2020-02-11 16:44:06 -06:00
Xerxes
39fb3b9966 Added support for the AC to PlutoT6
PlutoT6 requires pre-compiled GSC files.
Thats why I include the source and a compiled version. Since we can not create new GSC files but only can replace existing ones I did use this stock GSC to add our code to it.
2020-01-25 19:12:05 +01:00
RaidMax
9e345752f2 update parser selection menu text during setup
update IW4 script commands gsc and plugin to give base example
fix issue with new account alias linking (I think)
2020-01-21 18:08:18 -06:00
RaidMax
8a42239f36 updates to support new master versioning
make sure game files are copied correctly in build output
2020-01-11 20:32:27 -06:00