Adds mercenary sniper rifle

Adds the scoped mercenary sniper rifle and ammunition defines. Does not
add syndicate uplink option.
This commit is contained in:
mwerezak
2015-02-14 21:57:22 -05:00
parent 13ca926c0f
commit ad24aa8e47
11 changed files with 50 additions and 29 deletions

View File

@@ -25,22 +25,23 @@
damage *= 0.7 //squishy mobs absorb KE
return 1
if(istype(A, /obj/machinery) || istype(A, /obj/structure))
var/chance = 15
if(istype(A, /turf/simulated/wall))
var/turf/simulated/wall/W = A
chance = round(damage/W.damage_cap*100)
else if(istype(A, /obj/machinery/door))
var/obj/machinery/door/D = A
chance = round(damage/D.maxhealth*100)
else if(istype(A, /obj/structure/girder) || istype(A, /obj/structure/cultgirder))
chance = 100
if(prob(chance))
if(A.opacity)
//display a message so that people on the other side aren't so confused
A.visible_message("<span class='warning'>\The [src] pierces through \the [A]!")
return 1
var/chance = 0
if(istype(A, /turf/simulated/wall))
var/turf/simulated/wall/W = A
chance = round(damage/W.damage_cap*150)
else if(istype(A, /obj/machinery/door))
var/obj/machinery/door/D = A
chance = round(damage/D.maxhealth*100)
else if(istype(A, /obj/structure/girder) || istype(A, /obj/structure/cultgirder))
chance = 100
else if(istype(A, /obj/machinery) || istype(A, /obj/structure))
chance = 15
if(prob(chance))
if(A.opacity)
//display a message so that people on the other side aren't so confused
A.visible_message("<span class='warning'>\The [src] pierces through \the [A]!")
return 1
return 0
@@ -125,7 +126,9 @@
penetrating = 1
/obj/item/projectile/bullet/rifle/a145
damage = 90
damage = 80
stun = 3
weaken = 3
penetrating = 5
/* Miscellaneous */