Hey there, my first post here. Can't really find any active hl1 coding community, all sites like Wavelength seems dead unfortunately
So thought this site would be the best bet.
Anyway, I'm making a mod where I want the "Half-Life" title to be visible for all players when a certain entity is triggered(the title that shows when you start a new hl game, c0a0, the tram map..). So I made a copy of trigger_relay and changed some code, it looks like this (only showing the 'Use' function as I guess this is the important part):
void CTriggerLogo::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value )
{
gDisplayTitle = TRUE;
}
So when this entity gets triggered at my map, the title appears like I want to. Unfortunately, only for 1 player. My question here is what code do I need to make all players see the logo? I would guess something with for the code ( int i = 1; i <= gpGlobals->maxClients; i++ ) but I can't get it right when playing around with the codes. Thanks!