header general

Demonic Leech

  • Blue Shadow
  • Blue Shadow's Avatar
  • Administrator
  • Administrator
More
5 years 3 months ago #11 by Blue Shadow
Replied by Blue Shadow on topic Demonic Leech
This should be sufficient, I think:

Code:
AltFire: DLEF GFEDCBA 4 DLEF A 5 A_PlaySound("Barfs") DLEF A 10 { if (health > 10) { A_DamageSelf(random(5,10)); A_FireCustomMissile("GoreRandom",0,0,5,8); } } goto Ready

That only fires the projectile if player's health is above 10 points (you can increase that threshold if you think it's too low).

Please Log in or Create an account to join the conversation.

  • doomedarchviledemon
  • doomedarchviledemon's Avatar Topic Author
  • Pain Elemental
  • Pain Elemental
More
5 years 2 months ago #12 by doomedarchviledemon
Replied by doomedarchviledemon on topic Demonic Leech
Ah, that works perfectly. I think having it stop at 10 points of health is fine since that's the max amount of health the altfire would take away.

Please Log in or Create an account to join the conversation.

  • Blue Shadow
  • Blue Shadow's Avatar
  • Administrator
  • Administrator
More
5 years 2 months ago #13 by Blue Shadow
Replied by Blue Shadow on topic Demonic Leech

Please Log in or Create an account to join the conversation.