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

<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:** [June 7, 2023, 5:44pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/41 "2023-06-07T17:44:40Z")

</div>

I am implementing the Strong Attack. I did a lot of level design in my game that I forgot how much data I need to take into account for frame data.

 ![StrongAttack Anim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/0/540ba3c72a5a7b6b22cb2086247cf6a0b8908791.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:** [June 8, 2023, 4:40pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/42 "2023-06-08T16:40:15Z")

</div>

For some frames I lengthen the weapon during the strong attack in order to reach farther range.

 ![HighresScreenshot00036](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/d/0/4d0d0536737c3ba718dd98378689a659830665f4.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:** [June 8, 2023, 9:07pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/43 "2023-06-08T21:07:12Z")

</div>

Not sure why but that made me laugh 😂 Anything for the perfect shot!

---

<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:** [June 9, 2023, 4:36pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/44 "2023-06-09T16:36:33Z")

</div>

The strong attack does twice as much damage as the light attack, but it also consumes more stamina.

 ![Strong Attack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/9/b5973d02ec3b61858c325eae22df6efe4dbb311d.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:** [June 11, 2023, 4:52pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/45 "2023-06-11T16:52:16Z")

</div>

This week I devoted it completely to gameplay. I introduced a visible health bar above enemies, with a second yellow bar to indicate the damage of the last attack.

Also, I added a strong attack, which, besides being an attack with a higher range, does much more damage.

I need to finish tweaking the attack, as it’s too safe for me, since you can charge the attack from a distance with a nice range. Probably the charge of the attack will happen during a small dash forward, so that it is more unsafe to use it.

Also, I made several tweaks to the enemy balance, changing the health of enemies so that the Strong Attack damage has a significant impact, and reduced the hitbox of some weapons since enemies tended to hit you a little too much from a distance.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/e/a/1ea623da2893810880becd1d6aac2895fb75b500.jpeg "Citizen Pain | First Person Action Prototype in Unreal Engine 5 | Strong Attack") ](https://www.youtube.com/watch?v=XFUpfIMGRyU)

---

<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:** [June 25, 2023, 6:39pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/46 "2023-06-25T18:39:50Z")

</div>

I started implementing the backstab mechanic, to be triggered when the player is +/- 60 degrees behind the enemy.

 ![Backstab prototype](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/a/a2a75da73b0074bce99f992244751a95f00bae5d.jpeg)

---

<div class="post-metadata">

**Author:** ![The\_M0ss\_Man](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/the_m0ss_man/32/1194644_2.png) [@The\_M0ss\_Man](https://forums.unrealengine.com/u/The_M0ss_Man)\
**Post date:** [June 25, 2023, 8:27pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/47 "2023-06-25T20:27:25Z")

</div>

Hi there @Ordnas006 !

I wanted to say I adore the concept of the game and seeing the progress through the development. I’m actually glad to see the use of the long weapon tactic for longer reach as I know that’s very popular within 3d animation but I never get to see it in the developmental process.

I’m very excited to see further development and adore the addition of the backstabbing mechanic. 🤩

---

<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:** [June 26, 2023, 5:19pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/48 "2023-06-26T17:19:59Z")

</div>

Hi @The_M0ss_Man!

Thank you for the kind words! It has to be said that my stretching of the sword is done very incorrectly compared to how it should be done (I scaled the entire sword mesh, and I’m not even interpolating) but the concept is the same.

I hope to show the backstabbing soon, likely this weekend. 😃

---

<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:** [June 26, 2023, 5:22pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/49 "2023-06-26T17:22:20Z")

</div>

Backstabbing logic implemented, including enemy damage. Need to finish other things, including animations and enemy throwing.

 ![Backstab logic damage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/d/0ddb0fbaa3c9144977cd8f4b10d681a993eea10a.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:** [June 27, 2023, 5:01pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/50 "2023-06-27T17:01:00Z")

</div>

For now I’ve put an animation for the backstab, it’s temporary but for now it may be okay.

 ![Backstab animation](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/2/542ee4fa881aa05e4df7be2d6b5af3de75aed1e7.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:** [June 29, 2023, 4:50pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/51 "2023-06-29T16:50:24Z")

</div>

Added hit backstab animation for the enemy as well.

 ![Backstab enemy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/9/6296b8c29c354d72b2c0ceff01b0d7be0bee89f8.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:** [July 1, 2023, 4:49pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/52 "2023-07-01T16:49:49Z")

</div>

Tweaked the camera shake and decreased the FOV a bit during animation.

 ![Backstab cam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/6/066af50a4dc75084ed345a0634eb761e7b8051be.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:** [July 3, 2023, 6:21pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/53 "2023-07-03T18:21:52Z")

</div>

Today I’m going to start implementing the parry.

![Parry BP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/d/fadf51516448165b301a496da113cb5566907007.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:** [July 5, 2023, 6:49pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/54 "2023-07-05T18:49:41Z")

</div>

After the parry it is possible to frontstab the enemy. I was going to post a picture very similar to the backstab (but with the enemy turned instead of his back), so I thought I would do a series of screenshots with highlights.

 ![IMG-20230705-WA0011](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/2/f72d034949ce816f28c13a05f232e3a580b98d8e.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:** [July 9, 2023, 3:44pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/55 "2023-07-09T15:44:26Z")

</div>

I finally managed to post a new video about my progress! These weeks I implemented a couple of gameplay mechanics. I added the Parry, since in a serious combat system I think it’s an important mechanic.

The parry is active in the first 10 frames of the parry animation, in which any attack is parried, leaving the enemy in a state of knockback and possible counterattack by doing a Frontstab.

For the Parry animation, I edited an animation via keyframe inside Unreal Engine so that the player’s left arm moves to the left.

For the frontstab instead, I added some camera shakes, adding some forward-backward spring shakes, some rotational swings, and a slight camera zoom by tweaking the FOV.

Backstab mechanics, on the other hand, work similarly to Frontstab but must be done behind the enemy. To be valid, the player must be no more than 60 degrees behind the enemy.

So far I have used the same animation as Frontstab, but with an addition of an enemy throw. I don’t really like the enemy throw animation (a sort of a forward roll), I’ll probably replace it with a throw animation.

In the future I will fix the animation of the stabbed sword, I would like the hand to turn the sword in the flesh of the enemy, kind of like what happens in the Backstab animation of Demon’s Souls.

In addition, I changed the animation of the Hit Block knockback of the enemy, so that it is more distinguishable from when the enemy received a parry.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/7/6c7b0b2a50ae09bb9f0733ae4fe100d4bea1b03a.jpeg "Citizen Pain | First Person Action Prototype in Unreal Engine 5 | Parry - July 2023 Week 1") ](https://www.youtube.com/watch?v=WijUgo95Oy4)

---

<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:** [July 10, 2023, 5:30pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/56 "2023-07-10T17:30:21Z")

</div>

This week I’m returning to level greybox. I am placing a soldier who throws firebombs at you from above while you’re fighting a skeleton.

 ![Tower Greybox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/4/60491c764eb2c2b170b6889e2050f32773fa7765.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:** [July 11, 2023, 5:19pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/57 "2023-07-11T17:19:44Z")

</div>

Placed one soldier firing firebombs from above, and another ambushing you around the corner.

 ![HighresScreenshot00037](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/c/9dce9228b7d2038cb8bc65849ab392a69d7b1c5a.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:** [July 13, 2023, 6:19pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/58 "2023-07-13T18:19:01Z")

</div>

I am prototyping a trap, a rolling boulder.

 ![HighresScreenshot00038](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/3/033d2069e4d44e73956aafacb8d16cb8371885bd.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:** [July 17, 2023, 5:08pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/59 "2023-07-17T17:08:15Z")

</div>

This past week I implemented the rolling boulder, one of the traps in the level. It’s a cinematics instead of being a physical object, because I wanted full control over its movement.

Then I made a modification to the Soldier Swordsman, some soldiers are throwing firebombs instead of going at the enemy. They are often placed in high areas to endanger the player in certain areas.

I also made changes to some parts of the level, such as widening the stairs where the rolling boulder will have to fall and finished placing enemies in the first tower of the level, especially enemies that throw firebombs at you.

In the gameplay video I didn’t include the rolling boulder since I haven’t finished adding it in the greybox level yet, it will be for the next video.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/a/f8a235b6ece1f55e787707845d83f8ddfb1a0230.jpeg "Citizen Pain | First Person Action Prototype in Unreal Engine 5 | Rolling boulder | July 2023 Week 3") ](https://www.youtube.com/watch?v=xuVZg1lQGhc)

---

<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:** [July 18, 2023, 6:16pm UTC](https://forums.unrealengine.com/t/citizen-pain-action-in-first-person/793807/60 "2023-07-18T18:16:13Z")

</div>

Rolling boulder placed in the greybox level.

 ![Rolling boulder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/3/5331b856a3edc7e951962cee08af8fb539f94a56.jpeg)

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

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