Improvements to mech missiles.

This commit is contained in:
Atermonera
2020-08-25 16:15:12 -07:00
committed by VirgoBot
parent a69e94f948
commit b2250d9b47
6 changed files with 42 additions and 42 deletions

View File

@@ -369,7 +369,7 @@
name = "rocket shell"
desc = "A high explosive designed to be fired from a launcher."
icon_state = "rocketshell"
projectile_type = /obj/item/missile
projectile_type = /obj/item/projectile/bullet/srmrocket
caliber = "rocket"
matter = list(DEFAULT_WALL_MATERIAL = 10000)

View File

@@ -35,10 +35,8 @@
/obj/item/weapon/gun/launcher/rocket/consume_next_projectile()
if(rockets.len)
var/obj/item/ammo_casing/rocket/I = rockets[1]
var/obj/item/missile/M = new (src)
M.primed = 1
rockets -= I
return M
return
return null
/obj/item/weapon/gun/launcher/rocket/handle_post_fire(mob/user, atom/target)

View File

@@ -0,0 +1,33 @@
/obj/item/projectile/bullet/srmrocket
name ="SRM-8 Rocket"
desc = "Boom"
icon = 'icons/obj/grenade.dmi'
icon_state = "missile"
damage = 30 //Meaty whack. *Chuckles*
does_spin = 0
/obj/item/projectile/bullet/srmrocket/on_hit(atom/target, blocked=0)
..()
if(!isliving(target)) //if the target isn't alive, so is a wall or something
explosion(target, 0, 1, 2, 4)
else
explosion(target, 0, 0, 2, 4)
return 1
/obj/item/projectile/bullet/srmrocket/weak //Used in the jury rigged one.
damage = 10
/obj/item/projectile/bullet/srmrocket/weak/on_hit(atom/target, blocked=0)
..()
explosion(target, 0, 0, 2, 4)//No need to have a question.
return 1
/*Old vars here for reference.
var/devastation = 0
var/heavy_blast = 1
var/light_blast = 2
var/flash_blast = 4
*/