Difference between revisions of "Combat h"
From Dragon Age Toolset Wiki
Mouser9169 (Talk | contribs) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | The [[combat_h]] include file holds the combat resolution logic for the tactic game. | |
− | + | Item specific functions are included from [[items_h]]. Damage specific functions (such as attack damage calculations and resists) are included from [[combat_damage_h]] | |
− | [[items_h]] | + | |
− | [[combat_damage_h]] | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | === | + | Be aware that this is a core game resource - any change to this file has the potential to wreck the combat system so handle with care. |
+ | |||
+ | == References == | ||
+ | |||
+ | * [[2da_constants_h]] | ||
+ | * [[effects_h]] | ||
+ | * [[combat_damage_h]] | ||
+ | * [[items_h]] | ||
+ | * [[stats_core_h]] | ||
+ | * [[sys_soundset_h]] | ||
+ | * [[ui_h]] | ||
+ | |||
+ | == Constants == | ||
<dascript> | <dascript> | ||
const float ATTACK_LOOP_DURATION_INVALID = 999.0f; | const float ATTACK_LOOP_DURATION_INVALID = 999.0f; | ||
+ | |||
+ | // General bias in the system towards hits instead of misses. | ||
const float ATTACK_HIT_BIAS = 4.0f; | const float ATTACK_HIT_BIAS = 4.0f; | ||
− | |||
const int ATTACK_TYPE_MELEE = 1; | const int ATTACK_TYPE_MELEE = 1; | ||
const int ATTACK_TYPE_RANGED = 2; | const int ATTACK_TYPE_RANGED = 2; | ||
+ | // at this % of health, any meelee attack may trigger the deathblow of special bosses; | ||
const float SPECIAL_BOSS_DEATHBLOW_THRESHOLD = 0.04; | const float SPECIAL_BOSS_DEATHBLOW_THRESHOLD = 0.04; | ||
− | |||
− | |||
// Point blank range (no penalty range for bows) | // Point blank range (no penalty range for bows) | ||
− | |||
const float POINT_BLANK_RANGE = 8.0f; | const float POINT_BLANK_RANGE = 8.0f; | ||
</dascript> | </dascript> | ||
+ | == Structs == | ||
− | + | <DynamicPageList> | |
− | < | + | category = Structs from combat_h |
− | + | order = ascending | |
− | + | ordermethod = sortkey | |
− | + | </DynamicPageList> | |
− | + | == Functions == | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | </ | + | |
− | + | ||
− | + | <DynamicPageList> | |
+ | category = Functions from combat_h | ||
+ | order = ascending | ||
+ | ordermethod = sortkey | ||
+ | </DynamicPageList> | ||
− | [[ | + | [[Category:Include files from Core Game Resources]][[Category:Include files]] |
− | + | ||
− | [[ | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | Category: | + |
Latest revision as of 15:30, 7 August 2011
The combat_h include file holds the combat resolution logic for the tactic game.
Item specific functions are included from items_h. Damage specific functions (such as attack damage calculations and resists) are included from combat_damage_h
Be aware that this is a core game resource - any change to this file has the potential to wreck the combat system so handle with care.
Contents
References
Constants
const float ATTACK_LOOP_DURATION_INVALID = 999.0f; // General bias in the system towards hits instead of misses. const float ATTACK_HIT_BIAS = 4.0f; const int ATTACK_TYPE_MELEE = 1; const int ATTACK_TYPE_RANGED = 2; // at this % of health, any meelee attack may trigger the deathblow of special bosses; const float SPECIAL_BOSS_DEATHBLOW_THRESHOLD = 0.04; // Point blank range (no penalty range for bows) const float POINT_BLANK_RANGE = 8.0f;
Structs
Functions
- CheckForDeathblow
- Combat CheckBackStab
- Combat GetAttackHand
- Combat GetAttackResult
- Combat GetAttackType
- Combat GetFlankingBonus
- Combat GetValidDeathblow
- Combat HandleAbilityAttackImpact
- Combat HandleAttackImpact
- Combat HandleCommandAttack
- Combat HandleCreatureDisappear
- Combat PerformAttack
- IsCombatHit