Demonic Leech
- Blue Shadow
- Administrator
Less
More
- Posts: 1129
5 years 3 months ago #11
by Blue Shadow
Replied by Blue Shadow on topic Demonic Leech
This should be sufficient, I think:
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).
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
- Topic Author
- Pain Elemental
Less
More
- Posts: 251
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
- Administrator
Less
More
- Posts: 1129
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.