bullet_intercepting
Component which allows an equipped item to occasionally absorb a projectile.
Vars | |
active_slots | Slots in which effect can be active |
---|---|
block_chance | Chance to intercept a projectile |
block_charges | Number of things we can block before we delete ourself (stop being able to block) |
block_type | Type of bullet to intercept |
on_intercepted | Callback called when we catch a projectile |
wearer | Person currently wearing us |
Procs | |
on_parent_equipped | Called when item changes slots, check if we're in a valid location to take bullets |
on_unequipped | Called when item is unequipped, stop tracking bullets |
on_wearer_deleted | Called when wearer is deleted, stop tracking them |
on_wearer_shot | Called when wearer is shot, check if we're going to block the hit |
Var Details
active_slots
Slots in which effect can be active
block_chance
Chance to intercept a projectile
block_charges
Number of things we can block before we delete ourself (stop being able to block)
block_type
Type of bullet to intercept
on_intercepted
Callback called when we catch a projectile
wearer
Person currently wearing us
Proc Details
on_parent_equipped
Called when item changes slots, check if we're in a valid location to take bullets
on_unequipped
Called when item is unequipped, stop tracking bullets
on_wearer_deleted
Called when wearer is deleted, stop tracking them
on_wearer_shot
Called when wearer is shot, check if we're going to block the hit