SlideShare a Scribd company logo
1 of 10
Download to read offline
Damaging Control
Last Updated in 2.5
UnitStatus, DestroyableObject,
and anything that can be dealt damage to share Interface DealDamage_Interface
Anything that
can receive
damage
Send Attack Data
Anything that
can deal Damage Receive Feedback
What the Defender do with Attack Data is dependent on their own class
Damage Calculation
Last Updated in 2.5
Damage Calculation for Unit is done in
DamageControl_CustomClasses.cs , DamageAngleHitData ,CalcTotalDamage()
By Default, it does the following
Get Attacker Damage Value and
Element
Calculate final Damage Value
YES
Compare to Resistance of related Element
See if Guarding was successful or
not
Hit Direction
Last Updated in 2.5
Ignoring Y-Axis, If a Unit got Attacked, it will find out where the Attack originated based
from its horizontal orientation.
Front = 315-360, 0- 45
Right = 45-135
Back = 135-225
Left = 225-315
These were then used to determine which
Damaging Motion to blend to
Successful Guarding
Last Updated in 2.5
If the Unit is Guarding, depending from where the attack originated,
Guard Range determine whether Guarding is successful or not
90degree,
45to the right and 45to the left = Success
315-360, 0-45 = Success
120degree,
60to the right and 60to the left = Success
300-360, 0-60 = Success
If Guarding is Successful, the Damage is reduced
by the Percentage in
GuardDamageCutPercentage
Power Defence Level
Last Updated in 2.5
Power Level represent how powerful the Attack is,
For example, a Sword might have a base Power of 0.
While an Axe would be 1.
And The Powerful Cannon is 5.
From the Attacker, it is equal to Weapon’s Power + Motion’s Power
For the Defender, it is determined by UnitStatus’ PowerDefenceLevel
This value will be +1 when successful guarding is also made
Got Hit Motion
Last Updated in 2.5
Which Motion will the Unit blend to,
is determined by Power Difference of the Attacker and Defender
ATK < DEF,
Stick ATK0, Guarding DEF1, Attacker lost stance, Attacker Cancel Attack
Stick ATK0, Armor DEF1,motion will not get affected.
ATK == DEF,
Sword ATK1, Guarding DEF1, Nothing Happen
Sword ATK1, Armor DEF1, Unit will blend to got hit motion.
Defender Cancel Attack
ATK > DEF by 1,
Hammer ATK2, Guarding DEF1, blend to Guard Break Motion
Hammer ATK2, Armor DEF1, Unit will got blown away.
ATK > DEF by 2 or more,
Cannon ATK3, Guarding DEF1, Unit will got blown away.
Cannon ATK3, Armor DEF1, Unit will got blown away.
Force
Last Updated in 2.5
Force is the value that the Defender will got pushed away from the Attacker.
Total value is determined by Weapon’s Force * Motion’s Force
**WARNING** If either value is 0, the Defender will never be push away
AddForce
Attack
Getup input
Last Updated in 2.5
If the Attack is really Powerful,
thus that Defender got blown away,
the Unit will enter “Downing” State
after reaching Ground.
Inside Input, anything that return
true in GetUp() will make the
Unit stand up.
Getup Attack
Last Updated in 2.5
While in Downing State, if GetUpAttack() input was made instead,
The Unit will do GetUp Attack
Getup Attack
Last Updated in 2.5
Element0 is reserved for when Unit is facing upward
Element1 is reserved for when Unit is facing downward
To be precise, this is determined by which direction spineBone is facing

More Related Content

More from Matumit Sombunjaroen

「ティルズ・オブ・アライズ」のスキットは スキットの劣化である
「ティルズ・オブ・アライズ」のスキットは スキットの劣化である「ティルズ・オブ・アライズ」のスキットは スキットの劣化である
「ティルズ・オブ・アライズ」のスキットは スキットの劣化であるMatumit Sombunjaroen
 
