HLFX.Ru Forum > Теория и практика > Half-Life SDK > Coding question: Have anyone implemented overview system in their mod? How to implement overview system like in CS for example?
Coding question: Have anyone implemented overview system in their mod?
I'm wondering if anyone has ever implemented overview system for their multiplayer mod? (I'm talking about the fancy map overview that the spectators or the dead players can look at while dead).
I'm trying to implement it for my mod - FlatLine Arena (for teamplay and last man standing gamemodes...) with little to no success... and any help (hints or maybe tutorials?) would be really appreciated.
Map overview is the standard feature since HLSDK 2.0 release. (Since the spectator mode and VGUI 1 were implemented). HLSDK 2.3 and 2.4 have full support of all spec modes, except for some minor features, that available in CS.
Добавлено 27-06-2021 в 11:07:
Standard Steam Half-Life specator Free Look mode with map overview inside "inset view" viewport.
Well. The way is to call CBasePlayer::StartObserver after player's deaths, and implement new function like StopObserver to set player->pev->iuser (observer mode number) to 0, when player respawns.
Just to test observer mode you need to set cvar allow_spectators to 1 and execute console command "spectate". I recommend totally cut allow_spectators cvar from game libraries, it's useless.
HLFX.Ru Forum > Теория и практика > Half-Life SDK > Coding question: Have anyone implemented overview system in their mod? How to implement overview system like in CS for example?