Difference between revisions of "Combat h"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (Adding description (from script header), adding dynamic page lists, adding categories)
m (moved Combat H to Combat h: Correcting case)
 
(No difference)

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.

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