• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] Damage Engine - Help Custom Damage Calculation

Status
Not open for further replies.
Level 2
Joined
Apr 20, 2012
Messages
15
Good day,

I am using the Damage Engine, which handles "DamageType" variables.
The question is, how is that variable associated with certain types of units?

I have understood something about the system but I have some questions because I understand that it is very complex.

Can you detect the type of attack (perforator, etc)?
Can you detect the type of armor (light, medium, large)?

What I want to achieve with damage engine is NOT to use the warcraft formula to reduce damage (%):

Attacking unit:

10 = base damage
02 = improvement damage (2 levels / 1 + 1)
Perforator = Type of damage = DamageTypeXXX

Attacked unit:
100 = HP
2 = Base Armor
1 = Reinforcement upgrade level 1
Media = Type of armor

Note: damage XXX makes 1.5 the average armor

Formula:

((10 + 2) * 1.5) - (2 + 1) = 15

((base damage + improvement) * ratio type damage and armor type) - (base armor + reinforcement improvement) = effective damage

First of all, Thanks!

PD: Using Damage Engine 3.8.0.0
 
Last edited:
Status
Not open for further replies.
Top