ヒストリカ・ファンタジア 日本語版ゲーム制作 20210319
ヒストリカ・ファンタジア 日本語版ゲーム制作 20210319ヒストリカ・ファンタジア 日本語版ゲーム制作 20210319
ヒストリカ・ファンタジア 日本語版ゲーム制作 20210319Matumit Sombunjaroen
 
Historica Fantasia devblog10 Level Design Prototype
Historica Fantasia devblog10 Level Design PrototypeHistorica Fantasia devblog10 Level Design Prototype
Historica Fantasia devblog10 Level Design PrototypeMatumit Sombunjaroen
 
Historica Fantasia devblog09 Odin iInspector
Historica Fantasia devblog09 Odin iInspectorHistorica Fantasia devblog09 Odin iInspector
Historica Fantasia devblog09 Odin iInspectorMatumit Sombunjaroen
 
Historica Fantasia Devblog 8 Protype Units
Historica Fantasia Devblog 8 Protype UnitsHistorica Fantasia Devblog 8 Protype Units
Historica Fantasia Devblog 8 Protype UnitsMatumit Sombunjaroen
 
Historica Fantasia, Development Blog 07, PathFindingExperiment
Historica Fantasia, Development Blog 07, PathFindingExperimentHistorica Fantasia, Development Blog 07, PathFindingExperiment
Historica Fantasia, Development Blog 07, PathFindingExperimentMatumit Sombunjaroen
 
Historica Fantasia, Development Blog 06, ShaderForge Character Shader
Historica Fantasia, Development Blog 06, ShaderForge Character ShaderHistorica Fantasia, Development Blog 06, ShaderForge Character Shader
Historica Fantasia, Development Blog 06, ShaderForge Character ShaderMatumit Sombunjaroen
 
Historica Fantasia, Development Blog 05, Prototype Cost Estimation
Historica Fantasia, Development Blog 05, Prototype Cost EstimationHistorica Fantasia, Development Blog 05, Prototype Cost Estimation
Historica Fantasia, Development Blog 05, Prototype Cost EstimationMatumit Sombunjaroen
 
Historica Fantasia, Development Blog 04, Narrative Contents
Historica Fantasia, Development Blog 04, Narrative ContentsHistorica Fantasia, Development Blog 04, Narrative Contents
Historica Fantasia, Development Blog 04, Narrative ContentsMatumit Sombunjaroen
 
Historica Fantasia, Development Blog 03, Specific GamePlay Design Base on Fea...
Historica Fantasia, Development Blog 03, Specific GamePlay Design Base on Fea...Historica Fantasia, Development Blog 03, Specific GamePlay Design Base on Fea...
Historica Fantasia, Development Blog 03, Specific GamePlay Design Base on Fea...Matumit Sombunjaroen
 
Historica Fantasia, Development Blog 02 Deconstruct Ogre Battle & Improvise G...
Historica Fantasia, Development Blog 02 Deconstruct Ogre Battle & Improvise G...Historica Fantasia, Development Blog 02 Deconstruct Ogre Battle & Improvise G...
Historica Fantasia, Development Blog 02 Deconstruct Ogre Battle & Improvise G...Matumit Sombunjaroen
 
タイ人オタクが艦これ聖地山を巡った話 第3話1章 和歌山 新宮市 熊野川
タイ人オタクが艦これ聖地山を巡った話 第3話1章 和歌山 新宮市 熊野川タイ人オタクが艦これ聖地山を巡った話 第3話1章 和歌山 新宮市 熊野川
タイ人オタクが艦これ聖地山を巡った話 第3話1章 和歌山 新宮市 熊野川Matumit Sombunjaroen
 
タイ人オタクが艦これ聖地山を巡った話 第2話 神戸 摩耶
タイ人オタクが艦これ聖地山を巡った話 第2話 神戸 摩耶タイ人オタクが艦これ聖地山を巡った話 第2話 神戸 摩耶
タイ人オタクが艦これ聖地山を巡った話 第2話 神戸 摩耶Matumit Sombunjaroen
 
