projectile_dampener ![code/datums/proximity_monitor/fields/projectile_dampener/projectile_dampener.dm 8](git.png)
Vars | |
bullet_effects | datum that holds the effects we apply on caught bullets |
---|---|
edgeturf_effects | list of all the visual effects we keep track of |
my_movable | atom that contains all the fields in its vis_contents |
new_bullet_overlay | overlay we apply to caught bullets |
Procs | |
add_effect_to_host | handles adding the visual effect's data |
catch_bullet_effect | a bullet has entered our field, apply the dampening effects to it |
determine_wobble | proc that applies the wobbly effect on point of bullet entry |
draw_corner | rendering the corners |
draw_edge | connecting the corners to one another |
draw_effect | rendering all the field visuals. first we render the corners, then we connect them |
release_bullet_effect | removing the effects after it has exited our field |
Var Details
bullet_effects ![code/datums/proximity_monitor/fields/projectile_dampener/projectile_dampener.dm 30](git.png)
datum that holds the effects we apply on caught bullets
edgeturf_effects ![code/datums/proximity_monitor/fields/projectile_dampener/projectile_dampener.dm 24](git.png)
list of all the visual effects we keep track of
my_movable ![code/datums/proximity_monitor/fields/projectile_dampener/projectile_dampener.dm 26](git.png)
atom that contains all the fields in its vis_contents
new_bullet_overlay ![code/datums/proximity_monitor/fields/projectile_dampener/projectile_dampener.dm 22](git.png)
overlay we apply to caught bullets
Proc Details
add_effect_to_host
handles adding the visual effect's data
catch_bullet_effect
a bullet has entered our field, apply the dampening effects to it
determine_wobble
proc that applies the wobbly effect on point of bullet entry
draw_corner
rendering the corners
draw_edge
connecting the corners to one another
draw_effect
rendering all the field visuals. first we render the corners, then we connect them
release_bullet_effect
removing the effects after it has exited our field