mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 06:58:30 +01:00
Adds Bola Blaster (#19222)
* Adds Bola Blaster * Thick material blocks bolas
This commit is contained in:
@@ -282,13 +282,22 @@
|
||||
|
||||
/obj/item/projectile/bola/on_hit(var/atom/target, var/blocked = 0)
|
||||
if(ishuman(target))
|
||||
var/mob/living/carbon/human/M = target
|
||||
var/mob/living/carbon/human/human_target = target
|
||||
var/obj/item/handcuffs/legcuffs/bola/B = new(src.loc)
|
||||
if(!B.place_legcuffs(M,firer))
|
||||
for(var/obj/item/clothing/cloth in list(human_target.wear_suit, human_target.w_uniform, human_target.shoes)) //Check if we have a thick material covering our feet.
|
||||
if((cloth.body_parts_covered & FEET) && (cloth.item_flags & THICKMATERIAL))
|
||||
..()
|
||||
return
|
||||
if(!B.place_legcuffs(human_target,firer))
|
||||
if(B)
|
||||
qdel(B)
|
||||
..()
|
||||
|
||||
/obj/item/projectile/bola/energy
|
||||
name = "energy_bola"
|
||||
icon_state = "bola_energy"
|
||||
damage = 0
|
||||
|
||||
/obj/item/projectile/webball
|
||||
name = "ball of web"
|
||||
icon_state = "bola"
|
||||
|
||||
Reference in New Issue
Block a user