code/__DEFINES/combat.dm ![code/__DEFINES/combat.dm0](git.png)
BRUTE | Physical fracturing and warping of the material. |
---|---|
BURN | Scorching and charring of the material. |
TOX | Poisoning. Mostly caused by reagents. |
OXY | Suffocation. |
STAMINA | Exhaustion and nonlethal damage. |
BRAIN | Brain damage. Should probably be decommissioned and replaced with proper organ damage. |
ACID | Involves corrosive substances. |
BIO | Involved in checking whether a disease can infect or spread. Also involved in xeno neurotoxin. |
BOMB | Involves a shockwave, usually from an explosion. |
BULLET | Involves a solid projectile. |
CONSUME | Involves being eaten |
ENERGY | Involves an EMP or energy-based projectile. |
FIRE | Involves fire or temperature extremes. |
LASER | Involves a laser. |
MELEE | Involves a melee attack or a thrown object. |
WOUND | Involved in checking the likelihood of applying a wound to a mob. |
ARMOR_LIST_DAMAGE | Armor values that are used for damage |
ARMOR_LIST_DURABILITY | Armor values that are used for durability |
ARMOR_LIST_ALL | All armors, preferable in the order as seen above |
CANSTUN | If set, this mob can be stunned. |
CANKNOCKDOWN | If set, this mob can be knocked down (or stamcrit) |
CANUNCONSCIOUS | If set, this mob can be knocked unconscious via status effect. NOTE, does not mean immune to sleep. Unconscious and sleep are two different things. NOTE, does not relate to the unconscious stat either. Only the status effect. |
CANPUSH | If set, this mob can be grabbed or pushed when bumped into |
MELEE_ATTACK | Attack was made with a melee weapon |
UNARMED_ATTACK | Attack is a punch or kick. Mob attacks are not classified as unarmed (currently). |
PROJECTILE_ATTACK | A projectile is hitting us. |
THROWN_PROJECTILE_ATTACK | A thrown item is hitting us. |
LEAP_ATTACK | We're being tackled or leaped at. |
GET_ASSAILANT | Used in check block to get what mob is attacking the blocker. |
ATTACK_ANIMATION_SLASH | Attack animation for sharp items |
ATTACK_ANIMATION_PIERCE | Attack animation for pointy items |
ATTACK_ANIMATION_BLUNT | Animation for blunt attacks |
EMBED_THROWSPEED_THRESHOLD | The minimum value of an item's throw_speed for it to embed (Unless it has embedded_ignore_throwspeed_threshold set to 1) |
EMBED_CHANCE_SPEED_BONUS | For thrown embedding weapons, every extra speed it's thrown at above its normal throwspeed will add this to the embed chance |
WEAPON_LIGHT | Default normal ol' gun. Akimboable, one handed. |
WEAPON_MEDIUM | Can't be used akimbo, but only needs one hand to fire |
WEAPON_HEAVY | Can't be used akimbo, and needs two hands to fire |
BOLT_TYPE_STANDARD | Gun has a bolt, it stays closed while not cycling. The gun must be racked to have a bullet chambered when a mag is inserted. Example: c20, shotguns, m90 |
BOLT_TYPE_OPEN | Gun has a bolt, it is open when ready to fire. The gun can never have a chambered bullet with no magazine, but the bolt stays ready when a mag is removed. Example: Tomson, Uzi, the L6 SAW |
BOLT_TYPE_NO_BOLT | Gun has no moving bolt mechanism, it cannot be racked. Also dumps the entire contents when emptied instead of a magazine. Example: Break action shotguns, revolvers |
BOLT_TYPE_LOCKING | Gun has a bolt, it locks back when empty. It can be released to chamber a round if a magazine is in. Example: Pistols with a slide lock, some SMGs |
SAWN_OFF_ACC_PENALTY | accuracy penalty of sawn off guns |
SAWN_OFF_RECOIL | added recoil of sawn off guns |
AMMO_BOX_ONE_SPRITE | ammo box will always use provided icon state |
AMMO_BOX_PER_BULLET | ammo box will have a different state for each bullet; <icon_state>- |
AMMO_BOX_FULL_EMPTY | Ammo box will have a different sprite for any ammo at all, and no ammo, <icon_state>-full <icon_state>-empty |
SUPPRESSED_QUIET | standard suppressed |
SUPPRESSED_VERY | no message |
EXPLODE_GIB_THRESHOLD | ex_act() with EXPLODE_DEVASTATE severity will gib mobs with less than this much bomb armor |
CARBON_MAX_IMPACT_SPEED_BONUS | If a carbon is thrown at a speed faster than normal and impacts something solid, they take extra damage for every extra speed up to this number (see [/mob/living/carbon/proc/throw_impact]) |
SECONDARY_ATTACK_CALL_NORMAL | Alternate attack defines. Return these at the end of procs like afterattack_secondary. Calls the normal attack proc. For example, if returned in afterattack_secondary, will call afterattack. Will continue the chain depending on the return value of the non-alternate proc, like with normal attacks. |
SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN | Cancels the attack chain entirely. |
SECONDARY_ATTACK_CONTINUE_CHAIN | Proceed with the attack chain, but don't call the normal methods. |
AUTOFIRE_STAT_IDLE | Compatible firemode is in the gun. Wait until it's held in the user hands. |
AUTOFIRE_STAT_ALERT | Gun is active and in the user hands. Wait until user does a valid click. |
AUTOFIRE_STAT_FIRING | Gun is shooting. |
MARTIAL_ATTACK_INVALID | Martial arts attack requested but is not available, allow a check for a regular attack. |
MARTIAL_ATTACK_FAIL | Martial arts attack happened but failed, do not allow a check for a regular attack. |
MARTIAL_ATTACK_SUCCESS | Martial arts attack happened and succeeded, do not allow a check for a regular attack. |
ARMOR_WEAKENED_MULTIPLIER | IF an object is weak against armor, this is the value that any present armor is multiplied by |
ARMOR_MAX_BLOCK | Armor can't block more than this as a percentage |
PENETRATE_ARMOUR | Calculates the new armour value after armour penetration. Can return negative values, and those must be caught. |
BATON_DO_NORMAL_ATTACK | Return values used in item/melee/baton/baton_attack. Does a normal item attack. |
BATON_ATTACK_DONE | The attack has been stopped. Either because the user was clumsy or the attack was blocked. |
BATON_ATTACKING | The baton attack is still going. baton_effect() is called. |
LEFT_ATTACK | LMB Attack |
RIGHT_ATTACK | RMB Attack |
COMBO_STEPS | Steps for the combo |
COMBO_PROC | The proc the combo calls |
SHOVE_CAN_MOVE | Checks If the target can be moved at all by shoving them |
SHOVE_CAN_HIT_SOMETHING | If the target can be shoved into something something with perhaps special interactions. |
SHOVE_KNOCKDOWN_BLOCKED | Keeps knockdowns at bay for the target |
SHOVE_CAN_KICK_SIDE | If the target can be briefly paralized by shoving them once again after knocking them down. |
SHOVE_CAN_STAGGER | Whether the staggered status effect can be applied on the target |
SHOVE_BLOCKED | If the target could move, but didn't because there's an obstacle in the path. |
SHOVE_DIRECTIONAL_BLOCKED | If the obstacle is an object at the border of the turf (so no signal from being sent to the other turf) |
STAMCRIT_CANCELLED | Bitfield returned by listeners for COMSIG_LIVING_ENTER_STAMCRIT when they perform some action that prevents a mob going into stamcrit. |
DEATHMATCH_NOT_PLAYING | Deathmatch lobby current status |
JOULES_PER_DAMAGE | The amount of energy needed to increase the burn force by 1 damage during electrocution. |
ELECTROCUTE_DAMAGE | Calculates the amount of burn force when applying this much energy to a mob via electrocution from an energy source. |
Define Details
ACID ![code/__DEFINES/combat.dm 22](git.png)
Involves corrosive substances.
AMMO_BOX_FULL_EMPTY ![code/__DEFINES/combat.dm 229](git.png)
Ammo box will have a different sprite for any ammo at all, and no ammo, <icon_state>-full <icon_state>-empty
AMMO_BOX_ONE_SPRITE ![code/__DEFINES/combat.dm 225](git.png)
ammo box will always use provided icon state
AMMO_BOX_PER_BULLET ![code/__DEFINES/combat.dm 227](git.png)
ammo box will have a different state for each bullet; <icon_state>-
ARMOR_LIST_ALL ![code/__DEFINES/combat.dm 51](git.png)
All armors, preferable in the order as seen above
ARMOR_LIST_DAMAGE ![code/__DEFINES/combat.dm 45](git.png)
Armor values that are used for damage
ARMOR_LIST_DURABILITY ![code/__DEFINES/combat.dm 48](git.png)
Armor values that are used for durability
ARMOR_MAX_BLOCK ![code/__DEFINES/combat.dm 324](git.png)
Armor can't block more than this as a percentage
ARMOR_WEAKENED_MULTIPLIER ![code/__DEFINES/combat.dm 322](git.png)
IF an object is weak against armor, this is the value that any present armor is multiplied by
ATTACK_ANIMATION_BLUNT ![code/__DEFINES/combat.dm 163](git.png)
Animation for blunt attacks
ATTACK_ANIMATION_PIERCE ![code/__DEFINES/combat.dm 161](git.png)
Attack animation for pointy items
ATTACK_ANIMATION_SLASH ![code/__DEFINES/combat.dm 159](git.png)
Attack animation for sharp items
AUTOFIRE_STAT_ALERT ![code/__DEFINES/combat.dm 303](git.png)
Gun is active and in the user hands. Wait until user does a valid click.
AUTOFIRE_STAT_FIRING ![code/__DEFINES/combat.dm 305](git.png)
Gun is shooting.
AUTOFIRE_STAT_IDLE ![code/__DEFINES/combat.dm 301](git.png)
Compatible firemode is in the gun. Wait until it's held in the user hands.
BATON_ATTACKING ![code/__DEFINES/combat.dm 334](git.png)
The baton attack is still going. baton_effect() is called.
BATON_ATTACK_DONE ![code/__DEFINES/combat.dm 332](git.png)
The attack has been stopped. Either because the user was clumsy or the attack was blocked.
BATON_DO_NORMAL_ATTACK ![code/__DEFINES/combat.dm 330](git.png)
Return values used in item/melee/baton/baton_attack. Does a normal item attack.
BIO ![code/__DEFINES/combat.dm 24](git.png)
Involved in checking whether a disease can infect or spread. Also involved in xeno neurotoxin.
BOLT_TYPE_LOCKING ![code/__DEFINES/combat.dm 216](git.png)
Gun has a bolt, it locks back when empty. It can be released to chamber a round if a magazine is in. Example: Pistols with a slide lock, some SMGs
BOLT_TYPE_NO_BOLT ![code/__DEFINES/combat.dm 213](git.png)
Gun has no moving bolt mechanism, it cannot be racked. Also dumps the entire contents when emptied instead of a magazine. Example: Break action shotguns, revolvers
BOLT_TYPE_OPEN ![code/__DEFINES/combat.dm 210](git.png)
Gun has a bolt, it is open when ready to fire. The gun can never have a chambered bullet with no magazine, but the bolt stays ready when a mag is removed. Example: Tomson, Uzi, the L6 SAW
BOLT_TYPE_STANDARD ![code/__DEFINES/combat.dm 207](git.png)
Gun has a bolt, it stays closed while not cycling. The gun must be racked to have a bullet chambered when a mag is inserted. Example: c20, shotguns, m90
BOMB ![code/__DEFINES/combat.dm 26](git.png)
Involves a shockwave, usually from an explosion.
BRAIN ![code/__DEFINES/combat.dm 17](git.png)
Brain damage. Should probably be decommissioned and replaced with proper organ damage.
BRUTE ![code/__DEFINES/combat.dm 7](git.png)
Physical fracturing and warping of the material.
BULLET ![code/__DEFINES/combat.dm 28](git.png)
Involves a solid projectile.
BURN ![code/__DEFINES/combat.dm 9](git.png)
Scorching and charring of the material.
CANKNOCKDOWN ![code/__DEFINES/combat.dm 72](git.png)
If set, this mob can be knocked down (or stamcrit)
CANPUSH ![code/__DEFINES/combat.dm 78](git.png)
If set, this mob can be grabbed or pushed when bumped into
CANSTUN ![code/__DEFINES/combat.dm 70](git.png)
If set, this mob can be stunned.
CANUNCONSCIOUS ![code/__DEFINES/combat.dm 76](git.png)
If set, this mob can be knocked unconscious via status effect. NOTE, does not mean immune to sleep. Unconscious and sleep are two different things. NOTE, does not relate to the unconscious stat either. Only the status effect.
CARBON_MAX_IMPACT_SPEED_BONUS ![code/__DEFINES/combat.dm 286](git.png)
If a carbon is thrown at a speed faster than normal and impacts something solid, they take extra damage for every extra speed up to this number (see [/mob/living/carbon/proc/throw_impact])
COMBO_PROC ![code/__DEFINES/combat.dm 344](git.png)
The proc the combo calls
COMBO_STEPS ![code/__DEFINES/combat.dm 342](git.png)
Steps for the combo
CONSUME ![code/__DEFINES/combat.dm 30](git.png)
Involves being eaten
DEATHMATCH_NOT_PLAYING ![code/__DEFINES/combat.dm 365](git.png)
Deathmatch lobby current status
ELECTROCUTE_DAMAGE ![code/__DEFINES/combat.dm 372](git.png)
Calculates the amount of burn force when applying this much energy to a mob via electrocution from an energy source.
EMBED_CHANCE_SPEED_BONUS ![code/__DEFINES/combat.dm 191](git.png)
For thrown embedding weapons, every extra speed it's thrown at above its normal throwspeed will add this to the embed chance
EMBED_THROWSPEED_THRESHOLD ![code/__DEFINES/combat.dm 189](git.png)
The minimum value of an item's throw_speed for it to embed (Unless it has embedded_ignore_throwspeed_threshold set to 1)
ENERGY ![code/__DEFINES/combat.dm 32](git.png)
Involves an EMP or energy-based projectile.
EXPLODE_GIB_THRESHOLD ![code/__DEFINES/combat.dm 247](git.png)
ex_act() with EXPLODE_DEVASTATE severity will gib mobs with less than this much bomb armor
FIRE ![code/__DEFINES/combat.dm 34](git.png)
Involves fire or temperature extremes.
GET_ASSAILANT ![code/__DEFINES/combat.dm 144](git.png)
Used in check block to get what mob is attacking the blocker.
JOULES_PER_DAMAGE ![code/__DEFINES/combat.dm 370](git.png)
The amount of energy needed to increase the burn force by 1 damage during electrocution.
LASER ![code/__DEFINES/combat.dm 36](git.png)
Involves a laser.
LEAP_ATTACK ![code/__DEFINES/combat.dm 141](git.png)
We're being tackled or leaped at.
LEFT_ATTACK ![code/__DEFINES/combat.dm 338](git.png)
LMB Attack
MARTIAL_ATTACK_FAIL ![code/__DEFINES/combat.dm 316](git.png)
Martial arts attack happened but failed, do not allow a check for a regular attack.
MARTIAL_ATTACK_INVALID ![code/__DEFINES/combat.dm 313](git.png)
Martial arts attack requested but is not available, allow a check for a regular attack.
MARTIAL_ATTACK_SUCCESS ![code/__DEFINES/combat.dm 319](git.png)
Martial arts attack happened and succeeded, do not allow a check for a regular attack.
MELEE ![code/__DEFINES/combat.dm 38](git.png)
Involves a melee attack or a thrown object.
MELEE_ATTACK ![code/__DEFINES/combat.dm 132](git.png)
Attack was made with a melee weapon
OXY ![code/__DEFINES/combat.dm 13](git.png)
Suffocation.
PENETRATE_ARMOUR ![code/__DEFINES/combat.dm 326](git.png)
Calculates the new armour value after armour penetration. Can return negative values, and those must be caught.
PROJECTILE_ATTACK ![code/__DEFINES/combat.dm 137](git.png)
A projectile is hitting us.
RIGHT_ATTACK ![code/__DEFINES/combat.dm 340](git.png)
RMB Attack
SAWN_OFF_ACC_PENALTY ![code/__DEFINES/combat.dm 219](git.png)
accuracy penalty of sawn off guns
SAWN_OFF_RECOIL ![code/__DEFINES/combat.dm 221](git.png)
added recoil of sawn off guns
SECONDARY_ATTACK_CALL_NORMAL ![code/__DEFINES/combat.dm 291](git.png)
Alternate attack defines. Return these at the end of procs like afterattack_secondary. Calls the normal attack proc. For example, if returned in afterattack_secondary, will call afterattack. Will continue the chain depending on the return value of the non-alternate proc, like with normal attacks.
SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN ![code/__DEFINES/combat.dm 294](git.png)
Cancels the attack chain entirely.
SECONDARY_ATTACK_CONTINUE_CHAIN ![code/__DEFINES/combat.dm 297](git.png)
Proceed with the attack chain, but don't call the normal methods.
SHOVE_BLOCKED ![code/__DEFINES/combat.dm 357](git.png)
If the target could move, but didn't because there's an obstacle in the path.
SHOVE_CAN_HIT_SOMETHING ![code/__DEFINES/combat.dm 349](git.png)
If the target can be shoved into something something with perhaps special interactions.
SHOVE_CAN_KICK_SIDE ![code/__DEFINES/combat.dm 353](git.png)
If the target can be briefly paralized by shoving them once again after knocking them down.
SHOVE_CAN_MOVE ![code/__DEFINES/combat.dm 347](git.png)
Checks If the target can be moved at all by shoving them
SHOVE_CAN_STAGGER ![code/__DEFINES/combat.dm 355](git.png)
Whether the staggered status effect can be applied on the target
SHOVE_DIRECTIONAL_BLOCKED ![code/__DEFINES/combat.dm 359](git.png)
If the obstacle is an object at the border of the turf (so no signal from being sent to the other turf)
SHOVE_KNOCKDOWN_BLOCKED ![code/__DEFINES/combat.dm 351](git.png)
Keeps knockdowns at bay for the target
STAMCRIT_CANCELLED ![code/__DEFINES/combat.dm 362](git.png)
Bitfield returned by listeners for COMSIG_LIVING_ENTER_STAMCRIT when they perform some action that prevents a mob going into stamcrit.
STAMINA ![code/__DEFINES/combat.dm 15](git.png)
Exhaustion and nonlethal damage.
SUPPRESSED_QUIET ![code/__DEFINES/combat.dm 232](git.png)
standard suppressed
SUPPRESSED_VERY ![code/__DEFINES/combat.dm 233](git.png)
no message
THROWN_PROJECTILE_ATTACK ![code/__DEFINES/combat.dm 139](git.png)
A thrown item is hitting us.
TOX ![code/__DEFINES/combat.dm 11](git.png)
Poisoning. Mostly caused by reagents.
UNARMED_ATTACK ![code/__DEFINES/combat.dm 135](git.png)
Attack is a punch or kick. Mob attacks are not classified as unarmed (currently).
WEAPON_HEAVY ![code/__DEFINES/combat.dm 199](git.png)
Can't be used akimbo, and needs two hands to fire
WEAPON_LIGHT ![code/__DEFINES/combat.dm 195](git.png)
Default normal ol' gun. Akimboable, one handed.
WEAPON_MEDIUM ![code/__DEFINES/combat.dm 197](git.png)
Can't be used akimbo, but only needs one hand to fire
WOUND ![code/__DEFINES/combat.dm 40](git.png)
Involved in checking the likelihood of applying a wound to a mob.