mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-24 05:38:15 +01:00
[MIRROR] Adds Compactor Energy Net Gun (for shrinky funsies) (#11525)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
This commit is contained in:
co-authored by
Heroman3003
parent
442c592e47
commit
a596f22378
@@ -135,3 +135,23 @@
|
||||
else //Just unbuckled someone
|
||||
M.can_pull_size = initial(M.can_pull_size)
|
||||
qdel(src)
|
||||
|
||||
/obj/item/energy_net/shrink
|
||||
name = "compactor energy net"
|
||||
desc = "It's a net made of cyan energy."
|
||||
icon_state = "shrinkenergynet"
|
||||
net_type = /obj/effect/energy_net/shrink
|
||||
|
||||
/obj/effect/energy_net/shrink
|
||||
name = "compactor energy net"
|
||||
desc = "It's a net made of cyan energy."
|
||||
icon_state = "shrinkenergynet"
|
||||
|
||||
var/size_increment = 0.01
|
||||
|
||||
/obj/effect/energy_net/shrink/process()
|
||||
..()
|
||||
for(var/A in buckled_mobs)
|
||||
if(istype(A, /mob/living))
|
||||
var/mob/living/L = A
|
||||
L.resize((L.size_multiplier - size_increment), uncapped = L.has_large_resize_bounds(), aura_animation = FALSE)
|
||||
|
||||
@@ -41,3 +41,10 @@
|
||||
icon_state = "[modifystate]"
|
||||
else
|
||||
icon_state = "[initial(icon_state)]"
|
||||
|
||||
/obj/item/gun/energy/netgun/shrink
|
||||
name = "compactor energy net gun"
|
||||
desc = "A customized version of the famous \"Varmint Catcher\", this \"Varmint Compactor\" is designed to reduce the captured targets to a much more manageable size."
|
||||
icon_state = "shrinknetgun"
|
||||
|
||||
projectile_type = /obj/item/projectile/beam/energy_net/shrink
|
||||
|
||||
@@ -567,6 +567,8 @@
|
||||
hud_state = "flame_green"
|
||||
hud_state_empty = "flame_empty"
|
||||
|
||||
var/net_type = /obj/item/energy_net
|
||||
|
||||
muzzle_type = /obj/effect/projectile/muzzle/xray
|
||||
tracer_type = /obj/effect/projectile/tracer/xray
|
||||
impact_type = /obj/effect/projectile/impact/xray
|
||||
@@ -576,9 +578,25 @@
|
||||
..()
|
||||
|
||||
/obj/item/projectile/beam/energy_net/proc/do_net(var/mob/M)
|
||||
var/obj/item/energy_net/net = new (get_turf(M))
|
||||
var/obj/item/energy_net/net = new net_type(get_turf(M))
|
||||
net.throw_impact(M)
|
||||
|
||||
//
|
||||
// Shrinking Energy Net
|
||||
//
|
||||
/obj/item/projectile/beam/energy_net/shrink
|
||||
name = "compactor energy net projection"
|
||||
icon_state = "omnilaser"
|
||||
light_color = "#00CC33"
|
||||
hud_state = "flame_blue"
|
||||
hud_state_empty = "flame_empty"
|
||||
|
||||
net_type = /obj/item/energy_net/shrink
|
||||
|
||||
muzzle_type = /obj/effect/projectile/muzzle/laser_omni
|
||||
tracer_type = /obj/effect/projectile/tracer/laser_omni
|
||||
impact_type = /obj/effect/projectile/impact/laser_omni
|
||||
|
||||
//
|
||||
// Healing Beam
|
||||
//
|
||||
|
||||
@@ -369,6 +369,18 @@
|
||||
)
|
||||
departmental_flags = DEPARTMENT_BITFLAG_SECURITY | DEPARTMENT_BITFLAG_SCIENCE
|
||||
|
||||
/datum/design_techweb/sizenetgun
|
||||
name = "Varmint Compactor"
|
||||
desc = "The \"Varmint Compactor\" is an energy net projector designed to immobilize its targets while simultaneously reducing them to a more manageable size."
|
||||
id = "sizenetgun"
|
||||
build_type = PROTOLATHE
|
||||
materials = list(MAT_STEEL = 6000, MAT_GLASS = 4000)
|
||||
build_path = /obj/item/gun/energy/netgun
|
||||
category = list(
|
||||
RND_CATEGORY_WEAPONS + RND_SUBCATEGORY_WEAPONS_RANGED
|
||||
)
|
||||
departmental_flags = DEPARTMENT_BITFLAG_SECURITY | DEPARTMENT_BITFLAG_SCIENCE
|
||||
|
||||
// Misc weapons
|
||||
|
||||
/datum/design_techweb/pummeler
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
prereq_ids = list(TECHWEB_NODE_SEC_EQUIP)
|
||||
design_ids = list(
|
||||
"netgun",
|
||||
"sizenetgun",
|
||||
"sickshot",
|
||||
"pummeler",
|
||||
"protector",
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 447 KiB After Width: | Height: | Size: 450 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 63 KiB |
Reference in New Issue
Block a user