QA ‐ Rage mode Trigger - Afronomical/Producing-Games-24 GitHub Wiki
Rage Mode Activation
How trigger works
- The rage mode is a random chance RNG to spawn in a round.
- The RNG is based on the % of the demon spawning.
- The RNG trigger, is triggered twice in an hour. Once at the beginning of the hour, another half way through.
Hour 1 starts
- Rage mode chance = 0%
- Player plays the hour.
- Player ends hour 1.
Hour 2 starts
- check has rage mode happened?
- If no- rage mode chance = 20% - check sanity - If sanity is 100-80 + 5% (see sanity table on wiki for all numbers*)
- Half way though hour check has rage mode happened/happening?
- If no- rage mode chance = 20% - check sanity - If sanity is 100-80 + 5% (see sanity table on wiki for all numbers*)
- If Currently active - rage mode = 0%
- Hour 2 ends
Hour 3 starts
- Check has rage mode happened?
- If no- rage mode chance = 40% + sanity%
- If yes- reset to 0% + Sanity%
- Half way though hour check has rage mode happened/happening?
- If no- rage mode chance = 40% + sanity%
- If Currently active - rage mode = 0%
- If Happened previous round - rage mode = sanity%
- Hour 3 ends
Hour 4 starts
- Check has rage mode has happened?
- If no – rage mode chance = 100%
- If yes- reset to 0% + Sanity%
- Hour 4 ends
Hour 5 starts
- Rage mode = sanity%
- Half way though hour check has rage mode happening?
- If Currently active - rage mode = 0%
- If no - rage mode = sanity%
- Hour 5 ends
Hour 6 starts
- Rage mode = sanity%
- Half way though hour check has rage mode happening?
- If Currently active - rage mode = 0%
- If no - rage mode = sanity%
- Hour 6 ends
Hour 7 starts.
- Rage mode = 100%
- Hour 7 ends
Hour 8 starts.
- Rage mode = 100%
- Hour 8 ends
How does Rage Mode work
Spawn point
- The Rage mode imp will spawn in the patient's (who is possessed) room
Wandering
- The imp will have a player location check
- If player is in the underground crypt - Imp will go downstairs - Imp will be in wandering state until seen player (check imp state flow chart**)
- if player is in hospital wing/main hall - Imp will have patrol points throughout the hospital wing and main hall in wandering state
Chasing
- Once player enters imp FOV (field of view) the imp will lock on to player and chase.
- If imp catches player, they are sent back to the study, one hour passed and a patient dies.
- If player is out of imp FOV for 20 seconds imp will lose tracking of player and go back to patrolling.
- if player hides the imp will lose tracking and go back to patrolling
Asterisk