Making a monster incorporeal
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Making a monster incorporeal
I'm trying to make a monster appear as though it teleported to another spot of the room by doing teleport fog, making it invisible, completely incorporeal (things can move through it) and invincible, then doing more teleport fog and getting rid of those effects. The Iron Maiden from Quake 4 is a pretty good example of what I'm trying to do.
First off, what flags should I set or clear to make it incorporeal? Second, what would happen if it went back to normal inside of something? and third, what can I do to prevent it from rematerializing inside something?
First off, what flags should I set or clear to make it incorporeal? Second, what would happen if it went back to normal inside of something? and third, what can I do to prevent it from rematerializing inside something?
Ugh, I tried that already for a different monster about 6 months ago and never got it to work. Believe me, this method sounds much more doable. Also, that would only really work with bosses for one specific area.
The aforementioned Q4 Iron Maiden every once in a while teleports away, waits about 6 seconds or so, then teleports in again (you see it right here: http://www.youtube.com/watch?v=05N7cOicP70 about 2 and a half minutes in).
I'm leaning towards the +NOBLOCKMAP flag, but for some reason it seems like a bad idea.
The aforementioned Q4 Iron Maiden every once in a while teleports away, waits about 6 seconds or so, then teleports in again (you see it right here: http://www.youtube.com/watch?v=05N7cOicP70 about 2 and a half minutes in).
I'm leaning towards the +NOBLOCKMAP flag, but for some reason it seems like a bad idea.
- Ryan Cordell
- Posts: 4349
- Joined: Sun Feb 06, 2005 6:39 am
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Capital of Explodistan
Well, I put on noclip and turned it off in a monster, so now I know what happens (nothing too bad).
However, that won't be an issue, because for some reason, A_Changeflag won't apply +NOBLOCKMAP. I tried A_UnSetSolid and A_SetSolid, but that won't stop attacks from hitting it.
Edit: YES!! Got it! A_UnSetShootable and A_ChangeFlag(Shootable, 1) work (though, for some reason A_SetShootable doesn't work).
However, that won't be an issue, because for some reason, A_Changeflag won't apply +NOBLOCKMAP. I tried A_UnSetSolid and A_SetSolid, but that won't stop attacks from hitting it.
Edit: YES!! Got it! A_UnSetShootable and A_ChangeFlag(Shootable, 1) work (though, for some reason A_SetShootable doesn't work).
- DBThanatos
- Posts: 3101
- Joined: Fri Apr 14, 2006 3:17 pm
- Location: in "the darkness that lurks in our mind"
not sure if this is would help you much.
I had to give the Fightened flag because for some reason A_Wander while is invisible doesnt work, and A_ExtChase(0,0) makes the monster try to get near the player, which ends in a monster stuck with you if the A_unsetsolid was active and then A_setsolid is called when player and the monster are in the same place.
however, the monster still might get stuck with other monsters as with the player.
DBT
Spoiler:note: this is a mess because it was done before custom states thing was available, sorry.
I had to give the Fightened flag because for some reason A_Wander while is invisible doesnt work, and A_ExtChase(0,0) makes the monster try to get near the player, which ends in a monster stuck with you if the A_unsetsolid was active and then A_setsolid is called when player and the monster are in the same place.
however, the monster still might get stuck with other monsters as with the player.
DBT
A_Wander's a little weird. I was calling it 15 times in a few seconds and it didn't move more than half the time, but I did get it to move with this
It calls it 105 times in 3 seconds. They move a lot more now, lol.
Code: Select all
TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 1 A_Wander
TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 1 A_Wander
TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 1 A_Wander