mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Improvements to mech missiles.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
33
code/modules/projectiles/projectile/explosive.dm
Normal file
33
code/modules/projectiles/projectile/explosive.dm
Normal 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
|
||||
*/
|
||||
Reference in New Issue
Block a user