Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sadar buffs #444

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion code/datums/ammo/rocket.dm
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,12 @@

/datum/ammo/rocket/ap/anti_tank
name = "anti-tank rocket"
damage = 100
damage = 1000
damage_var_high = 100
var/vehicle_slowdown_time = 5 SECONDS
shrapnel_chance = 5
shrapnel_type = /obj/item/large_shrapnel/at_rocket_dud
max_range = 22

/datum/ammo/rocket/ap/anti_tank/on_hit_obj(obj/O, obj/projectile/P)
if(istype(O, /obj/vehicle/multitile))
Expand Down
5 changes: 5 additions & 0 deletions code/modules/projectiles/gun_attachables.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,11 @@ Defined in conflicts.dm of the #defines folder.
select_gamemode_skin(type)
attach_icon = icon_state

/obj/item/attachable/scope/mini/sadar
name = "M83A2 SADAR sight assembly"
desc = "SADAR sight system."
zoom_offset = 3

/obj/item/attachable/scope/mini_iff
name = "B8 Smart-Scope"
icon_state = "iffbarrel"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,14 @@
to_chat(usr, SPAN_WARNING("You cannot unload \the [src]!"))
return

/obj/item/weapon/gun/launcher/rocket/anti_tank/disposable/handle_starting_attachment()
..()
var/obj/item/attachable/scope/mini/sadar/scope = new(src)
scope.hidden = TRUE
scope.flags_attach_features &= ~ATTACH_REMOVABLE
scope.Attach(src)
update_attachable(scope.slot)

//folded version of the sadar
/obj/item/prop/folded_anti_tank_sadar
name = "\improper M83 SADAR (folded)"
Expand Down
Loading