mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Links many map-specific details such as the station name, z-level information, and allowed jobs from global vars to map datum vars, which should help us maintain multiple maps at once in the future, which will be needed for the future Southern Cross. Note that a config change will be needed to change GENERATE_ASTEROID to GENERATE_MAP, otherwise no changes should be required to continue normal map usage. To change to a different map, it's suggested to tick the file that ticks all the other needed files, which for the Northern Star is called northern_star.dm.
65 lines
2.2 KiB
Plaintext
65 lines
2.2 KiB
Plaintext
|
|
/obj/machinery/artillerycontrol
|
|
var/reload = 180
|
|
name = "bluespace artillery control"
|
|
icon_state = "control_boxp1"
|
|
icon = 'icons/obj/machines/particle_accelerator2.dmi'
|
|
density = 1
|
|
anchored = 1
|
|
|
|
/obj/machinery/artillerycontrol/process()
|
|
if(src.reload<180)
|
|
src.reload++
|
|
|
|
/obj/structure/artilleryplaceholder
|
|
name = "artillery"
|
|
icon = 'icons/obj/machines/artillery.dmi'
|
|
anchored = 1
|
|
density = 1
|
|
|
|
/obj/structure/artilleryplaceholder/decorative
|
|
density = 0
|
|
|
|
/obj/machinery/artillerycontrol/attack_hand(mob/user as mob)
|
|
user.set_machine(src)
|
|
var/dat = "<B>Bluespace Artillery Control:</B><BR>"
|
|
dat += "Locked on<BR>"
|
|
dat += "<B>Charge progress: [reload]/180:</B><BR>"
|
|
dat += "<A href='byond://?src=\ref[src];fire=1'>Open Fire</A><BR>"
|
|
dat += "Deployment of weapon authorized by <br>[using_map.company_name] Naval Command<br><br>Remember, friendly fire is grounds for termination of your contract and life.<HR>"
|
|
user << browse(dat, "window=scroll")
|
|
onclose(user, "scroll")
|
|
return
|
|
|
|
/obj/machinery/artillerycontrol/Topic(href, href_list)
|
|
..()
|
|
if (usr.stat || usr.restrained())
|
|
return
|
|
if ((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf))) || (istype(usr, /mob/living/silicon)))
|
|
var/A
|
|
A = input("Area to jump bombard", "Open Fire", A) in teleportlocs
|
|
var/area/thearea = teleportlocs[A]
|
|
if (usr.stat || usr.restrained()) return
|
|
if(src.reload < 180) return
|
|
if ((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf))) || (istype(usr, /mob/living/silicon)))
|
|
command_announcement.Announce("Bluespace artillery fire detected. Brace for impact.")
|
|
message_admins("[key_name_admin(usr)] has launched an artillery strike.", 1)
|
|
var/list/L = list()
|
|
for(var/turf/T in get_area_turfs(thearea.type))
|
|
L+=T
|
|
var/loc = pick(L)
|
|
explosion(loc,2,5,11)
|
|
reload = 0
|
|
|
|
/*mob/proc/openfire()
|
|
var/A
|
|
A = input("Area to jump bombard", "Open Fire", A) in teleportlocs
|
|
var/area/thearea = teleportlocs[A]
|
|
command_alert("Bluespace artillery fire detected. Brace for impact.")
|
|
spawn(30)
|
|
var/list/L = list()
|
|
|
|
for(var/turf/T in get_area_turfs(thearea.type))
|
|
L+=T
|
|
var/loc = pick(L)
|
|
explosion(loc,2,5,11)*/ |