タイ人オタクが艦これ聖地山を巡った話 第1話 京都 高雄~愛宕山
タイ人オタクが艦これ聖地山を巡った話 第1話 京都 高雄~愛宕山タイ人オタクが艦これ聖地山を巡った話 第1話 京都 高雄~愛宕山
タイ人オタクが艦これ聖地山を巡った話 第1話 京都 高雄~愛宕山Matumit Sombunjaroen
 
สาเหตุที่ไม่ควรเอา JLPT N1...N2.... มาเป็นจุดเป้าหมายในการเรียนภาษาญี่ปุ่น
สาเหตุที่ไม่ควรเอา JLPT N1...N2.... มาเป็นจุดเป้าหมายในการเรียนภาษาญี่ปุ่นสาเหตุที่ไม่ควรเอา JLPT N1...N2.... มาเป็นจุดเป้าหมายในการเรียนภาษาญี่ปุ่น
สาเหตุที่ไม่ควรเอา JLPT N1...N2.... มาเป็นจุดเป้าหมายในการเรียนภาษาญี่ปุ่นMatumit Sombunjaroen
 
タイ人オタクが日本でモバイルゲーム制作を諦めた経緯の話
タイ人オタクが日本でモバイルゲーム制作を諦めた経緯の話タイ人オタクが日本でモバイルゲーム制作を諦めた経緯の話
タイ人オタクが日本でモバイルゲーム制作を諦めた経緯の話Matumit Sombunjaroen
 
เรื่องเกี่ยวกับ โรงเรียนวิชาชีพ ในญี่ปุ่น
เรื่องเกี่ยวกับ โรงเรียนวิชาชีพ ในญี่ปุ่นเรื่องเกี่ยวกับ โรงเรียนวิชาชีพ ในญี่ปุ่น
เรื่องเกี่ยวกับ โรงเรียนวิชาชีพ ในญี่ปุ่นMatumit Sombunjaroen
 
Idol Master Platinum Stars アイマス プラチナスターズ Game Review
Idol Master Platinum Stars アイマス プラチナスターズ Game ReviewIdol Master Platinum Stars アイマス プラチナスターズ Game Review
Idol Master Platinum Stars アイマス プラチナスターズ Game ReviewMatumit Sombunjaroen
 

More from Matumit Sombunjaroen (20)

「ティルズ・オブ・アライズ」のスキットは スキットの劣化である
「ティルズ・オブ・アライズ」のスキットは スキットの劣化である「ティルズ・オブ・アライズ」のスキットは スキットの劣化である
「ティルズ・オブ・アライズ」のスキットは スキットの劣化である
 
ヒストリカ・ファンタジア 日本語版ゲーム制作 20210319
ヒストリカ・ファンタジア 日本語版ゲーム制作 20210319ヒストリカ・ファンタジア 日本語版ゲーム制作 20210319
ヒストリカ・ファンタジア 日本語版ゲーム制作 20210319
 
Historica Fantasia devblog10 Level Design Prototype
Historica Fantasia devblog10 Level Design PrototypeHistorica Fantasia devblog10 Level Design Prototype
Historica Fantasia devblog10 Level Design Prototype
 
Historica Fantasia devblog09 Odin iInspector
Historica Fantasia devblog09 Odin iInspectorHistorica Fantasia devblog09 Odin iInspector
Historica Fantasia devblog09 Odin iInspector
 
Historica Fantasia Devblog 8 Protype Units
Historica Fantasia Devblog 8 Protype UnitsHistorica Fantasia Devblog 8 Protype Units
Historica Fantasia Devblog 8 Protype Units
 
Historica Fantasia, Development Blog 07, PathFindingExperiment
Historica Fantasia, Development Blog 07, PathFindingExperimentHistorica Fantasia, Development Blog 07, PathFindingExperiment
Historica Fantasia, Development Blog 07, PathFindingExperiment
 
Historica Fantasia, Development Blog 06, ShaderForge Character Shader
Historica Fantasia, Development Blog 06, ShaderForge Character ShaderHistorica Fantasia, Development Blog 06, ShaderForge Character Shader
Historica Fantasia, Development Blog 06, ShaderForge Character Shader
 
