A_UnsetSolidSteam is an action that is used to undo the effects of A_SetSolidSteam
to make the Gas Jet become intangible again – it does this by modifying the actor's flags so that MF_SOLID
is removed from them and MF_NOCLIP
is added to them.
Code – A_UnsetSolidSteam
|
|
// Function: A_UnsetSolidSteam
//
// Description: Makes an object non-solid and also noclip. Used by the steam.
//
// var1 = unused
// var2 = unused
//
void A_UnsetSolidSteam(mobj_t *actor)
{
#ifdef HAVE_BLUA
if (LUA_CallAction("A_UnsetSolidSteam", actor))
return;
#endif
actor->flags &= ~MF_SOLID;
actor->flags |= MF_NOCLIP;
}
|
|