/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/projectiles.dm

PROJECTILE_PIERCE_NONEDefault behavior: hit and delete self
PROJECTILE_PIERCE_HITHit the thing but go through without deleting. Causes on_hit to be called with pierced = TRUE
PROJECTILE_PIERCE_PHASEEntirely phase through the thing without ever hitting.
CALIBER_A7MMThe caliber used by the L6 SAW.
CALIBER_46X30MMThe caliber used by the security auto-rifle.
CALIBER_9MMThe caliber used by the Nanotrasen Saber SMG and Type U3 Uzi. Also used as the default caliber for pistols but only the stechkin APS machine pistol doesn't override it.
CALIBER_160SMARTThe caliber used by smart SMG ammunition
CALIBER_10MMThe caliber used as the default for ballistic guns. Only not overridden for the surplus rifle.
CALIBER_357The caliber used by most revolver variants.
CALIBER_38The caliber used by the detective's revolver.
CALIBER_45The caliber used by the C-20r SMG, the tommygun, and the M1911 pistol.
CALIBER_50BMGThe caliber used by sniper rifles.
CALIBER_50AEThe caliber used by the desert eagle.
CALIBER_75The caliber used by the gyrojet pistol.
CALIBER_N762The caliber used by one revolver variant.
CALIBER_A223The caliber used by the the M-90gl Carbine, and NT-ARG 'Boarder'.
CALIBER_STRILKA310The caliber used by bolt action rifles.
CALIBER_SHOTGUNThe caliber used by shotguns.
CALIBER_40MMThe caliber used by grenade launchers.
CALIBER_84MMThe caliber used by rocket launchers.
CALIBER_LASERThe caliber used by laser guns.
CALIBER_ENERGYThe caliber used by most energy guns.
CALIBER_FOAMThe acliber used by foam force and donksoft toy guns.
CALIBER_ARROWThe caliber used by the bow and arrow.
CALIBER_HARPOONThe caliber used by the harpoon gun.
CALIBER_REBARThe caliber used by the rebar crossbow.
CALIBER_HOOKThe caliber used by the meat hook.
CALIBER_TENTACLEThe caliber used by the changeling tentacle mutation.
CALIBER_JUNKThe caliber used by pipeguns and pipe pistols
CALIBER_PEAThe caliber used by the (gatfruit) peashooter
GUNPOINT_SHOOTER_STRAY_RANGEFor gunpoints, how many tiles around the target the shooter can roam without losing their shot
PROJECTILE_DAMAGE_PER_ROBOTIC_SPARKA spark will be generated for each THIS amount of damage dealt to a robotic limb by a projectile.
STANDARD_ENERGY_GUN_SELF_CHARGE_RATEThe self charging rate of energy guns that magically recharge themselves, in watts.
LASER_SHOTSMacro to turn a number of laser shots into an energy cost, based on the above define e.g. LASER_SHOTS(12, STANDARD_CELL_CHARGE) means 12 shots
MAX_RANGE_HIT_PRONE_TARGETSHow far do the projectile hits the prone mob
PROJECTILE_IMPACT_DELETEQueued for impact deletion (simple qdel)
PROJECTILE_RANGE_DELETEQueued for range deletion (on_range call)
PROJECTILE_IMPACT_PASSEDProjectile either hasn't impacted anything, or pierced through the target
PROJECTILE_IMPACT_INTERRUPTEDProjectile has been "deleted" before bullet_act call has occured
PROJECTILE_IMPACT_SUCCESSFULProjectile has successfully impacted something and is scheduled for deletion
PROJECTILE_TRACER_DURATIONFor how long projectile tracers linger

Define Details

CALIBER_10MM

The caliber used as the default for ballistic guns. Only not overridden for the surplus rifle.

CALIBER_160SMART

The caliber used by smart SMG ammunition

CALIBER_357

The caliber used by most revolver variants.

CALIBER_38

The caliber used by the detective's revolver.

CALIBER_40MM

The caliber used by grenade launchers.

CALIBER_45

The caliber used by the C-20r SMG, the tommygun, and the M1911 pistol.

CALIBER_46X30MM

The caliber used by the security auto-rifle.

CALIBER_50AE

The caliber used by the desert eagle.

CALIBER_50BMG

The caliber used by sniper rifles.

CALIBER_75

The caliber used by the gyrojet pistol.

CALIBER_84MM

The caliber used by rocket launchers.

CALIBER_9MM

The caliber used by the Nanotrasen Saber SMG and Type U3 Uzi. Also used as the default caliber for pistols but only the stechkin APS machine pistol doesn't override it.

CALIBER_A223

The caliber used by the the M-90gl Carbine, and NT-ARG 'Boarder'.

CALIBER_A7MM

The caliber used by the L6 SAW.

CALIBER_ARROW

The caliber used by the bow and arrow.

CALIBER_ENERGY

The caliber used by most energy guns.

CALIBER_FOAM

The acliber used by foam force and donksoft toy guns.

CALIBER_HARPOON

The caliber used by the harpoon gun.

CALIBER_HOOK

The caliber used by the meat hook.

CALIBER_JUNK

The caliber used by pipeguns and pipe pistols

CALIBER_LASER

The caliber used by laser guns.

CALIBER_N762

The caliber used by one revolver variant.

CALIBER_PEA

The caliber used by the (gatfruit) peashooter

CALIBER_REBAR

The caliber used by the rebar crossbow.

CALIBER_SHOTGUN

The caliber used by shotguns.

CALIBER_STRILKA310

The caliber used by bolt action rifles.

CALIBER_TENTACLE

The caliber used by the changeling tentacle mutation.

GUNPOINT_SHOOTER_STRAY_RANGE

For gunpoints, how many tiles around the target the shooter can roam without losing their shot

LASER_SHOTS

Macro to turn a number of laser shots into an energy cost, based on the above define e.g. LASER_SHOTS(12, STANDARD_CELL_CHARGE) means 12 shots

MAX_RANGE_HIT_PRONE_TARGETS

How far do the projectile hits the prone mob

PROJECTILE_DAMAGE_PER_ROBOTIC_SPARK

A spark will be generated for each THIS amount of damage dealt to a robotic limb by a projectile.

PROJECTILE_IMPACT_DELETE

Queued for impact deletion (simple qdel)

PROJECTILE_IMPACT_INTERRUPTED

Projectile has been "deleted" before bullet_act call has occured

PROJECTILE_IMPACT_PASSED

Projectile either hasn't impacted anything, or pierced through the target

PROJECTILE_IMPACT_SUCCESSFUL

Projectile has successfully impacted something and is scheduled for deletion

PROJECTILE_PIERCE_HIT

Hit the thing but go through without deleting. Causes on_hit to be called with pierced = TRUE

PROJECTILE_PIERCE_NONE

Default behavior: hit and delete self

PROJECTILE_PIERCE_PHASE

Entirely phase through the thing without ever hitting.

PROJECTILE_RANGE_DELETE

Queued for range deletion (on_range call)

PROJECTILE_TRACER_DURATION

For how long projectile tracers linger

STANDARD_ENERGY_GUN_SELF_CHARGE_RATE

The self charging rate of energy guns that magically recharge themselves, in watts.