Detailed Setup
Last updated
Last updated
My system uses a post processing profile EXCLUSIVELY for the Gas Mask effects, as it changes profiles at runtime. This can help you have your own effects for normal gameplay and then a Gas Mask profile that ONLY activates when you entire the gas OR put on a gas mask. It's up to you whether you'd like to have both profiles very similar so there isn't a massive break in gameplay visuals.
Do you want to remove post processing or use that in a slightly different way? Check the page below for more instructions on how to edit and change these settings in script!
You can add this from the "Prefabs" folder or you can use your own FPSController for these purposes
Make sure this has a tag of "Player" and a layer of "Ignore Raycast"
On the MainCamera: Tag "Main Camera".
Make sure the main camera has a "GMRayast" script and a "Post-process Layer"
Set the "Post-Process layer" dropdown to "PostProcess"
Add a "Gas Mask" from the prefabs folder, this should have a "Box Collider" and "GMItem" script attached.
Set the "GMItem" type to "Gas Mask"
Add the number of "Gas Mask Filters" to your scene from the prefabs folder. Make sure this has a "Box Collider".
Set the "GMItem" type to "Filter"
Add the "GreenGasDamage" prefab or any effect you'd like
Make sure this has a "Box Collider" set this to "IsTrigger"
Make sure this has a "Gas Damage" script attached
Add each of the managers to your scene and you can look at each of the pages below to see all of the settings with explanations of how to use them!
GMCanvasContainer
GMHealthManager
GMController
GMAudioManager
GMInputManager
GMUIManager