Add radiation to your game similar to games like Fallout.
radiation.lua - Radiation Display.
This script needs to be present on the map for most of the below scripts to work.
radiationzone.lua - Radiation Zone
radiationradius.lua - Radioactive Object (NEW)
radwater.lua - Radioactive Water (NEW)
radiationcurezone.lua - Cure Radiation in Zone
radiationcure.lua - Cure Radiation Item
radiation.lua will display text on the screen showing how much radiation the player has been exposed to. Use Always Active = 1.
radiationzone.lua will apply radiation to the player if he/she is standing inside the trigger zone of which this script is applied to.
radiationradius.lua apply this script to any object to make it radioactive! The player will start to gain rads if standing within 500 units of the object. Always active does not need to be enabled for this script.
radwater.lua - entering water will increase your rads dramatically.
radiationcurezone.lua will heal the players radiation levels for as long as the player is standing within the trigger zone area, of which this script is applied to.
When your radiation levels reach 100% the player will be injured by 1 point in intervals until he can recover from radiation poisoning.
You can also add a sound effect to soundset0.
radiationcurezone.lua will heal the players radiation levels by 15 points when collected. Apply this to a dynamic entity.
You can now control the intervals better by opening up the script and increasing or decreasing radiation_intervals in the radiationinzone script. This is especially handy for those that don't want the sound effect in soundset0 to play too quickly.