GS-EntBase: Fix rendermodes for more complicated entities, ts_bikini will

now display properly.
This commit is contained in:
Marco Cawthorne 2021-08-08 07:47:20 +02:00
parent 1230a6d636
commit fb63b4f774
3 changed files with 10 additions and 1 deletions

View File

@ -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;

View File

@ -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

View File

@ -124,6 +124,7 @@ func_wall::Init(void)
setorigin(this, origin);
movetype = MOVETYPE_PUSH;
solid = SOLID_BSP;
MakeStatic();
}
#endif