mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-23 08:32:11 +00:00
Update explosive.dm
This commit is contained in:
@@ -8,6 +8,13 @@
|
|||||||
damage = 30 //Meaty whack. *Chuckles*
|
damage = 30 //Meaty whack. *Chuckles*
|
||||||
does_spin = 0
|
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/throw_impact(atom/target, var/speed)
|
/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
|
if(!isliving(target)) //if the target isn't alive, so is a wall or something
|
||||||
explosion(target, 0, 1, 2, 4)
|
explosion(target, 0, 1, 2, 4)
|
||||||
@@ -15,10 +22,13 @@
|
|||||||
explosion(target, 0, 0, 2, 4)
|
explosion(target, 0, 0, 2, 4)
|
||||||
qdel(src)
|
qdel(src)
|
||||||
|
|
||||||
|
|
||||||
/obj/item/projectile/bullet/srmrocket/weak //Used in the jury rigged one.
|
/obj/item/projectile/bullet/srmrocket/weak //Used in the jury rigged one.
|
||||||
damage = 10
|
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
|
||||||
|
|
||||||
/obj/item/projectile/bullet/srmrocket/weak/throw_impact(atom/target, var/speed)
|
/obj/item/projectile/bullet/srmrocket/weak/throw_impact(atom/target, var/speed)
|
||||||
explosion(target, 0, 0, 2, 4)//No need to have a question.
|
explosion(target, 0, 0, 2, 4)//No need to have a question.
|
||||||
qdel(src)
|
qdel(src)
|
||||||
|
|||||||
Reference in New Issue
Block a user