with AAPTR_TARGET as the pointer, but the weapon enters the new state when firing, regardless of weather there is a monster in sight or not, and i dont think its checking my health either since even if im at full health it keeps entering the custom state.
Code: Select all
States
Fire:
TNT1 A 0 A_JumpIfHealthLower(40, "ChainSwordGloryKill", AAPTR_TARGET) //Hoping this checks for monsters health
SWRG BC 2
TNT1 A 0 A_PlaySound("weapons/Chainsaw/loop")
TNT1 A 0 A_Saw("weapons/chainsaw/loop", "weapons/chainsaw/cut", 26, "SSawPuff")
SWRG EFGHIJKA 2 A_WeaponReady(1)
Goto ReadyLoop
ChainSwordGloryKill: //The custom state
TNT1 A 0 A_Jump(80,"ChainsawGloryKill2","ChainsawGloryKill3")
TNT1 A 0 A_PlaySound("weapons/sawfull")
SWRG BC 2
SWRG E 2 A_Saw("", "CSAWFLESH", 4, "SSawPuff",0,120,32)
SWRG F 4 A_Saw("", "CSAWFLESH", 4, "SSawPuff",0,90,32)
SWRG G 4 A_Saw("", "CSAWFLESH", 4, "SSawPuff",0,90,32)
SWRG H 4 A_Saw("", "CSAWFLESH", 4, "SSawPuff",0,90,32)
SWRG I 4 A_Saw("", "CSAWFLESH", 4, "SSawPuff",0,90,32)
SWRG J 4 A_Saw("", "CSAWFLESH", 4, "SSawPuff",0,90,32)
SWRG K 4 A_Saw("", "CSAWFLESH", 40, "SSawPuff",0,90,32)
SWRG A 2 A_WeaponReady(1)
Goto Ready
