I'm using Solokiller's Updated SDK and decided I need an env_sky in my mod because it's nice.
And well, it does work and all... but for some reason only world brushes and func_details are being projected into the sky box. If I place a monster, some other point entity or a brush entity that isn't a func_detail in my skyroom then these things won't be shown in the skybox.
Server code looks like this:
class CEnvSky : public CBaseEntity
{
public:
void Activate(void);
void Think(void);
};
void CEnvSky::Activate(void)
{
pev->effects |= EF_NODRAW;
pev->nextthink = gpGlobals->time + 0.01;
}
void CEnvSky::Think()
{
MESSAGE_BEGIN(MSG_BROADCAST, gmsgSetSky, NULL);
WRITE_BYTE(1); // mode
WRITE_COORD(pev->origin.x); // view position
WRITE_COORD(pev->origin.y);
WRITE_COORD(pev->origin.z);
MESSAGE_END();
ALERT(at_console, "env_sky messaged\n");
}
LINK_ENTITY_TO_CLASS(env_sky, CEnvSky);
Message code and the way it's handled on client is the same as in Spirit, par some minor differences since I'm using Solokiller's
What do I do?