GS-EntBase: Fix rendermodes for more complicated entities, ts_bikini will
now display properly.
This commit is contained in:
parent
1230a6d636
commit
fb63b4f774
3 changed files with 10 additions and 1 deletions
|
@ -155,7 +155,8 @@ CBaseEntity::MakeStatic(void)
|
|||
#endif
|
||||
|
||||
/* static ents = no collision, so let's make a copy for visibility */
|
||||
makestatic(copyentity(this));
|
||||
if (alpha > 0.0)
|
||||
makestatic(copyentity(this));
|
||||
|
||||
/* now *this* is only used for csqc collision */
|
||||
drawmask = 0;
|
||||
|
@ -854,6 +855,9 @@ CBaseEntity::SpawnKey(string strKey, string strValue)
|
|||
case "solid":
|
||||
solid = stof(strValue);
|
||||
break;
|
||||
case "skin":
|
||||
skin = stof(strValue);
|
||||
break;
|
||||
case "shadows":
|
||||
if (stof(strValue) == 1) {
|
||||
effects &= ~EF_NOSHADOW;
|
||||
|
|
|
@ -130,6 +130,10 @@ func_illusionary::Init(void)
|
|||
SetAngles([0,0,0]);
|
||||
SetMovetype(MOVETYPE_NONE);
|
||||
SetSolid(SOLID_NOT);
|
||||
|
||||
if (skin == -1 && m_iRenderMode == RM_TEXTURE)
|
||||
SetRenderMode(RM_TRIGGER);
|
||||
|
||||
MakeStatic();
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -124,6 +124,7 @@ func_wall::Init(void)
|
|||
setorigin(this, origin);
|
||||
movetype = MOVETYPE_PUSH;
|
||||
solid = SOLID_BSP;
|
||||
|
||||
MakeStatic();
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue