# 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:** 8

<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 8, 2023, 8:45pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/141 "2023-12-08T20:45:39Z")

</div>

Added particle for Slam Attack. It’s not the correct particle, but it’s just to give a visual clue about the radius of the AoE damage. Although visually I find it nice.

 ![HighresScreenshot00017](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/c/1/7c18f7db050196e51c9b5c1de6ea5d97cc6aa817.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 10, 2023, 7:58pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/142 "2023-12-10T19:58:48Z")

</div>

I started the implementation of the boss battle, intending to challenge the player as a final test to ensure mastery of the game mechanics.

The boss character is designed to be imposing, emphasizing its strength through high health and powerful, long-range attacks.

Boss attacks:

• Spear Sweep: The boss performs a sweeping attack with its spear when the player is in front, covering a significantly large area.  
• Spear Stab: Executed when the player is at a distance, this powerful attack has an extended targeting duration, requiring the player to dodge at the last moment for successful evasion.  
• Spear Throw Attack: When the player moves out of reach, the boss resorts to throwing its spear toward the player.  
• Back Jump: This move is executed when the player stands behind the boss, adding a surprise element to the battle.  
• Shield Slam Attack: The boss raises its shield and slams it on the ground, causing Area of Effect (AoE) damage. This move is performed when the player is near the boss.

I may temporarily halt the development of the boss battle to return to it later, I need to focus on player mechanics and prototype some new gameplay elements.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/1/891ac1eb67b4150e3ea7b60faa49b4008e6f2262.jpeg "Citizen Pain | First Person Action in Unreal Engine 5 | Boss Battle | Devlog December 2023") ](https://www.youtube.com/watch?v=UOmf161Ev5A)

---

<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 12, 2023, 8:55pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/143 "2023-12-12T20:55:41Z")

</div>

I am implementing usable items, starting with potions. I put a temporary UI, an icon in the bottom left corner with text indicating the number of potions available.

The item icon overlaps with the shield (which why I had to put the icon a little bit higher), I don’t like it very much, I will think at a later time how to solve this problem.

 ![Eskus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/d/96d53b2d1e2c9f43f4b0e8d702a845749f78ff61.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 14, 2023, 8:09pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/144 "2023-12-14T20:09:32Z")

</div>

Added animation while using a healing item. I’ll have to put an item in the character’s hand, but I’ll do that later.

 ![HighresScreenshot00021](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/4/1445617000cd2d7a17012a2d9de8e8950ac1bbba.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 21, 2023, 7:48pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/145 "2023-12-21T19:48:58Z")

</div>

Added potion icon to be used in the game HUD. I think it’s better than the placeholder I was using before, it’s clearer that it could be a healing item. I would like to fix the edge of the window box because is not very visible.

 ![Potion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/0/8805355505e917f538515bad51a2ad1d21478b97.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:** [December 22, 2023, 4:58pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/146 "2023-12-22T16:58:30Z")

</div>

I am implementing a new gameplay mechanic: the staggered and recharge healing items. There is a probability that the enemy, before dying, will go into a staggered state. During this state, the player can perform a frontstab to the enemy and recharge healing items if they are finished.

The probability of the enemy going into a staggered state is around 10%, but I would like to give the possibility to increase the staggered probability through upgrades.

 ![Screenshot 2023-12-22 173902](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/5/c051b28761b1dcf9b5397b45133325154380c956.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 24, 2023, 4:46pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/147 "2023-12-24T16:46:29Z")

</div>

I am experimenting with a modification to the backstab mechanics: it is possible to backstab only if the enemy’s health is below 50%. When it is possible to backstab, an icon appears on the enemy’s health bar indicating that it is possible to execute a backstab on the enemy (this also applies to frontstab).

I am introducing this to decrease backstab abuse and increase face-to-face combat. Also, backstabs refill potions, so it’s something that should balance the potion refill mechanics.

 ![Screenshot 2023-12-24 173635](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/5/035527649483e42777ff780f4a76e6ee35a7c204.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 26, 2023, 12:53pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/148 "2023-12-26T12:53:39Z")

</div>

I am implementing a new ability: the Invisibility Cloak. This ability makes the character invisible to enemies. Invisibility is removed after 10 seconds or if the player attacks or is damaged. The skill can be recharged by killing enemies. I want to introduce this skill to give the player the opportunity to play in stealth, move to a more strategic location or decide to run away from enemies.

 ![Screenshot 2023-12-26 133539](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/9/1690f14a60833214fd0cda7fbe36c6da988dd712.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 29, 2023, 6:25pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/149 "2023-12-29T18:25:47Z")

</div>

I am implementing a new gameplay mechanic: possession, an ability that allows the player to merge corporeally with enemies and control them. During possession, the player can use the possessed enemy and use its attacks against other enemies. The possess lasts 10 seconds or if the host dies, and the player returns to the original body.

 ![Screenshot 2023-12-29 191645](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/6/ed6be55ced6efcc573bb36141c0c635ebc5edc99.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:** [January 4, 2024, 8:00pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/150 "2024-01-04T20:00:11Z")

</div>

I am adding a crosshair to be able to aim and cast the possession ability. The crosshair turns red when it is over an enemy. The crosshair contrasts poorly on light backgrounds, I’ll try adding shadow to the crosshair background.

 ![Crosshair](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/e/78e2a1f7c8004a38552702ecec74777e7352c7fe.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:** [January 5, 2024, 8:05pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/151 "2024-01-05T20:05:22Z")

</div>

I am adding an animation for the possession ability. During the startup of the animation the player has to aim at the enemy to be possessed. Startup takes a while, so it can be risky to activate it while an enemy is attacking you.

 ![Possession animation](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/a/6fa1a9f53269f731187a7dd23c84072964edf71d.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:** [January 8, 2024, 7:51pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/152 "2024-01-08T19:51:52Z")

</div>

Since last month, I’ve begun implementing new gameplay mechanics:

- **Healing Mechanic** :

- **Enemy Stagger Mechanic** :

- **Backstab and Frontstab Conditions:**

- **Invisibility Cloak** :

There are still more mechanics I plan to implement, including Possession (already in progress), where the player can control possessed enemies and use their attacks against other foes. I hope to showcase updates on these new mechanics soon.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/1/5c1473fe351d100c1d6a0049acd822ac5381f821.jpeg "Citizen Pain | First Person Action in Unreal Engine 5 | New Gameplay Mechanics | Devlog January 2023") ](https://www.youtube.com/watch?v=QOY8F4BmhbA)

---

<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:** [January 10, 2024, 8:09pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/153 "2024-01-10T20:09:19Z")

</div>

Added Possession UI indicator in the lower left corner. Progress bar indicates how much time is left before Possession ends. The icons, like the rest of the HUD, are still work in progress.

 ![Possession2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/4/434a5b6eea23726f564fb29671c9691756af2e3b.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:** [January 14, 2024, 5:07pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/154 "2024-01-14T17:07:57Z")

</div>

Tweaked camera location for the enemy’s possession using a over-the-shoulder style. I think it’s the right camera if I want to use strafe movement, and visually the one closer to a first person camera, so that the transition between the main charater and the enemy is not too alienating.

 ![Screenshot 2024-01-14 175636](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/6/986aad6a1d14abff322d33f0c48269b4144dd922.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:** [January 16, 2024, 6:25pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/155 "2024-01-16T18:25:58Z")

</div>

Enabled possession for the Soldier Swordsman as well. Light attack triggers sword strike, while Heavy attack throws a bomb. Also disabled HUD items that are not needed/not used during possession (potions, stamina bar etc.).

 ![Immagine 2024-01-16 191604](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/c/0cc71d951927d83acfe8c88c73f40ef0051a5fe8.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:** [January 18, 2024, 7:31pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/156 "2024-01-18T19:31:19Z")

</div>

I am continuing the implementation of possession. I just finished the Soldier Spearman enemy, where with the Light Attack command you execute the stab and with the Heavy Attack command you execute a sweep.

 ![Immagine 2024-01-18 174431](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/9/6397a35cc4600a612048de84bc2a63b750016784.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:** [January 19, 2024, 7:51pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/157 "2024-01-19T19:51:52Z")

</div>

Possession of the enemy Knight. In the screenshot while I was attacking a Soldier I am about to be hit from behind by a Skeleton enemy.

 ![Immagine 2024-01-19 204503](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/d/5ad33a004e3fe02b2b46e95d2ea9b45090b66133.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:** [January 20, 2024, 8:09pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/158 "2024-01-20T20:09:14Z")

</div>

I put in camera effects when you have possessed the enemy: zoom in to the enemy, color desaturation, and a green tint, to make it clear that you are in the Possession state.

For now I’m done with Possession, tomorrow I’ll start implementing a new mechanic taken from horror games.

 ![Immagine 2024-01-20 210411](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/0/650fe7014930200b55b076d61a9969d9ac763456.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:** [January 24, 2024, 8:20pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/159 "2024-01-24T20:20:29Z")

</div>

The creature that will be featured in the horror section of the game.  
To unlock the shortcut, the player will have to get past a small horror section where without weapons will need to escape from a creature. The horror section will be very much inspired by the scarier parts of games like Resident Evil and Dead Space.

 ![Immagine 2024-01-24 202253](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/9/849d1986745485be7d3d99cd6bef26724254c517.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:** [January 26, 2024, 7:21pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/160 "2024-01-26T19:21:08Z")

</div>

Layout of the small horror section, a simple go from point A to point B, where you have to pick up an object at point B and bring it back to point A. The creature will at some point appear in the middle of the level and follow the player. The goal is to activate the elevator to escape, without getting caught by the creature. Passing the level will unlock the shortcut.

 ![Screenshot 2024-01-25 203251](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/f/f6f2373f739f356f29d19ff1d55123f37014b947.jpeg)

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

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