mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
New Funny Sec gun (#7503)
This commit is contained in:
@@ -24,4 +24,14 @@
|
|||||||
)
|
)
|
||||||
cost = 250
|
cost = 250
|
||||||
containertype = /obj/structure/closet/crate/secure/gear
|
containertype = /obj/structure/closet/crate/secure/gear
|
||||||
containername = "PSG-P crate"
|
containername = "PSG-P crate"
|
||||||
|
|
||||||
|
/datum/supply_pack/security/rednetgun
|
||||||
|
name = "Experimental Capture Gun"
|
||||||
|
num_contained = 4
|
||||||
|
contains = list(
|
||||||
|
/obj/item/weapon/gun/energy/rednetgun
|
||||||
|
)
|
||||||
|
cost = 150
|
||||||
|
containertype = /obj/structure/closet/crate/secure/gear
|
||||||
|
containername = "Expirmental Capture crate"
|
||||||
@@ -1,9 +1,12 @@
|
|||||||
// prevent gun activation when stealth swimming. The low alpha hides you from NPC AI, which allows you to cheese mobs.
|
// prevent gun activation when stealth swimming. The low alpha hides you from NPC AI, which allows you to cheese mobs.
|
||||||
|
//Just adding onto this code for funny net gun
|
||||||
/obj/item/weapon/gun/special_check(var/mob/user)
|
/obj/item/weapon/gun/special_check(var/mob/user)
|
||||||
var/mob/living/L = user
|
var/mob/living/L = user
|
||||||
if(istype(L))
|
if(istype(L))
|
||||||
if(L.has_modifier_of_type(/datum/modifier/underwater_stealth))
|
if(L.has_modifier_of_type(/datum/modifier/underwater_stealth))
|
||||||
to_chat(user,"<span class='warning'>You cannot use guns whilst hiding underwater!</span>")
|
to_chat(user,"<span class='warning'>You cannot use guns whilst hiding underwater!</span>")
|
||||||
return 0
|
return 0
|
||||||
|
if(L.has_modifier_of_type(/datum/modifier/rednet))
|
||||||
|
to_chat(user,"<span class='warning'>Your gun refuses to fire!</span>")
|
||||||
|
return 0
|
||||||
return ..()
|
return ..()
|
||||||
|
|||||||
@@ -26,4 +26,31 @@
|
|||||||
/obj/item/projectile/energy/plasmastun/slow/on_hit(var/atom/target)
|
/obj/item/projectile/energy/plasmastun/slow/on_hit(var/atom/target)
|
||||||
if(isliving(target))
|
if(isliving(target))
|
||||||
var/mob/living/L = target
|
var/mob/living/L = target
|
||||||
L.add_modifier(/datum/modifier/entangled, 10 SECONDS)
|
L.add_modifier(/datum/modifier/entangled, 10 SECONDS)
|
||||||
|
|
||||||
|
|
||||||
|
/obj/item/weapon/gun/energy/rednetgun
|
||||||
|
name = "experimental capture gun"
|
||||||
|
desc = "An experimental gun, in efforts to expand net gun technology. Utilizing eletronic interferance and a \
|
||||||
|
heat aura it in theory stops the subject from fighting back."
|
||||||
|
icon_state = "goldstunrevolver"
|
||||||
|
item_state = null
|
||||||
|
projectile_type = /obj/item/projectile/energy/rednet
|
||||||
|
charge_cost = 1440 //so a taser has 15 shots at 480 and I want five but this feels goofy
|
||||||
|
|
||||||
|
|
||||||
|
/obj/item/projectile/energy/rednet
|
||||||
|
name = "expirmental energy net"
|
||||||
|
icon_state = "toxin"
|
||||||
|
damage = 0
|
||||||
|
check_armour = "energy"
|
||||||
|
hud_state = "pistol_tranq"
|
||||||
|
fire_sound = 'sound/weapons/Taser.ogg'
|
||||||
|
nodamage = 1
|
||||||
|
modifier_type_to_apply = /datum/modifier/rednet
|
||||||
|
modifier_duration = 0.5 MINUTE
|
||||||
|
speed = 1.5
|
||||||
|
|
||||||
|
/datum/modifier/rednet
|
||||||
|
mob_overlay_state = "red_electricity_constant"
|
||||||
|
slowdown = 1
|
||||||
Reference in New Issue
Block a user