light_dynamic: Respect the right radius key
This commit is contained in:
parent
90478acec4
commit
a536f7b6cc
4 changed files with 17 additions and 14 deletions
|
@ -54,13 +54,14 @@ light_dynamic::predraw(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: We need to handle the second cone light */
|
/* TODO: We need to handle the second cone light */
|
||||||
dynamiclight_add(origin, m_flIntensity, m_vecLight, m_flStyle);
|
dynamiclight_add(origin, m_flDistance, m_vecLight, m_flStyle);
|
||||||
|
|
||||||
addentity(this);
|
addentity(this);
|
||||||
return PREDRAW_NEXT;
|
return PREDRAW_NEXT;
|
||||||
}
|
}
|
||||||
|
|
||||||
void light_dynamic::ReceiveEntity(float flFlags)
|
void
|
||||||
|
light_dynamic::ReceiveEntity(float flFlags)
|
||||||
{
|
{
|
||||||
if (flFlags & DLIGHTFL_CHANGED_ORIGIN) {
|
if (flFlags & DLIGHTFL_CHANGED_ORIGIN) {
|
||||||
origin[0] = readcoord();
|
origin[0] = readcoord();
|
||||||
|
@ -99,7 +100,8 @@ void light_dynamic::ReceiveEntity(float flFlags)
|
||||||
classname = "light_dynamic";
|
classname = "light_dynamic";
|
||||||
}
|
}
|
||||||
|
|
||||||
void light_dynamic::light_dynamic(void)
|
void
|
||||||
|
light_dynamic::light_dynamic(void)
|
||||||
{
|
{
|
||||||
drawmask = MASK_ENGINE;
|
drawmask = MASK_ENGINE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -252,6 +252,7 @@ light_dynamic::light_dynamic(void)
|
||||||
{
|
{
|
||||||
m_iState = 1;
|
m_iState = 1;
|
||||||
m_vecLight = [255,255,255];
|
m_vecLight = [255,255,255];
|
||||||
|
m_flDistance = 256;
|
||||||
CBaseTrigger::CBaseTrigger();
|
CBaseTrigger::CBaseTrigger();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -70,6 +70,16 @@ func_friction::SpawnKey(string strField, string strKey)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CLIENT
|
||||||
|
void
|
||||||
|
func_friction::Initialized(void)
|
||||||
|
{
|
||||||
|
setmodel(this, model);
|
||||||
|
movetype = MOVETYPE_NONE;
|
||||||
|
solid = SOLID_BSPTRIGGER;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
func_friction::func_friction(void)
|
func_friction::func_friction(void)
|
||||||
{
|
{
|
||||||
|
@ -78,13 +88,3 @@ func_friction::func_friction(void)
|
||||||
CBaseTrigger::InitBrushTrigger();
|
CBaseTrigger::InitBrushTrigger();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CLIENT
|
|
||||||
void
|
|
||||||
func_friction::Initialized (void)
|
|
||||||
{
|
|
||||||
setmodel(this, model);
|
|
||||||
movetype = MOVETYPE_NONE;
|
|
||||||
solid = SOLID_BSPTRIGGER;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -42,6 +42,7 @@ cvar_init(void)
|
||||||
localcmd("seta con_textsize -12\n");
|
localcmd("seta con_textsize -12\n");
|
||||||
localcmd("seta scr_conalpha 1\n");
|
localcmd("seta scr_conalpha 1\n");
|
||||||
localcmd("seta cl_idlefps 0\n");
|
localcmd("seta cl_idlefps 0\n");
|
||||||
|
localcmd("seta r_ignoreentpvs 0\n");
|
||||||
localcmd("seta allow_download_packages 0\n");
|
localcmd("seta allow_download_packages 0\n");
|
||||||
localcmd("seta r_shadow_realtime_dlight 0\n");
|
localcmd("seta r_shadow_realtime_dlight 0\n");
|
||||||
localcmd("seta gl_mindist 4\n"); // Thanks Valve for v_shotgun.mdl
|
localcmd("seta gl_mindist 4\n"); // Thanks Valve for v_shotgun.mdl
|
||||||
|
@ -143,7 +144,6 @@ m_init(void)
|
||||||
void
|
void
|
||||||
Menu_RendererRestarted(string rendererdesc)
|
Menu_RendererRestarted(string rendererdesc)
|
||||||
{
|
{
|
||||||
localcmd("menu_restart\n");
|
|
||||||
Menu_AutoScale();
|
Menu_AutoScale();
|
||||||
Menu_GammaHack();
|
Menu_GammaHack();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue