Add new functions for HLTV clients
RaphaelIT7 opened this issue · 0 comments
RaphaelIT7 commented
Details
Currently, it's impossible (as far as I can tell) to do anything with a HLTV client from Lua, and it would be useful if at least a few functions exist.
It would be useful these things got added:
- A way to get a HLTV client/a new library like the player library but for HLTV with functions like
GetAll
,GetByID
,GetBySteamID
andGetCount
-
- Returned HLTV client should have a few functions like
:SteamID()
,:GetName()
and:GetUserID()
(Maybe also:SendLua()
?)
- Returned HLTV client should have a few functions like
-
- Being able to send net messages to the HLTV client
NOTE: The HLTV Server currently doesn't call net.Incoming when a HLTV client sends a message
- Maybe a new hook which is called when a command is executed
Other things which would be nice to have:
- The ability to create and send gameevents(HLTV:FireGameEvent() & BroastGameEvent()) like hltv_fixed or hltv_chase which would allow one to have more control
- a new hook which is called for
CHLTVDirector::StartNewShot()
with the ability to cancel StartNewShot if true is returned.
NOTE: This is all based on the Idea that the CHLTVClient is used which should have most of functions that are needed.