Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Armor Property pRoadGoggles Auto Const Mandatory ; Radstorm goggles
- Armor Property pSurgicalMask Auto Const Mandatory ; Radstorm mask
- Weather Property pRadstorm Auto Const Mandatory ; Radstorm weather
- Event OnInit()
- RegisterForRadiationDamageEvent(Game.GetPlayer()) ; Enables OnRadiationDamage event
- EndEvent
- Event OnRadiationDamage(ObjectReference akTarget, bool abIngested)
- If (!abIngested && !(pScavverActor.IsEquipped(pSurgicalMask))) ; Eating food does not trigger this!
- String RadSource = "radiation"
- pScavverActor.EquipItem(pRoadGoggles, true, true)
- pScavverActor.EquipItem(pSurgicalMask, true, true)
- CancelTimer(2)
- Utility.Wait(1)
- If Weather.GetCurrentWeather() == pRadstorm
- StartTimer(240, 2) ; Rad storm is ~4 real minutes
- RadSource = "radstorm"
- ; Debug.MessageBox("RAD STORM TIMER STARTED")
- Else
- StartTimer(30, 2) ; Check if roaches/barrels gone in 30 seconds
- RadSource = "rad objects"
- ; Debug.MessageBox("RAD EXPOSURE TIMER STARTED")
- EndIf
- If pgvScavverStatusSniffer.GetValue() == 1
- Debug.Notification("Scavver put on " + RadSource + " gear.")
- EndIf
- Else
- RegisterForRadiationDamageEvent(Game.GetPlayer()) ; Catch the next radiation event
- EndIf
- EndEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement