#  ![](https://www.realm667.com/media/kunena/topic_icons/realm667/user/map.png) Hell Warrior's fixed (?) behaviour

##

- **JohnnyTheWolf**
- ![JohnnyTheWolf's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Shotgunner
- ![Shotgunner](https://www.realm667.com/media/kunena/ranks/rank_3_shotgunner.png)

 Less More- Posts: 3
-
-

   4 years 9 months ago - 4 years 9 months ago [\#9504](#9504) by JohnnyTheWolf  *[Hell Warrior's fixed (?) behaviour](https://www.realm667.com/forum/let-us-know/1707-hell-warriors-fixed-behaviour#9504 "Hi,

First time posting here.

I have been making use of the Hell Warrior in a personal mod and I have come to realize that on occasions, the enemy becomes temporary invincible even when its guard is down and it does not appear to take any damage for a brief period. I was not sure what caused the issue to happen nor what caused it to stop; I thought hitting the enemy with different attacks was it, but apparently, it just stopped on its own. I asked for help on ZDoom forums, and user Enjay came up with the following solution:

https://forum.zdoom.org/viewtopic.php?f=122&t=73751

So far, Enjay's proposed solution seems to have done the trick. As such, I felt like sharing this finding with the people at Realm667 so that an updated version of the monster could be uploaded.")* was created by *JohnnyTheWolf*

 Hi,

First time posting here.

I have been making use of the Hell Warrior in a personal mod and I have come to realize that on occasions, the enemy becomes temporary invincible even when its guard is down and it does not appear to take any damage for a brief period. I was not sure what caused the issue to happen nor what caused it to stop; I thought hitting the enemy with different attacks was it, but apparently, it just stopped on its own. I asked for help on ZDoom forums, and user Enjay came up with the following solution:> I suspect I know what's happening. Several state sequences in the enemy set the monster to be invulnerable. However, it might be the case that one or more of these can be interrupted after invulnerability has been set but before it has used an "A\_UnSetInvulnerable();" pointer. To be fair, the code looks OK, but I guess it must be happening. Perhaps if it starts a missile attack but then the player gets in close enough for a melee attack it might jump to the melee state label... maybe?
>
> With a monster like this, a "belt and braces" approach would be to add an "A\_UnSetInvulnerable()" pointer to the start of the "see" state sequence (and any other sequence where you definitely do not want it to be invulnerable) so that you can guarantee that whenever it goes to this sequence, it will be vulnerable. You could set it up to always run:
>
> Code:
>
>  See: HWAR A 0 A_UnSetInvulnerable(); HWAR AABBCCDD 3 A_Chase(); Loop;
>
>
>
> But it should only be needed once so Code:
>
> See: HWAR A 0 A_UnSetInvulnerable(); HWAR AABBCCDD 3 A_Chase(); goto See+1;
>
>
>
> should also be OK.

https://forum.zdoom.org/viewtopic.php?f=122&amp;t=73751

So far, Enjay's proposed solution seems to have done the trick. As such, I felt like sharing this finding with the people at Realm667 so that an updated version of the monster could be uploaded.

 Last edit: 4 years 9 months ago by JohnnyTheWolf.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2xldC11cy1rbm93LzE3MDctaGVsbC13YXJyaW9ycy1maXhlZC1iZWhhdmlvdXI=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Gothic**
- ![Gothic's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar320.png?1619787674)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1329
-
-
-

   4 years 9 months ago [\#9505](#9505) by Gothic  Replied by *Gothic* on topic *[Hell Warrior's fixed (?) behaviour](https://www.realm667.com/forum/let-us-know/1707-hell-warriors-fixed-behaviour#9505 "Hi,

First time posting here.

I have been making use of the Hell Warrior in a personal mod and I have come to realize that on occasions, the enemy becomes temporary invincible even when its guard is down and it does not appear to take any damage for a brief period. I was not sure what caused the issue to happen nor what caused it to stop; I thought hitting the enemy with different attacks was it, but apparently, it just stopped on its own. I asked for help on ZDoom forums, and user Enjay came up with the following solution:

https://forum.zdoom.org/viewtopic.php?f=122&t=73751

So far, Enjay's proposed solution seems to have done the trick. As such, I felt like sharing this finding with the people at Realm667 so that an updated version of the monster could be uploaded.")*

 [ Should be fixed now](https://www.realm667.com/index.php/en/beastiary-mainmenu-136-69621/doom-style-mainmenu-105-73113/411-hell-warrior)

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2xldC11cy1rbm93LzE3MDctaGVsbC13YXJyaW9ycy1maXhlZC1iZWhhdmlvdXI=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **JohnnyTheWolf**
- ![JohnnyTheWolf's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Shotgunner
- ![Shotgunner](https://www.realm667.com/media/kunena/ranks/rank_3_shotgunner.png)

 Less More- Posts: 3
-
-

   4 years 9 months ago [\#9506](#9506) by JohnnyTheWolf  Replied by *JohnnyTheWolf* on topic *[Hell Warrior's fixed (?) behaviour](https://www.realm667.com/forum/let-us-know/1707-hell-warriors-fixed-behaviour#9506 "Hi,

First time posting here.

I have been making use of the Hell Warrior in a personal mod and I have come to realize that on occasions, the enemy becomes temporary invincible even when its guard is down and it does not appear to take any damage for a brief period. I was not sure what caused the issue to happen nor what caused it to stop; I thought hitting the enemy with different attacks was it, but apparently, it just stopped on its own. I asked for help on ZDoom forums, and user Enjay came up with the following solution:

https://forum.zdoom.org/viewtopic.php?f=122&t=73751

So far, Enjay's proposed solution seems to have done the trick. As such, I felt like sharing this finding with the people at Realm667 so that an updated version of the monster could be uploaded.")*

 Awesome! Thank you!

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2xldC11cy1rbm93LzE3MDctaGVsbC13YXJyaW9ycy1maXhlZC1iZWhhdmlvdXI=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

[Powered by](https://www.realm667.com/forum/credits) [Kunena Forum](https://www.kunena.org)
