mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Merge pull request #6772 from Kyep/mech_weapons
Ports tesla mech gun, also adds xray/immolator guns
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
add_req_access = 0
|
||||
internal_damage_threshold = 25
|
||||
force = 45
|
||||
max_equip = 4
|
||||
max_equip = 5
|
||||
|
||||
|
||||
/obj/mecha/combat/marauder/loaded/New()
|
||||
@@ -30,6 +30,8 @@
|
||||
ME.attach(src)
|
||||
ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack
|
||||
ME.attach(src)
|
||||
ME = new /obj/item/mecha_parts/mecha_equipment/weapon/energy/xray(src)
|
||||
ME.attach(src)
|
||||
ME = new /obj/item/mecha_parts/mecha_equipment/tesla_energy_relay(src)
|
||||
ME.attach(src)
|
||||
ME = new /obj/item/mecha_parts/mecha_equipment/antiproj_armor_booster(src)
|
||||
@@ -47,8 +49,8 @@
|
||||
health = 550
|
||||
wreckage = /obj/effect/decal/mecha_wreckage/seraph
|
||||
internal_damage_threshold = 20
|
||||
force = 55
|
||||
max_equip = 5
|
||||
force = 80
|
||||
max_equip = 8
|
||||
|
||||
/obj/mecha/combat/marauder/seraph/add_cell()
|
||||
cell = new /obj/item/weapon/stock_parts/cell/bluespace(src)
|
||||
@@ -62,9 +64,11 @@
|
||||
for(ME in equipment)
|
||||
equipment -= ME
|
||||
qdel(ME)
|
||||
ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/scattershot(src)
|
||||
ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack/heavy(src)
|
||||
ME.attach(src)
|
||||
ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack(src)
|
||||
ME = new /obj/item/mecha_parts/mecha_equipment/weapon/energy/xray/triple(src)
|
||||
ME.attach(src)
|
||||
ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/lmg/dual(src)
|
||||
ME.attach(src)
|
||||
ME = new /obj/item/mecha_parts/mecha_equipment/teleporter/precise(src)
|
||||
ME.attach(src)
|
||||
@@ -73,6 +77,7 @@
|
||||
ME = new /obj/item/mecha_parts/mecha_equipment/antiproj_armor_booster(src)
|
||||
ME.attach(src)
|
||||
|
||||
|
||||
/obj/mecha/combat/marauder/mauler
|
||||
desc = "Heavy-duty, combat exosuit, developed off of the existing Marauder model."
|
||||
name = "Mauler"
|
||||
|
||||
@@ -68,12 +68,18 @@
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/energy/laser
|
||||
equip_cooldown = 8
|
||||
name = "CH-PS \"Immolator\" Laser"
|
||||
name = "CH-PS \"Firedart\" Laser"
|
||||
icon_state = "mecha_laser"
|
||||
energy_drain = 30
|
||||
projectile = /obj/item/projectile/beam
|
||||
fire_sound = 'sound/weapons/Laser.ogg'
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/energy/laser/disabler
|
||||
name = "CH-PD Disabler"
|
||||
projectile = /obj/item/projectile/beam/disabler
|
||||
projectiles_per_shot = 2
|
||||
projectile_delay = 1
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/energy/laser/heavy
|
||||
equip_cooldown = 10
|
||||
name = "CH-LC \"Solaris\" Laser Cannon"
|
||||
@@ -90,6 +96,41 @@
|
||||
projectile = /obj/item/projectile/ion
|
||||
fire_sound = 'sound/weapons/Laser.ogg'
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/energy/tesla
|
||||
equip_cooldown = 35
|
||||
name = "P-X Tesla Cannon"
|
||||
desc = "A weapon for combat exosuits. Fires bolts of electricity similar to the experimental tesla engine"
|
||||
icon_state = "mecha_laser"
|
||||
origin_tech = "materials=4;combat=5;magnets=4"
|
||||
energy_drain = 500
|
||||
projectile = /obj/item/projectile/energy/shock_revolver
|
||||
fire_sound = 'sound/magic/lightningbolt.ogg'
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/energy/xray
|
||||
equip_cooldown = 35
|
||||
name = "S-1 X-Ray Projector"
|
||||
desc = "A weapon for combat exosuits. Fires beams of X-Rays that pass through solid matter."
|
||||
icon_state = "mecha_laser"
|
||||
origin_tech = "materials=3;combat=5;magnets=2;syndicate=2"
|
||||
energy_drain = 80
|
||||
projectile = /obj/item/projectile/beam/xray
|
||||
fire_sound = 'sound/weapons/laser3.ogg'
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/energy/xray/triple
|
||||
name = "X-XR Triple-barrel X-Ray Stream Projector"
|
||||
projectiles_per_shot = 3
|
||||
projectile_delay = 1
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/energy/immolator
|
||||
equip_cooldown = 35
|
||||
name = "ZFI Immolation Beam Gun"
|
||||
desc = "A weapon for combat exosuits. Fires beams of extreme heat that set targets on fire."
|
||||
icon_state = "mecha_laser"
|
||||
origin_tech = "materials=4;combat=4;magnets=3;plasmatech=2"
|
||||
energy_drain = 80
|
||||
projectile = /obj/item/projectile/beam/immolator
|
||||
fire_sound = 'sound/weapons/laser3.ogg'
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/energy/pulse
|
||||
equip_cooldown = 30
|
||||
name = "eZ-13 mk2 Heavy pulse rifle"
|
||||
@@ -273,8 +314,12 @@
|
||||
variance = 6
|
||||
projectile_delay = 2
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/ballistic/lmg/dual
|
||||
name = "XMG-9 Autocannon"
|
||||
projectiles_per_shot = 6
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack
|
||||
name = "SRM-8 Missile Rack"
|
||||
name = "SRM-8 Light Missile Rack"
|
||||
icon_state = "mecha_missilerack"
|
||||
projectile = /obj/item/missile
|
||||
fire_sound = 'sound/effects/bang.ogg'
|
||||
@@ -283,6 +328,7 @@
|
||||
equip_cooldown = 60
|
||||
var/missile_speed = 2
|
||||
var/missile_range = 30
|
||||
var/heavy_missile = 0
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack/action(target, params)
|
||||
if(!action_checks(target))
|
||||
@@ -290,6 +336,8 @@
|
||||
set_ready_state(0)
|
||||
var/obj/item/missile/M = new projectile(chassis.loc)
|
||||
M.primed = 1
|
||||
if(heavy_missile)
|
||||
M.heavy_missile = 1
|
||||
playsound(chassis, fire_sound, 50, 1)
|
||||
M.throw_at(target, missile_range, missile_speed, chassis)
|
||||
projectiles--
|
||||
@@ -300,16 +348,23 @@
|
||||
do_after_cooldown()
|
||||
return
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack/heavy
|
||||
name = "SRX-13 Heavy Missile Launcher"
|
||||
heavy_missile = 1
|
||||
|
||||
/obj/item/missile
|
||||
icon = 'icons/obj/grenade.dmi'
|
||||
icon_state = "missile"
|
||||
var/primed = null
|
||||
var/heavy_missile = 0
|
||||
throwforce = 15
|
||||
|
||||
/obj/item/missile/throw_impact(atom/hit_atom)
|
||||
if(primed)
|
||||
explosion(hit_atom, 0, 0, 2, 4, 0)
|
||||
if(heavy_missile)
|
||||
explosion(hit_atom, 2, 3, 4, 6, 0)
|
||||
else
|
||||
explosion(hit_atom, 0, 0, 2, 4, 0)
|
||||
qdel(src)
|
||||
else
|
||||
..()
|
||||
|
||||
@@ -883,7 +883,7 @@
|
||||
category = list("Exosuit Equipment")
|
||||
|
||||
/datum/design/mech_laser
|
||||
name = "Exosuit Weapon (CH-PS \"Immolator\" Laser)"
|
||||
name = "Exosuit Weapon (CH-PL \"Firedart\" Laser)"
|
||||
desc = "Allows for the construction of CH-PS Laser."
|
||||
id = "mech_laser"
|
||||
build_type = MECHFAB
|
||||
@@ -893,6 +893,17 @@
|
||||
construction_time = 100
|
||||
category = list("Exosuit Equipment")
|
||||
|
||||
/datum/design/mech_disabler
|
||||
name = "Exosuit Weapon (CH-PD Disabler)"
|
||||
desc = "Allows for the construction of CH-PD Disabler."
|
||||
id = "mech_laser"
|
||||
build_type = MECHFAB
|
||||
req_tech = list("combat" = 3, "magnets" = 3)
|
||||
build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/laser/disabler
|
||||
materials = list(MAT_METAL=10000)
|
||||
construction_time = 100
|
||||
category = list("Exosuit Equipment")
|
||||
|
||||
/datum/design/mech_carbine
|
||||
name = "Exosuit Weapon (FNX-99 \"Hades\" Carbine)"
|
||||
desc = "Allows for the construction of FNX-99 \"Hades\" Carbine."
|
||||
@@ -959,6 +970,28 @@
|
||||
construction_time = 100
|
||||
category = list("Exosuit Equipment")
|
||||
|
||||
/datum/design/mech_tesla
|
||||
name = "Exosuit Weapon (P-X Tesla Cannon)"
|
||||
desc = "Allows for the construction of P-X Tesla Cannon."
|
||||
id = "mech_tesla"
|
||||
build_type = MECHFAB
|
||||
req_tech = list("combat" = 6, "magnets" = 5, "materials" = 5)
|
||||
build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/tesla
|
||||
materials = list(MAT_METAL = 10000, MAT_GLASS = 10000, MAT_SILVER = 10000)
|
||||
construction_time = 100
|
||||
category = list("Exosuit Equipment")
|
||||
|
||||
/datum/design/mech_immolator
|
||||
name = "Exosuit Weapon (ZFI Immolation Beam Gun)"
|
||||
desc = "Allows for the construction of ZFI Immolation Beam Gun."
|
||||
id = "mech_tesla"
|
||||
build_type = MECHFAB
|
||||
req_tech = list("combat" = 4, "materials" = 4, "plasmatech" = 2, "magnets" = 3)
|
||||
build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/immolator
|
||||
materials = list(MAT_METAL = 4000, MAT_GLASS = 1000, MAT_SILVER = 3000, MAT_PLASMA = 2000)
|
||||
construction_time = 100
|
||||
category = list("Exosuit Equipment")
|
||||
|
||||
//Cyborg Upgrade Modules
|
||||
|
||||
/datum/design/borg_upgrade_reset
|
||||
|
||||
Reference in New Issue
Block a user