Files
Paradise/code/modules/projectiles/guns/rocket.dm
BiancaWilkson e6f8b543ae Refactors rocket launchers, adds it to nukie uplink (#21273)
* initial changes to rocket launcher

* moves the missiles to special projectiles

* gonna keep it real, im too high for mechcode

* missiles are now projectiles

* pt. 2 of last commit

* Now we don't need process fire to handle all this

* shoots you with my gun that makes you explode

* uplink time

* I hate mechs I hate mechs I hate mechs

* minor typo detected

* tech origin fix

* whoops the light ones explode twice

* THIS JUST MAKES IT WORK????

* maybe balance is a good thing

* Renamed ammo in uplink

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

* sirryans reviews, ill learn to document someday

* Forcemove time

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

---------

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
2023-06-21 22:39:29 +01:00

42 lines
1.1 KiB
Plaintext

/obj/item/gun/rocketlauncher
var/projectile
name = "rocket launcher"
desc = "A rocket propelled grenade launcher. Holds one shell at a time."
icon_state = "rocket"
item_state = "rocket"
w_class = WEIGHT_CLASS_BULKY
throw_speed = 2
throw_range = 3
force = 15
flags = CONDUCT
origin_tech = "combat=6;syndicate=7"
fire_sound = 'sound/weapons/blastcannon.ogg'
fire_delay = 40
recoil = 2
zoomable = TRUE
zoom_amt = 7
var/missile_speed = 2
var/missile_range = 30
/obj/item/gun/rocketlauncher/examine(mob/user)
. = ..()
. += "<span class='notice'>It is currently [chambered ? "" : "un"]loaded.</span>"
/obj/item/gun/rocketlauncher/attackby(obj/item/I, mob/user, params)
if(!istype(I, /obj/item/ammo_casing/rocket))
return ..()
if(!chambered)
user.unEquip(I)
I.forceMove(src)
chambered = I
to_chat(user, "<span class='notice'>You put the rocket in [src].</span>")
else
to_chat(user, "<span class='notice'>[src] cannot hold another rocket.</span>")
/obj/item/gun/rocketlauncher/process_chamber()
QDEL_NULL(chambered)
/obj/item/gun/rocketlauncher/can_shoot()
return chambered