# Citizen Pain | Action in First-Person

**URL:** <https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807>\
**Category:** Game Development\
**Tags:** unreal-engine, staff-pick-ind, epic-for-indies\
**Created:** [March 18, 2023, 8:10pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807 "2023-03-18T20:10:19Z")\
**Posts on this page:** 20\
**Page:** 7

<div class="post-metadata">

**Author:** ![Ordnas006](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ordnas006/32/1194699_2.png) [@Ordnas006](https://forums.unrealengine.com/u/Ordnas006)\
**Post date:** [November 5, 2023, 6:01pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/121 "2023-11-05T18:01:21Z")

</div>

Over the past few weeks, I’ve implemented some new gameplay mechanics, with a primary focus on the environmental hazard, which I had some fun, as it’s represented by a massive monster.

**1. Environment Hazard:**

- The Environment Hazard is represented by a giant monster; I adjusted its size to make it appear threatening to the player.
  - This monster serves as a challenge to cross a bridge, taking inspiration from Demon Souls by populating the area with numerous enemies to emphasize that the environmental hazard can affect a broad area.
  - Deciding on the monster’s size and position was a bit challenging. I scaled it enough to cover at least a third of the screen, creating a sense of threat without making it too large, which could become confusing.
  - The placement was also a decision point. I chose to position it slightly above and at an angle to cover the entire bridge with its attack. The distance is set so that its fire attack appears as a moving beam, indicating that it’s mobile and can be evaded.
  - Currently, the monster cannot be killed, but I’m still thinking about it.

**2. Environment Hazard Trigger Wakes from Afar:**

- I’ve implemented logic that allows the monster to wake up only when the player gets sufficiently close.
- It remains in a dormant state to indicate that it’s not active.
- Upon waking, it emits a roar to signal an impending attack (sound to be added in the future).
- There’s a 10-second delay from the moment it wakes up to when it unleashes its fire attack, giving the player time to cross the bridge.

**3. Fire Attack:**

- I haven’t added the VFX for the attack yet because I want to focus on the logic first to save time.
- I’ve included a debug red line to denote the attack’s area.
- The attack has a range from left to right.
- It inflicts substantial damage, capable of eliminating enemies in a single strike, but not the player. However, it deals a significant amount of damage.

**4. Door Lever Logic:**

- I’ve also implemented levers that, when activated, open previously closed doors.
- Additionally, there’s a logic for triggering a cinematic that I use to showcase unlocked doors that are far from the player’s current location.

**5. Boulder Trap:**

- The boulder trap triggers when the player is descending from an incline.
- To escape the boulder, the player must run and reach a passage in the wall.
- I’m not entirely satisfied with this trap, and I’m considering modifying it as there is a risk of it feeling a bit unfair since the threat comes from behind.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/f/90f74defa751ef9feab1cbc37d7d618add562963.jpeg "Citizen Pain | First Person Action in Unreal Engine 5 | Environment Hazard | Devlog October 2023") ](https://www.youtube.com/watch?v=SNgeKTnanKM)

---

<div class="post-metadata">

**Author:** ![Ordnas006](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ordnas006/32/1194699_2.png) [@Ordnas006](https://forums.unrealengine.com/u/Ordnas006)\
**Post date:** [November 6, 2023, 6:49pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/122 "2023-11-06T18:49:52Z")

</div>

Started implementing the boss. It is very large, inspired by the iconic boss from Demon’s Souls.

 ![HighresScreenshot00100](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/d/2dd286113d462167f9d2ecae074a7c064ff9e47d.jpeg)

---

<div class="post-metadata">

**Author:** ![InfiniteSkyGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/infiniteskygames/32/1131944_2.png) [@InfiniteSkyGames](https://forums.unrealengine.com/u/InfiniteSkyGames)\
**Post date:** [November 6, 2023, 8:56pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/123 "2023-11-06T20:56:06Z")

</div>

so cool!

---

<div class="post-metadata">

**Author:** ![InfiniteSkyGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/infiniteskygames/32/1131944_2.png) [@InfiniteSkyGames](https://forums.unrealengine.com/u/InfiniteSkyGames)\
**Post date:** [November 6, 2023, 8:57pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/124 "2023-11-06T20:57:29Z")

</div>

Awesome!

---

<div class="post-metadata">

**Author:** ![InfiniteSkyGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/infiniteskygames/32/1131944_2.png) [@InfiniteSkyGames](https://forums.unrealengine.com/u/InfiniteSkyGames)\
**Post date:** [November 6, 2023, 8:59pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/125 "2023-11-06T20:59:11Z")

</div>

You got this!  
Looks dialed in.

---

<div class="post-metadata">

**Author:** ![Ordnas006](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ordnas006/32/1194699_2.png) [@Ordnas006](https://forums.unrealengine.com/u/Ordnas006)\
**Post date:** [November 10, 2023, 9:03pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/126 "2023-11-10T21:03:22Z")

</div>

Thank you! 😃

---

<div class="post-metadata">

**Author:** ![Ordnas006](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ordnas006/32/1194699_2.png) [@Ordnas006](https://forums.unrealengine.com/u/Ordnas006)\
**Post date:** [November 10, 2023, 9:07pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/127 "2023-11-10T21:07:12Z")

</div>

This week I am optimizing the game, because I can no longer reach 60fps on my machine. Epic’s Paragon characters are very detailed but the materials are a bit heavy on my machine, I’m optimizing them (reducing effects you would only see up close). It is a slow process, but it will be worth it.

 ![Immagine 2023-11-10 184718](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/6/3668d5c8bd5ca8dec8afa51f1d68a2d3c96da4d2.png)

---

<div class="post-metadata">

**Author:** ![Ordnas006](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ordnas006/32/1194699_2.png) [@Ordnas006](https://forums.unrealengine.com/u/Ordnas006)\
**Post date:** [November 13, 2023, 9:12pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/128 "2023-11-13T21:12:47Z")

</div>

Optimization of the game will continue for this week as well. I am testing the asynchronous spawn of actors, now I don’t have the stutter caused by enemy spawn anymore. I still need to fix some minor bugs in the allocation/deallocation of actors.

 ![HighresScreenshot00000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/0/8e028e47431d074f628c5fce937735c9f730a3ee.jpeg)

---

<div class="post-metadata">

**Author:** ![Ordnas006](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ordnas006/32/1194699_2.png) [@Ordnas006](https://forums.unrealengine.com/u/Ordnas006)\
**Post date:** [November 15, 2023, 8:47pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/129 "2023-11-15T20:47:16Z")

</div>

By profiling I found about ten things slowing me down to reach 60fps, including Global Illumination (when there are more than 10 characters on screen Lumen starts to get a bit heavy on my machine), Temporal Super Resolution (I’ll have to switch to TAA), and a few Enemy Ticks to optimize.

 ![Immagine 2023-11-15 213352](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/5/755ff032369328f4bdeb9967f2ad9be8c88630fd.jpeg)

---

<div class="post-metadata">

**Author:** ![Ordnas006](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ordnas006/32/1194699_2.png) [@Ordnas006](https://forums.unrealengine.com/u/Ordnas006)\
**Post date:** [November 21, 2023, 7:14pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/130 "2023-11-21T19:14:37Z")

</div>

I decided to move the Greybox to the Unreal default Level Template to be able to check the performance of the game with shadows turned on.  
I must say that graphically it looks much better! Although I personally like to prototype with as few graphical effects as possible so that I can focus on gameplay (and not be distracted by the pretty graphics).

 ![HighresScreenshot00000 4K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/7/2/272340a446209174873a31e758231f5d18d59887.jpeg)

---

<div class="post-metadata">

**Author:** ![PresumptivePanda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/presumptivepanda/32/1194593_2.png) [@PresumptivePanda](https://forums.unrealengine.com/u/PresumptivePanda)\
**Post date:** [November 21, 2023, 10:37pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/131 "2023-11-21T22:37:25Z")

</div>

I’m glad to see that devs get distracted by pretty graphics as well. 🙂 Out of curiosity, what inspiration has hit you lately that you’ve taken notes from and brought into this project? I’m always a bit to nerd-ily excited to see what elements from a movie/game can inspire an idea 🙂

---

<div class="post-metadata">

**Author:** ![Ordnas006](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ordnas006/32/1194699_2.png) [@Ordnas006](https://forums.unrealengine.com/u/Ordnas006)\
**Post date:** [November 23, 2023, 8:13pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/132 "2023-11-23T20:13:34Z")

</div>

@PresumptivePanda Since I am taking inspirations for my project from From Software games (such as Demon’s Souls and King’s Field), recent inspiration has been Lies of P, which I’ve been playing recently. It has some different approaches on the Souls-like genre, like an increased speed and a different mechanic on parries.  
I think I’m going to prototype a couple of mechanics with the intent of modifying some typical Souls-like mechanics. 🙂

---

<div class="post-metadata">

**Author:** ![Ordnas006](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ordnas006/32/1194699_2.png) [@Ordnas006](https://forums.unrealengine.com/u/Ordnas006)\
**Post date:** [November 23, 2023, 8:19pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/133 "2023-11-23T20:19:21Z")

</div>

Improved performance of destructibles, decreasing the number of fractured pieces (from about 100 pieces per object to about 10-20 pieces) and continuous collision after fracture that caused intensive CPU usage indefinitely (solved by forcing fractured pieces to sleep so they don’t use the CPU after a while).

 ![HighresScreenshot00002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/1/57189980609bd4448b67a59b203c4d6052879c68.jpeg)

---

<div class="post-metadata">

**Author:** ![PresumptivePanda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/presumptivepanda/32/1194593_2.png) [@PresumptivePanda](https://forums.unrealengine.com/u/PresumptivePanda)\
**Post date:** [November 23, 2023, 10:21pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/134 "2023-11-23T22:21:32Z")

</div>

I hope there’s at least one mimic chest SOMEWHERE 😂

---

<div class="post-metadata">

**Author:** ![Ordnas006](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ordnas006/32/1194699_2.png) [@Ordnas006](https://forums.unrealengine.com/u/Ordnas006)\
**Post date:** [November 28, 2023, 8:24pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/135 "2023-11-28T20:24:18Z")

</div>

Unfortunately, for now I do not plan to add any mimic chest. 😅

---

<div class="post-metadata">

**Author:** ![Ordnas006](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ordnas006/32/1194699_2.png) [@Ordnas006](https://forums.unrealengine.com/u/Ordnas006)\
**Post date:** [November 28, 2023, 8:29pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/136 "2023-11-28T20:29:18Z")

</div>

Boss prepares for a Spear Swipe attack.  
I replaced boss weapon, spear instead of axe, so that it has a greater range of attack.  
Attacking downward was harder than expected, I had to modify the attack animations to be able to direct the attack downward (since the Boss is much larger than the player).

 ![Immagine 2023-11-28 201933](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/8/628df5f3114addc6c72b921cfe648e2385f53116.jpeg)

---

<div class="post-metadata">

**Author:** ![Ordnas006](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ordnas006/32/1194699_2.png) [@Ordnas006](https://forums.unrealengine.com/u/Ordnas006)\
**Post date:** [December 2, 2023, 7:58pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/137 "2023-12-02T19:58:11Z")

</div>

Boss Spear Stab attack. It is performed when the player is far away. Tracking during startup animation is very long, so that the player must necessarily dodge to the side or back away.

 ![HighresScreenshot00006](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/8/3682fa3724dac30c9b60cc66c5d9a70a7b1d25bf.jpeg)

---

<div class="post-metadata">

**Author:** ![Ordnas006](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ordnas006/32/1194699_2.png) [@Ordnas006](https://forums.unrealengine.com/u/Ordnas006)\
**Post date:** [December 3, 2023, 6:59pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/138 "2023-12-03T18:59:12Z")

</div>

Boss Spear Throw attack. When the player moves away and cannot be reached, the Boss throws his spear toward the player. The attack is very predictable, so the player can avoid it from a distance (hiding behind walls, dodging etc.).

 ![HighresScreenshot00008(2)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/4/304e27b9a7c99b352baee53d75eebac294e722a6.jpeg)

---

<div class="post-metadata">

**Author:** ![Ordnas006](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ordnas006/32/1194699_2.png) [@Ordnas006](https://forums.unrealengine.com/u/Ordnas006)\
**Post date:** [December 4, 2023, 8:20pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/139 "2023-12-04T20:20:29Z")

</div>

Boss Back Jump attack. It is performed when the player stands behind the Boss. I need to finish implementing the backward movement, but so far it’s the easiest implementation among the Boss attacks.

 ![HighresScreenshot00011](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/8/348af687b750d6d6774fef628a1e831f1f9eae87.jpeg)

---

<div class="post-metadata">

**Author:** ![Ordnas006](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ordnas006/32/1194699_2.png) [@Ordnas006](https://forums.unrealengine.com/u/Ordnas006)\
**Post date:** [December 7, 2023, 7:10pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/140 "2023-12-07T19:10:51Z")

</div>

Shield Slam attack. Boss will raise the shield and slam it on the ground, causing Area of Effect (AoE) damage. Performed when the Player is near the Boss. The attack can be avoided by dodging away.

 ![HighresScreenshot00015](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/3/563a79068ceee815560221829e479641e9ef8011.jpeg)

[Previous page](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807.md?page=6)

[Next page](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807.md?page=8)