Historica fantasia 企画書
Historica fantasia 企画書Historica fantasia 企画書
Historica fantasia 企画書
 
Historica Fantasia, Development Blog 05, Prototype Cost Estimation
Historica Fantasia, Development Blog 05, Prototype Cost EstimationHistorica Fantasia, Development Blog 05, Prototype Cost Estimation
Historica Fantasia, Development Blog 05, Prototype Cost Estimation
 
Historica Fantasia, Development Blog 04, Narrative Contents
Historica Fantasia, Development Blog 04, Narrative ContentsHistorica Fantasia, Development Blog 04, Narrative Contents
Historica Fantasia, Development Blog 04, Narrative Contents
 
Historica Fantasia, Development Blog 03, Specific GamePlay Design Base on Fea...
Historica Fantasia, Development Blog 03, Specific GamePlay Design Base on Fea...Historica Fantasia, Development Blog 03, Specific GamePlay Design Base on Fea...
Historica Fantasia, Development Blog 03, Specific GamePlay Design Base on Fea...
 
Historica Fantasia, Development Blog 02 Deconstruct Ogre Battle & Improvise G...
Historica Fantasia, Development Blog 02 Deconstruct Ogre Battle & Improvise G...Historica Fantasia, Development Blog 02 Deconstruct Ogre Battle & Improvise G...
Historica Fantasia, Development Blog 02 Deconstruct Ogre Battle & Improvise G...
 
タイ人オタクが艦これ聖地山を巡った話 第3話1章 和歌山 新宮市 熊野川
タイ人オタクが艦これ聖地山を巡った話 第3話1章 和歌山 新宮市 熊野川タイ人オタクが艦これ聖地山を巡った話 第3話1章 和歌山 新宮市 熊野川
タイ人オタクが艦これ聖地山を巡った話 第3話1章 和歌山 新宮市 熊野川
 
タイ人オタクが艦これ聖地山を巡った話 第2話 神戸 摩耶
タイ人オタクが艦これ聖地山を巡った話 第2話 神戸 摩耶タイ人オタクが艦これ聖地山を巡った話 第2話 神戸 摩耶
タイ人オタクが艦これ聖地山を巡った話 第2話 神戸 摩耶
 
タイ人オタクが艦これ聖地山を巡った話 第1話 京都 高雄~愛宕山
タイ人オタクが艦これ聖地山を巡った話 第1話 京都 高雄~愛宕山タイ人オタクが艦これ聖地山を巡った話 第1話 京都 高雄~愛宕山
タイ人オタクが艦これ聖地山を巡った話 第1話 京都 高雄~愛宕山
 
สาเหตุที่ไม่ควรเอา JLPT N1...N2.... มาเป็นจุดเป้าหมายในการเรียนภาษาญี่ปุ่น
สาเหตุที่ไม่ควรเอา JLPT N1...N2.... มาเป็นจุดเป้าหมายในการเรียนภาษาญี่ปุ่นสาเหตุที่ไม่ควรเอา JLPT N1...N2.... มาเป็นจุดเป้าหมายในการเรียนภาษาญี่ปุ่น
สาเหตุที่ไม่ควรเอา JLPT N1...N2.... มาเป็นจุดเป้าหมายในการเรียนภาษาญี่ปุ่น
 
タイ人オタクが日本でモバイルゲーム制作を諦めた経緯の話
タイ人オタクが日本でモバイルゲーム制作を諦めた経緯の話タイ人オタクが日本でモバイルゲーム制作を諦めた経緯の話
タイ人オタクが日本でモバイルゲーム制作を諦めた経緯の話
 
เรื่องเกี่ยวกับ โรงเรียนวิชาชีพ ในญี่ปุ่น
เรื่องเกี่ยวกับ โรงเรียนวิชาชีพ ในญี่ปุ่นเรื่องเกี่ยวกับ โรงเรียนวิชาชีพ ในญี่ปุ่น
เรื่องเกี่ยวกับ โรงเรียนวิชาชีพ ในญี่ปุ่น
 
