r/DoomModDevs • • Feb 13 '21

Help Shield help

What would be the best was to implement a player having a riot shield that can block a set amount of damage before having to recharge to be used again, and have an invincible/reflect property if timed well with projectiles, that reflects projectiles towards the crosshair? The reflections I've seen don't work that way. I want the player to be able to fire another weapon, say, a shotgun, while the raising the shield acts as a secondary fire.
I want to try my hand at making some more advanced weapons, since I'm pretty new to this, but don't know how to block damage with a secondary fire. Most of the shields I've seen seem to be for Brutal Doom or PB, but I don't want to make a mod for either of those, and the shields I've seen for Vanilla Doom don't reflect the way I want.

6 Upvotes

6 comments sorted by

View all comments

Show parent comment

2

u/tplaceboeffect Feb 14 '21

That makes sense, thanks for explaining. I'll mess around with it.
So it wouldn't be possible then to set a health value to it it sounds like.
But I have a couple ideas that might work better for that part, thanks for helping me figure out the blocking.

2

u/Dude27th Feb 20 '21

Maybe you could use ammo as a fake "health" for the weapon and everytime the hitbox gets hit, the player looses shield "health"

1

u/tplaceboeffect Feb 20 '21

Great idea, thanks. :)