mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-20 22:42:54 +00:00
* test * holdup * more guns * EVEN MORE CHANGES * fuck * eugh * actual shit editor, love DM * i think I just need inhands now * final review, test pr * ooops * holy shit * new maka * foamforce new makarov * this is going to be hell to review. is it? * AHHHHH * small melee fixes * GOD DAMN STAFF * as above * i thought i fixed you, also grip added to wt550 inhand * acutally deconflicts with the new camera pr, removes the new animated missle(rip) * some fixes * a bit more sprite cleaning * i am suffering * reverts 9mm * seemingly forgot a few * i think we're good now
19 lines
815 B
Plaintext
19 lines
815 B
Plaintext
/obj/item/melee/baton/cattleprod/teleprod
|
|
name = "teleprod"
|
|
desc = "A prod with a bluespace crystal on the end. The crystal doesn't look too fun to touch."
|
|
icon_state = "teleprod_nocell"
|
|
base_icon = "teleprod"
|
|
origin_tech = "combat=2;bluespace=4;materials=3"
|
|
|
|
/obj/item/melee/baton/cattleprod/teleprod/attack(mob/living/carbon/M, mob/living/carbon/user)//handles making things teleport when hit
|
|
..()
|
|
if(!turned_on)
|
|
return
|
|
if(HAS_TRAIT(user, TRAIT_CLUMSY) && prob(50))
|
|
user.visible_message("<span class='danger'>[user] accidentally hits [user.p_them()]self with [src]!</span>",
|
|
"<span class='userdanger'>You accidentally hit yourself with [src]!</span>")
|
|
deductcharge(hitcost)
|
|
do_teleport(user, get_turf(user), 50)//honk honk
|
|
else if(iscarbon(M) && !M.anchored)
|
|
do_teleport(M, get_turf(M), 15)
|