Files
Polaris/code/modules/projectiles/projectile/explosive.dm
Verkister 465488a668 Fixes rocket launcher
The launcher type guns use throw_at instead of the fancy bullet projectile features, so the fancy bullet projectile mechanics were unable to make things go boom by having several dead-end returns happen before the projectiles could even reach the on_hit, which already bonks into a return in the ..()'d parent proc anyway.
2022-01-04 18:48:12 -08:00

32 lines
782 B
Plaintext

/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/throw_impact(atom/target, var/speed)
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)
qdel(src)
/obj/item/projectile/bullet/srmrocket/weak //Used in the jury rigged one.
damage = 10
/obj/item/projectile/bullet/srmrocket/weak/throw_impact(atom/target, var/speed)
explosion(target, 0, 0, 2, 4)//No need to have a question.
qdel(src)
/*Old vars here for reference.
var/devastation = 0
var/heavy_blast = 1
var/light_blast = 2
var/flash_blast = 4
*/