Idol Master Platinum Stars アイマス プラチナスターズ Game Review
Idol Master Platinum Stars アイマス プラチナスターズ Game ReviewIdol Master Platinum Stars アイマス プラチナスターズ Game Review
Idol Master Platinum Stars アイマス プラチナスターズ Game Review
 
Ram is not RAM
Ram is not RAMRam is not RAM
Ram is not RAM
 

Read mepdf v3_0_08_damagingcontrol

  • 1. Damaging Control Last Updated in 2.5 UnitStatus, DestroyableObject, and anything that can be dealt damage to share Interface DealDamage_Interface Anything that can receive damage Send Attack Data Anything that can deal Damage Receive Feedback What the Defender do with Attack Data is dependent on their own class
  • 2. Damage Calculation Last Updated in 2.5 Damage Calculation for Unit is done in DamageControl_CustomClasses.cs , DamageAngleHitData ,CalcTotalDamage() By Default, it does the following Get Attacker Damage Value and Element Calculate final Damage Value YES Compare to Resistance of related Element See if Guarding was successful or not
  • 3. Hit Direction Last Updated in 2.5 Ignoring Y-Axis, If a Unit got Attacked, it will find out where the Attack originated based from its horizontal orientation. Front = 315-360, 0- 45 Right = 45-135 Back = 135-225 Left = 225-315 These were then used to determine which Damaging Motion to blend to
  • 4. Successful Guarding Last Updated in 2.5 If the Unit is Guarding, depending from where the attack originated, Guard Range determine whether Guarding is successful or not 90degree, 45to the right and 45to the left = Success 315-360, 0-45 = Success 120degree, 60to the right and 60to the left = Success 300-360, 0-60 = Success If Guarding is Successful, the Damage is reduced by the Percentage in GuardDamageCutPercentage
  • 5. Power Defence Level Last Updated in 2.5 Power Level represent how powerful the Attack is, For example, a Sword might have a base Power of 0. While an Axe would be 1. And The Powerful Cannon is 5. From the Attacker, it is equal to Weapon’s Power + Motion’s Power For the Defender, it is determined by UnitStatus’ PowerDefenceLevel This value will be +1 when successful guarding is also made
  • 6. Got Hit Motion Last Updated in 2.5 Which Motion will the Unit blend to, is determined by Power Difference of the Attacker and Defender ATK < DEF, Stick ATK0, Guarding DEF1, Attacker lost stance, Attacker Cancel Attack Stick ATK0, Armor DEF1,motion will not get affected. ATK == DEF, Sword ATK1, Guarding DEF1, Nothing Happen Sword ATK1, Armor DEF1, Unit will blend to got hit motion. Defender Cancel Attack ATK > DEF by 1, Hammer ATK2, Guarding DEF1, blend to Guard Break Motion Hammer ATK2, Armor DEF1, Unit will got blown away. ATK > DEF by 2 or more, Cannon ATK3, Guarding DEF1, Unit will got blown away. Cannon ATK3, Armor DEF1, Unit will got blown away.
  • 7. Force Last Updated in 2.5 Force is the value that the Defender will got pushed away from the Attacker. Total value is determined by Weapon’s Force * Motion’s Force **WARNING** If either value is 0, the Defender will never be push away AddForce Attack
  • 8. Getup input Last Updated in 2.5 If the Attack is really Powerful, thus that Defender got blown away, the Unit will enter “Downing” State after reaching Ground. Inside Input, anything that return true in GetUp() will make the Unit stand up.
  • 9. Getup Attack Last Updated in 2.5 While in Downing State, if GetUpAttack() input was made instead, The Unit will do GetUp Attack
  • 10. Getup Attack Last Updated in 2.5 Element0 is reserved for when Unit is facing upward Element1 is reserved for when Unit is facing downward To be precise, this is determined by which direction spineBone is facing