Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
furyweb

Screen effect on successful hit

Question

So I want to created "A_ZoomFactor" effect, or for that matter other effects on a successful hit for my weapon. Is this possible with decorate?.

 

Thanks.

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

So I figure I could do this with a A_JumpIf but the problem is what do I use for monster being hit. I Tried "pain" "A_Pain" and just get and error so the ? mark is where I need something for this to work

 

AltFire:
		MHP1 ABC 2
		MHP1 DE 1
		TNT1 A 0 A_Jumpif (? "AltFire2")
		MHP1 F 4 A_CustomPunch(20, FALSE, 0)
		MHP1 GHI 2
		MHP1 JK 2 
		Goto Ready
	AltFire2:
		MHP1 ABC 2
		MHP1 DE 1
		TNT1 A 0 A_ZoomFactor (1.050)
		MHP1 F 4 A_CustomPunch(20, FALSE, 0)
		TNT1 A 0 A_ZoomFactor (1.0)
		MHP1 GHI 2
		MHP1 JK 2

 

Share this post


Link to post
  • 0

YES!!!. So after hours of reading on forums and zdoom wiki I found the solution. And its so friggin simple and stupid anyway

 

AltFire:
		MHP1 ABC 2
		MHP1 DE 1
		TNT1 A 0 A_JumpIfCloser(128, "AltFire2") //This checks to see how close the monster is then jumps to said state
		MHP1 F 6 A_CustomPunch(5, FALSE, 0)
		MHP1 GHI 4
		MHP1 JK 2
		Goto Ready
AltFire2:
		TNT1 A 0 A_ZoomFactor (1.050)
		MHP1 F 6 A_CustomPunch(5, FALSE, 0)
		TNT1 A 0 A_ZoomFactor (1.0)
		MHP1 GHI 4
		MHP1 JK 2
		Goto Ready

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×