Commit Graph

19 Commits

Author SHA1 Message Date
Edo
c3e042521a Improvements to game scripts (#253) 2022-07-16 08:40:10 -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
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