# RPG fully C++ only Custom Combat System and Movement System Fast Combat and lot of Abilities to use

**URL:** <https://forums.unrealengine.com/t/rpg-fully-c-only-custom-combat-system-and-movement-system-fast-combat-and-lot-of-abilities-to-use/147821>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [July 21, 2020, 8:20am UTC](https://forums.unrealengine.com/t/rpg-fully-c-only-custom-combat-system-and-movement-system-fast-combat-and-lot-of-abilities-to-use/147821 "2020-07-21T08:20:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Punal100](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Punal100](https://forums.unrealengine.com/u/Punal100)\
**Post date:** [July 21, 2020, 8:20am UTC](https://forums.unrealengine.com/t/rpg-fully-c-only-custom-combat-system-and-movement-system-fast-combat-and-lot-of-abilities-to-use/147821/1 "2020-07-21T08:20:21Z")

</div>

Update 1:  
I have added Particle Effects and Sound Effects To the Game! also updated the UI a bit  
All Made In C++!  
[https://youtube.com/watch?v=qBZH3n8h\_7c](https://youtube.com/watch?v=qBZH3n8h_7c)

//Backstory…  
I first started working on this game of mine like a month ago, Initially, I was making a multiplayer version of this, using the concept one-server many clients, I even made a custom character movement from scratch using only C++ no blueprint. This was highly compatible with the server-client and is also a very lightweight client sending a char array of 6 length to the server, while the server sends back the location of the character in the server.

The server sends all the character’s location in the server to each and every client without data loss) and very high speed  
tested this on i3-9100f processor…

It was good and all but the time taken to write code for server and client was talking too long…  
So I decided to stop doing multiplayer version of this until I make the single-player version fully…

**//Present**  
And I started doing the single-player version quickly, made a combat system( Fully in C++) with optimization in mind and the maximum determination to not use blueprint for any of my code…  
you can check the video to see the combat system

[https://www.youtube.com/watch?v=jmeRt-XyzTY](https://www.youtube.com/watch?v=jmeRt-XyzTY)

As for animation and widget, I made a C++ base class deriving from their C++ base class so that the widget and animation blueprint can use my newly created base class’s public variable.  
animation used are from Mixamo.

These public variables are speed, jump, block,weapon draw, attack etc for the animation class. as for widget class, it’s ability skill bar, current health, shield, mana, stamina, and entire skill tree.

**//Technical Details**  
Combat System In my game has _ **3 Resource Pool** _ Health, Mana and Stamina. _ **4 if you add Shield** _

There are _ **6 Types of Ability** _ in my combat system  
Namely, Single Target Ability, Cone Radius Ability, Area of Effect Ability, Passive Ability(Similar to single target), Projectile Ability and lastly Cone Spray Type Ability.  
All these are fully functional and perfect!

Now for _ **Ability Specifications** _  
The Basic  
Health, Mana, Stamina, Shield Resource Self Consumption.  
Health, Mana, Stamina, Shield Resource Damage to enemy.  
Health, Mana, Stamina, Shield Resource Restoration.

Range, Radius, Speed, Max Duration, Time Passed, Each Tick Duration AND COOLDOWN the most important of all

Some _ **Additional Ability Type** _ such as TELEPORT, FAMILIAR SUMMON, SWITCH PLACE(teleport for both target and caster), INVISIBLITY, PULLING AND PUSHING, STUN, ROOT.  
some more will be added in the future such as charm, slow down, invisibility detection, speed up.

**AND MOST IMPORTANTLY BUFF/DEBUFF** system is also implemented  
same person can’t stack the same buff (This is a major balancing move, without it people will spam the same buff on the enemy)

There are total in total _ **9 Types of attack** _  
**Divided in 3 equal parts**  
Namely  
**Elemental Type**  
Fire, Freeze, Shock

**Physical Type**  
Slash, Pierce, Smash

**Internal Type**  
Mental, Poison, bleed

And then there is this **Damage Modifiers** 1 + 9 + 3 = 13 Diffrent Modifiers in total  
Specific Damage Modification, Type Damage Modification and Total Damage Modification…

_ **Specific Damage Modification for** _ Fire, Freeze, Shock, Slash, Pierce, Smash, Mental, Poison, bleed.  
_ **Type Damage Modification** _ for Elemental Type, Physical Type, Internal Type.  
_ **Total Damage Modification** _ Well applies to all.

**ALL MODIFICATION ARE CALCULATED BY PERCENTAGE.**

And this **Resistance Modifiers** 1 + 9 + 3 = 13 Diffrent Modifiers in total  
Specific Resistance Modification, Type Resistance Modification and Total Resistance Modification…

_ **Specific Damage Modification for** _ Fire, Freeze, Shock, Slash, Pierce, Smash, Mental, Poison, bleed.  
_ **Type Damage Modification** _ for Elemental Type, Physical Type, Internal Type.  
_ **Total Damage Modification** _ Well applies to all.

There are these too **ATTRIBUTES** …  
Accuracy, Reflex, CriticalChance, CriticalMultiplier, AttackSpeed , CastSpeed.  
and their _ **Modifiers too** _  
Accuracymodif, Reflexmodif, CriticalChancemodif, CriticalMultipliermodif, AttackSpeedmodif, CastSpeedmodif.

Health, Mana, Stamina _ **Resource Attributes** _ are also there. These Resource Attributes Increase the resource pool and also reduce the resource cost of spells…

\*\*Armour rating \*\*_the most important of all is also there_, How effective your damage reductions are also determined by the armour rating…  
lets say you are level 100 but you are wearing Low rating armour, so you will get hurt more  
This here is the formula _DamageReceived = **DamageReceived \* \*\*\*((108CharacterLevel)/ArmourRating)**;_

And Proper Level and Experiance system is also implemented…

I have created every thing needed for a RPG game.  
now all i have to create are AI, proper UI and add some Skills and ability names…

ah did i forgot to mention, Every skills and ability have default icons with them, these _Icons_ can also be **changeable**!

---

<div class="post-metadata">

**Author:** ![Punal100](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Punal100](https://forums.unrealengine.com/u/Punal100)\
**Post date:** [July 21, 2020, 8:24am UTC](https://forums.unrealengine.com/t/rpg-fully-c-only-custom-combat-system-and-movement-system-fast-combat-and-lot-of-abilities-to-use/147821/2 "2020-07-21T08:24:20Z")

</div>

Here is the Video Link [https://www.youtube.com/watch?v=jmeRt-XyzTY](https://youtu.be/jmeRt-XyzTY) sorry for not including in Main post

---

<div class="post-metadata">

**Author:** ![Punal100](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Punal100](https://forums.unrealengine.com/u/Punal100)\
**Post date:** [July 24, 2020, 11:23am UTC](https://forums.unrealengine.com/t/rpg-fully-c-only-custom-combat-system-and-movement-system-fast-combat-and-lot-of-abilities-to-use/147821/3 "2020-07-24T11:23:45Z")

</div>

Update 2: 06/08/2020

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/8/988ce0ff9f0e3b09a850452132f1a63b2a23e15c.jpeg "Asteroids Demo Alpha Version 0 1 by Ukshaa") ](https://www.youtube.com/watch?v=2ZQN9hxhAKE)

Hello Everyone!  
Right now I am doing a smaller project for both Pc/Mac and Android/iOS  
Which is a space shooter! (Free downloadable Demon Included).  
Please Check Out This Forum Page. [https://forums.unrealengine.com/comm…on-each-update](https://forums.unrealengine.com/community/work-in-progress/1797594-3d-space-shooter-made-entirely-in-c-with-downloadable-demo-on-each-update)  
For More Information Please Check out this discord! : [Punal's Unreal Engine 4 DevLog](https://discord.gg/E8SQMEP)

So for now This Large RPG project of mine Is Halted and won’t be resumed until I release the Space Shooter!

Update 1:  
I have added Particle Effects and Sound Effects To the Game! also updated the UI a bit  
All Made In C++!

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/b/54bd32ec66b7a6a7b340e4f85e935234c1f0751d.jpeg "Thrid Person RPG Update 1") ](https://www.youtube.com/watch?v=qBZH3n8h_7c)

---

<div class="post-metadata">

**Author:** ![Punal100](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Punal100](https://forums.unrealengine.com/u/Punal100)\
**Post date:** [August 6, 2020, 1:16am UTC](https://forums.unrealengine.com/t/rpg-fully-c-only-custom-combat-system-and-movement-system-fast-combat-and-lot-of-abilities-to-use/147821/4 "2020-08-06T01:16:25Z")

</div>

Update 2:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/8/988ce0ff9f0e3b09a850452132f1a63b2a23e15c.jpeg "Asteroids Demo Alpha Version 0 1 by Ukshaa") ](https://www.youtube.com/watch?v=2ZQN9hxhAKE)

Hello Everyone!  
Right now I am doing a smaller project for both Pc/Mac and Android/iOS  
Which is a space shooter! (Free downloadable Demon Included).  
Please Check Out This Forum Page. [https://forums.unrealengine.com/comm…on-each-update](https://forums.unrealengine.com/community/work-in-progress/1797594-3d-space-shooter-made-entirely-in-c-with-downloadable-demo-on-each-update)  
For More Information Please Check out this discord! : [Punal's Unreal Engine 4 DevLog](https://discord.gg/E8SQMEP)

So for now This Large RPG project of mine Is Halted and won’t be resumed until I release the Space Shooter!
