Page 1 of 1
Revived Friendly Monsters are Hostile
Posted: Wed Jan 08, 2014 12:36 am
by Seiat
So, I'm not 100% sure what's up with this, but a friendly monster revived with A_VileChase by another friendly monster or projectile immediately becomes hostile to the nearest living thing, be it friend or foe. Even if it's the player who revived it, and it was friendly before. This only happens online (works as intended offline).
Back when Skulltag was around, the behavior was the opposite; instead of attacking the nearest living thing, in the case of DM or LMS the revived monster would consider all other players to be friendly.
I'm wondering if this is something set in LMS or DM gamemodes, or if there's some kind of master/parent relation loss on the monster's death online? Or if it's something else entirely.
Spoiler: Reviving Actor (Open)ACTOR Vilefake
{
Radius 50
Height 5
RENDERSTYLE NONE
PROJECTILE
+FRIENDLY
+NOCLIP
Speed 5
States
{
Spawn:
TNT1 AA 6 A_VileChase
Stop
Death:
TNT1 A 1
Stop
Heal:
TNT1 A 1
Stop
}
}
Tried replacing PROJECTILE combo with MONSTER combo, no effect.
Spoiler: Revived Friendly Example (Open)ACTOR ZombieMan2 : ZombieMan
{
+FRIENDLY
+NEVERRESPAWN
health 5
RENDERSTYLE TRANSLUCENT
Alpha 0.6
Mass 40
}
I thought inheriting might have been the issue, but defining a new monster from scratch has no effect either.
If anyone has any info about this, I'd appreciate your 2 cents.
RE: Revived Friendly Monsters are Hostile
Posted: Wed Jan 08, 2014 6:47 am
by Lollipop
I do not know about that problem of yours, but I recommend giving the monster a IsDead state, then you can call that state with something else.
IsDead:
ASDF GHJKL 9000 //random animation, reversed death sequence.
ASDF L 0 A_giveinventory("health", 20) //we do not want the monster to have no health when it enters it's spawn state, though i have not actually tested this at all.
goto spawn
RE: Revived Friendly Monsters are Hostile
Posted: Wed Jan 08, 2014 9:05 am
by ZzZombo
And what do you think giving it health will fix?
RE: Revived Friendly Monsters are Hostile
Posted: Wed Jan 08, 2014 12:15 pm
by Lollipop
That health is supposed to be the amount that the monster should have after the revival.
Another, probably safer, way to do this is if you make the dead monster dissapear and spawn a new monster in it's place. People will not be able to tell the difference if done properly and it will probably cause fewer bugs too.
RE: Revived Friendly Monsters are Hostile
Posted: Wed Jan 08, 2014 4:50 pm
by Seiat
Giving it an alternate raise state won't change anything, A_VileChase will always heal a monster into it's Raise state, no matter what.. Even if Raise was replaced to fall through to a custom state like that, it would not change anything. I've already tried having the monster spawn a new one after death, when raised. Again, no effect, seeing as the dead monster is no longer friendly it spawns a monster that is hostile. Plus, for an online mod, doing hacky stuff like that is just asking for bugs...
RE: Revived Friendly Monsters are Hostile
Posted: Wed Jan 08, 2014 8:41 pm
by ZzZombo
Well, I'm sure it's just a bug, so as a workaround, can't you just set +FRIENDLY again?
RE: Revived Friendly Monsters are Hostile
Posted: Wed Jan 08, 2014 9:08 pm
by Torr Samaho
Yes, it sounds like a bug. Does it work as you'd expect it to in ZDoom?
RE: Revived Friendly Monsters are Hostile
Posted: Wed Jan 08, 2014 11:55 pm
by Seiat
Changing the flag had no effect. Also, upon further testing, this works correctly online in co-operative game modes. It only had the above effect in competitive modes such as Deathmatch and LMS (I didn't test them all). And yes, this seems to work correctly in ZDoom.
Made a little test-wad if it helps.
Use the pistol's altfire to summon a friendly zombieman. Then you can swap over to the shotgun, blow it away, then use the pistol's normal fire to spawn an invisible projectile that calls A_VileChase.
Edit: Changed to an invisible friendly monster that walks around calling A_VileChase (See below posts)
RE: Revived Friendly Monsters are Hostile
Posted: Thu Jan 09, 2014 5:39 am
by Laggy Blazko
Whoa, wait a minute. Don't projectiles set their shooter as "target" or something? Maybe you'd want to make it summon an invisible friendly monster which calls a_vilechase and dies after reviving something, instead.
RE: Revived Friendly Monsters are Hostile
Posted: Thu Jan 09, 2014 6:02 am
by Seiat
Ahh, good point, no use making it difficult. You can grab the new one
here
RE: Revived Friendly Monsters are Hostile
Posted: Thu Jan 09, 2014 6:09 pm
by Torr Samaho
Seiat wrote:
Also, upon further testing, this works correctly online in co-operative game modes. It only had the above effect in competitive modes such as Deathmatch and LMS (I didn't test them all). And yes, this seems to work correctly in ZDoom.
Please make a bug report at the tracker then.
RE: Revived Friendly Monsters are Hostile
Posted: Thu Jan 09, 2014 7:27 pm
by Seiat
Neat, wasn't aware that the tracker existed. Bug has been reported.
Thanks for your help and time.