mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-22 21:16:51 +01:00
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> <!-- You can view Contributing.MD for a detailed description of the pull request process. --> ## About The Pull Request  <!-- Describe The Pull Request. Please be sure every change is documented or this can delay review and even discourage maintainers from merging your PR! --> ## Why It's Good For The Game Mappers thought their reign would last a thousand years, and hardcoded extremely specific announcements that make no sense in new maps. <!-- Argue for the merits of your changes and how they benefit the game, especially if they are controversial and/or far reaching. If you can't actually explain WHY what you are doing will improve the game, then it probably isn't good for the game in the first place. --> ## Changelog <!-- If your PR modifies aspects of the game that can be concretely observed by players or admins you should add a changelog. If your change does NOT meet this description, remove this section. Be sure to properly mark your PRs to prevent unnecessary GBP loss. You can read up on GBP and it's effects on PRs in the tgstation guides for contributors. Please note that maintainers freely reserve the right to remove and add tags should they deem it appropriate. You can attempt to finagle the system all you want, but it's best to shoot for clear communication right off the bat. --> 🆑 tweak: tweaked many IC event announcements tweak: small medical terminology fixes tweak: cult and meteor alarm volume has been reduced /🆑 <!-- Both 🆑's are required for the changelog to work! You can put your name to the right of the first 🆑 if you want to overwrite your GitHub username as author ingame. --> <!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. -->
57 lines
2.0 KiB
Plaintext
57 lines
2.0 KiB
Plaintext
/datum/event/rogue_drone
|
|
endWhen = 1000
|
|
var/list/drones_list = list()
|
|
|
|
/datum/event/rogue_drone/start()
|
|
//spawn them at the same place as carp
|
|
var/list/possible_spawns = list()
|
|
for(var/obj/landmark/C in GLOB.landmarks_list)
|
|
if(C.name == "carpspawn")
|
|
possible_spawns.Add(C)
|
|
|
|
//25% chance for this to be a false alarm
|
|
var/num
|
|
if(prob(25))
|
|
num = 0
|
|
else
|
|
num = rand(2,6)
|
|
for(var/i=0, i<num, i++)
|
|
var/mob/living/simple_mob/mechanical/combat_drone/event/D = new(get_turf(pick(possible_spawns)))
|
|
drones_list.Add(D)
|
|
|
|
/datum/event/rogue_drone/announce()
|
|
var/msg
|
|
var/rng = rand(1,5)
|
|
switch(rng)
|
|
if(1)
|
|
msg = "A combat drone wing operating within the sector has failed to return from a anti-piracy sweep. If any are sighted, \
|
|
approach with caution."
|
|
if(2)
|
|
msg = "Contact has been lost with a combat drone wing in the sector. If any are sighted in the area, approach with \
|
|
caution."
|
|
if(3)
|
|
msg = "Unidentified hackers have targeted a combat drone wing deployed in this sector. If any are sighted in the area, approach with caution."
|
|
if(4)
|
|
msg = "A passing derelict ship's drone defense systems have just activated. If any are sighted in the area, use caution."
|
|
if(5)
|
|
msg = "We're detecting a swarm of small objects approaching your station. Sensor returns indicate it may be a fleet of drones. Please exercise caution."
|
|
|
|
command_announcement.Announce(msg, "Rogue drone alert")
|
|
|
|
/datum/event/rogue_drone/end()
|
|
var/num_recovered = 0
|
|
for(var/mob/living/simple_mob/mechanical/combat_drone/D in drones_list)
|
|
var/datum/effect_system/spark_spread/sparks = new /datum/effect_system/spark_spread()
|
|
sparks.set_up(3, 0, D.loc)
|
|
sparks.start()
|
|
D.z = (LEGACY_MAP_DATUM).admin_levels[1]
|
|
D.loot_list = list()
|
|
|
|
qdel(D)
|
|
num_recovered++
|
|
|
|
if(num_recovered > drones_list.len * 0.75)
|
|
command_announcement.Announce("The drones that were malfunctioning have been recovered safely.", "Rogue drone alert")
|
|
else
|
|
command_announcement.Announce("We're disappointed at the loss of the drones, but the survivors have been recovered.", "Rogue drone alert")
|