Skip to content

Commit

Permalink
disabler
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegoflores31 committed Oct 16, 2023
1 parent d04fbdb commit 3e5520a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions code/modules/projectiles/ammo_datums.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2274,10 +2274,17 @@
shell_speed = AMMO_SPEED_TIER_1 // Slightly faster
hit_effect_color = "#FFFF00"

/datum/ammo/energy/taser/on_hit_mob(mob/M, obj/projectile/P)
if(ishuman(M))
var/mob/living/carbon/human/H = M
H.disable_special_items() // Disables scout cloak
/datum/ammo/energy/taser/on_hit_mob(mob/morbius, obj/projectile/P)
if(ishuman(morbius))
var/mob/living/carbon/human/humanus = morbius
humanus.disable_special_items() // Disables scout cloak
if(!isyautja(humanus) && !issynth(humanus))
humanus.make_jittery(40)

if(isxeno(morbius))
var/mob/living/carbon/xenomorph/xenoids = morbius
xenoids.apply_effect(2, SLOW)
xenoids.xeno_jitter(1 SECONDS)

/datum/ammo/energy/taser/precise
name = "precise taser bolt"
Expand Down

0 comments on commit 3e5520a

Please sign in to comment.