Jump to content
  • 0

Screen effect on successful hit


furyweb

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...