Demon behavior - Afronomical/Producing-Games-24 GitHub Wiki
Below is a list of each of the demons states that and the states for the imp and shadow. Each of the Demon states is a parent state inherited by the imp and shadow which both have some of their own states giving them different ways the player will need to approach each of them.
For those that want a more visual look at how this all fits together I will include a miro link for the flow charts. https://miro.com/app/board/uXjVN11kN4o=/?share_link_id=55126577638
State name | Behavior | Trigger | Comment | Side note |
---|---|---|---|---|
Demon inactive | None, when the demon is inactive its not spawned yet. | Default. | ||
Demon Chase | This is for when the demon is chasing the player around the map after having seen them. | In rage mode. | ||
Demon patrol | This is for when the demon has either lost sight of the player for to long or not yet seen the player. | In rage mode. | ||
Demon search. | This is when the demon is looking trough hiding spots to see if it finds the player. | In rage mode. | Imp passive | Since the imp is always active on the map it will be in a passive/less aggressive state when the demon rage mode isn't triggered. |
Imp Distraction | The imp is checking in the area around it for anything to interact with to cause an extra task for the player | Default. | examples of what it can do for this is move certain items around on the map, turn off the power for the cameras or water for the kitchen, brake cardiograms etc. | This is something that it will only do while its in a passive state. |
Imp Hostile | Here the imp will behave the same as the demon during its Chase for rage, it also has its own special interaction if a patient is close by to it where it will go and scare them. | In rage mode. | ||
Imp hostile(Audio) | For the imps hostile state, an idea is that it makes a bit of noise such as whistling or laughter so that the player can tell that the imp is close/coming for them | during Imp hostile | This is very open for suggestions from everyone. | |
Shadow Hostile | This is for when the shadow has spawned inn and have seen the player. | During rage mode. | The shadow will only be active when the demon is in rage mode | |
Shadow Stalking | Here it will start stalking the player from the shadows giving the player a option to defend from it using the flashlight, the player can "destroy" the shadow temporarily giving them a chance to run and hide from it. | During rage mode. | Note that if the player tries to hide while in the line of sight from a stalking shadow it will instantly attack the player. | |
Seeking Shadow | After the shadow spawns it will place some parts of it self around the map that works as cameras for it letting it see the player and move to the cam position to attack the player | During rage mode. | Not entirely certain on how many of these "cameras" the shadow should be allowed to place but for starters lets have it be 1 for each shadow demon |