Hazmat Suit
- DeVloek
- Topic Author
- Arachnotron
- Posts: 401
Name: Hazmat Suit
Type: Protection
Palette: Custom
Summon: HazmatSuit
Use type: instant
Duration: 60
Brightmaps: no
Actor modification: no
ACS: no
Credits:
Code: DeVloek
GLDefs: DeVloek
Sounds: n/a
Sprites: id Software
Sprite Edit: DeVloek
Idea Base: Rad Suit, Bio-Suit from Doom 3
Description:
The Hazmat Suit is activated on pick-up and lasts for 60 seconds. It grants immunity to Poison, PoisonCloud, Drowning and Slime (floor damage),
and reduces fire, ice and electrical damage by 50%.
Sprite:
Another item from my probably never to be released Map project, the Hazmat Suit is intended to be a much better variant of the Rad Suit. The sprite design was inspired by the Bio-Suit Zombie from Doom 3. Unlike the original suit, this doesn't have the full brightness flag but comes with a dim pulselight, which in my opinion looks much better. Also I changed the effect's screen tint from green to a slight violet.
I made this item because I noticed the original Rad Suit lacks protection from various damage types, especially PoisonCloud. I added a bit of fire/ice/electrical protection to make it more useful in other sitations as well.
Edits:
- Now the Hazmat Suit additionally grants the RadSuit's PowerIronFeet powerup, so you no longer receive extra damage when the effect wears off while underwater.
- Optimized code, changed pickup sound.
- Removed "Pickupflash", fixed dynamic light.
Please Log in or Create an account to join the conversation.
- Blue Shadow
- Administrator
- Posts: 1129
Going for a radsuit effect is also better for HUD mods which display the player's air supply on screen.
Please Log in or Create an account to join the conversation.
- DeVloek
- Topic Author
- Arachnotron
- Posts: 401
I'm not sure if there's a better way to do this, but I fixed it by making the Hazmat Suit a CustomInventory item which gives you two dummy items. One grants the Hazmat Suit protection like intended, the other grants the RadSuit protection (PowerIronFeet).
Please Log in or Create an account to join the conversation.
- Blue Shadow
- Administrator
- Posts: 1129
- The item doesn't play a powerup pickup sound upon pickup. Instead, it plays the normal/default item pickup sound.
- The end of the Pickup state sequence lacks a Stop.
- To disable a powerup's screen blend, it's better to use "None" as the color.
From the wiki
:
Note that it says "PowerupGiver", not "Powerup", which means you move the color property from PowerHazmatRespirator (making it effectively unneeded) to HazmatSuitRespirator.Using a color value of None for a PowerupGiver, results in having no screen blend. Setting an arbitrary color with zero alpha, instead, to override the powerup's own does not achieve the same task.
That should be fine. If you really want to, you could code this in ZScript instead of DECORATE, as ZScript allows you to create your own custom powerups.DeVloek wrote: I'm not sure if there's a better way to do this, but I fixed it by making the Hazmat Suit a CustomInventory item which gives you two dummy items. One grants the Hazmat Suit protection like intended, the other grants the RadSuit protection (PowerIronFeet).
Please Log in or Create an account to join the conversation.
- DeVloek
- Topic Author
- Arachnotron
- Posts: 401
According to the wiki the Inventory.PickupFlash flag is deprecated, so I changed it into a property. Also I noticed that GZDoom always displays a pickup flash, no matter if that flag/property is present or not. I'm still keeping that line however, it might be useful for compatibility with other games?
I'm staying with DECORATE for now, I didn't know Zscript is a thing until now... Still trying to get into the groove again, looks like I missed a lot the past 5 years. I might look into this tutorial if I ever feel like "ascending"
Please Log in or Create an account to join the conversation.
- Blue Shadow
- Administrator
- Posts: 1129
Do not confuse that with the screen blend flash. That property/flag is for spawning a special effect at the same position as the picked-up item. You can see it in Heretic and Hexen when you pick up artifacts.DeVloek wrote: According to the wiki the Inventory.PickupFlash flag is deprecated, so I changed it into a property. Also I noticed that GZDoom always displays a pickup flash, no matter if that flag/property is present or not.
Please Log in or Create an account to join the conversation.
- DeVloek
- Topic Author
- Arachnotron
- Posts: 401
Well, since this is not a Heretic artifact, I removed the "pickupflash". I also fixed the dynamic light, and made it a tiny bit brighter to make it more visible in brighter rooms.
Please Log in or Create an account to join the conversation.
- Blue Shadow
- Administrator
- Posts: 1129
Please Log in or Create an account to join the conversation.