Fix xenmaker monsters not fading, again.
This commit is contained in:
@@ -176,11 +176,13 @@ void CMXenMaker::StartEffect(void)
|
|||||||
if (!count)
|
if (!count)
|
||||||
{
|
{
|
||||||
// Attempt to spawn monster
|
// Attempt to spawn monster
|
||||||
pent = spawn_monster(m_iMonsterIndex, pev->origin, pev->angles, SF_MONSTER_FADECORPSE, NULL);
|
pent = spawn_monster(m_iMonsterIndex, pev->origin, pev->angles, 0, NULL);
|
||||||
if (pent == NULL)
|
if (pent == NULL)
|
||||||
{
|
{
|
||||||
ALERT(at_console, "[MONSTER] XenMaker - failed to spawn monster! targetname: \"%s\"\n", STRING(pev->targetname));
|
ALERT(at_console, "[MONSTER] XenMaker - failed to spawn monster! targetname: \"%s\"\n", STRING(pev->targetname));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
pent->v.spawnflags |= SF_MONSTER_FADECORPSE;
|
||||||
}
|
}
|
||||||
else if (!FBitSet(pev->spawnflags, SF_XENMAKER_TRY_ONCE))
|
else if (!FBitSet(pev->spawnflags, SF_XENMAKER_TRY_ONCE))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user