Overview

AC_RadioactivityComp is an Actor Component designed to simulate and manage radiation exposure effects on an owning character within an Unreal Engine game. It tracks radioactive zones the character enters, calculates environmental and personal radiation levels, applies radiation damage over time, and manages visual post-process effects to reflect radiation intensity. The component also supports radiation protection mechanics and integrates with a health component to apply damage accordingly.

This Blueprint is suitable for games requiring environmental hazard simulation, particularly radiation exposure mechanics, with multiplayer considerations (local control checks) and customizable radiation rules.


Variables

Variable Name Type Purpose
ActiveRadZones Array Stores references to radioactive zones currently affecting the owner. Not used directly in graphs but manipulated via functions.
MinRadVal Float Minimum radiation value used for clamping and mapping radiation intensity ranges.
MaxRadVal Float Maximum radiation value used for clamping and mapping radiation intensity ranges.
CurrentEnvRadVal Float Current environmental radiation value calculated from active radioactive zones. Not directly used in graphs but replicated and notified.
OwnerHealthComp Object Reference to the owner's health component, used to apply radiation damage. Stored at Begin Play.
CurrentOwnerRadVal Float Current radiation level affecting the owner, updated and replicated with notifications.
OwnerCurrentRadDecayRate Float Current decay rate of radiation affecting the owner, dynamically calculated and updated.
OwnerBaseRadDecayRate Float Base decay rate for the owner's radiation level, used as a starting point for decay calculations.
MaxDecayRate Float Maximum allowed decay rate (not actively used in graphs).
MinDecayRate Float Minimum allowed decay rate (not actively used in graphs).
DecayRateModifier Float Modifier to adjust decay rate (not actively used in graphs).
RadDamageMax Float Maximum radiation damage value applied to the owner.
RadDamageMin Float Minimum radiation damage value applied to the owner.
OwnerChar Object Reference to the owning character actor, cached for use in radiation calculations and effects.
OnOwnerRadValChanged Event Event delegate triggered when the owner's radiation value changes (not used directly in graphs).
RadProtectionMultiplier Float Multiplier reducing radiation effects when protection is active; dynamically set during gameplay.
OnEnvRadValChanged Event Event delegate triggered when environmental radiation value changes (not used directly in graphs).

Event Graph Breakdown

Event: Begin Play


Event: Tick


Event: RadiationCheckAndDamage (Custom Event)