Combat h
From Dragon Age Toolset Wiki
Revision as of 15:30, 7 August 2011 by Sunjammer (Talk | contribs) (Adding description (from script header), adding dynamic page lists, adding categories)
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