Hi everyone!
I am modifying the HellSmith monster in ZScript and the A_SetReflectiveInvulnerable function and the INVULNERABLE flag is not working at all, the monster continues to take damage. I don't know where the problem may be, but it is not normal.
Here part of the code
Pain:
SMT2 E 3 A_Pain;
SMT2 E 5 A_Jump(128, 1);
Goto See;
SMT2 G 6
{
A_FaceTarget();
A_StartSound("monster/hamswg");
bREFLECTIVE = true;
bINVULNERABLE = true;
}
SMT2 H 6 A_FaceTarget;
TNT1 A 0 A_SpawnProjectile("PentaLine1", 0, 0,-72,CMF_AIMDIRECTION);
TNT1 A 0 A_SpawnProjectile("PentaLine1", 0, 0,-144,CMF_AIMDIRECTION);
TNT1 A 0 A_SpawnProjectile("PentaLine1", 0, 0,-216,CMF_AIMDIRECTION);
TNT1 A 0 A_SpawnProjectile("PentaLine1", 0, 0,-288,CMF_AIMDIRECTION);
TNT1 A 0 A_SpawnProjectile("PentaLine1", 0, 0, 0,CMF_AIMDIRECTION);
SMT2 I 1 A_StartSound("monster/hamflr");
// SMT2 H 6 A_SmithPentaLine1();
SMT2 IIIIIIIIII 7 HealThing(20); // Total 200 hp
SMT2 B 4
{
bREFLECTIVE = false;
bINVULNERABLE = false;
}
// SMT2 B 0 A_UnSetReflectiveInvulnerable;
Goto See;
I use Slade3 for coding and Ultimate GZDoom Builder for testing.
Question
IronLich86
Hi everyone!
I am modifying the HellSmith monster in ZScript and the A_SetReflectiveInvulnerable function and the INVULNERABLE flag is not working at all, the monster continues to take damage. I don't know where the problem may be, but it is not normal.
Here part of the code
Pain: SMT2 E 3 A_Pain; SMT2 E 5 A_Jump(128, 1); Goto See; SMT2 G 6 { A_FaceTarget(); A_StartSound("monster/hamswg"); bREFLECTIVE = true; bINVULNERABLE = true; } SMT2 H 6 A_FaceTarget; TNT1 A 0 A_SpawnProjectile("PentaLine1", 0, 0,-72,CMF_AIMDIRECTION); TNT1 A 0 A_SpawnProjectile("PentaLine1", 0, 0,-144,CMF_AIMDIRECTION); TNT1 A 0 A_SpawnProjectile("PentaLine1", 0, 0,-216,CMF_AIMDIRECTION); TNT1 A 0 A_SpawnProjectile("PentaLine1", 0, 0,-288,CMF_AIMDIRECTION); TNT1 A 0 A_SpawnProjectile("PentaLine1", 0, 0, 0,CMF_AIMDIRECTION); SMT2 I 1 A_StartSound("monster/hamflr"); // SMT2 H 6 A_SmithPentaLine1(); SMT2 IIIIIIIIII 7 HealThing(20); // Total 200 hp SMT2 B 4 { bREFLECTIVE = false; bINVULNERABLE = false; } // SMT2 B 0 A_UnSetReflectiveInvulnerable; Goto See;
I use Slade3 for coding and Ultimate GZDoom Builder for testing.
I appreciate any help.
Share this post
Link to post
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.