Skip to content

Commit

Permalink
sadar
Browse files Browse the repository at this point in the history
  • Loading branch information
AndroBetel committed Sep 9, 2024
1 parent 92944b9 commit 3ff9f34
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
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

0 comments on commit 3ff9f34

Please sign in to comment.