mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 09:08:30 +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! --> <!-- Please make sure to actually test your PRs. If you have not tested your PR mention it. --> A Port of https://github.com/NovaSector/NovaSector/pull/3464, https://github.com/NovaSector/NovaSector/pull/1108 and the yet unmerged https://github.com/NovaSector/NovaSector/pull/4744 because turrets are cool. all credit of course to the guy that made them @Zenitheevee This PR does NOT include: Handfulls of shells (we don't have that PR here so the premade turrets come with mags), The ruins (Planning to add later), Actually having a few spawn in PT (Also planning to do later) ## Why It's Good For The Game <!-- 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. --> Sick as hell, unique defensive options for PT and others! Fun turrets to shoot darts at people! Fill them with riot darts and make non-lethal defenses! ## Proof Of Testing <!-- Compile and run your code locally. Make sure it works. This is the place to show off your changes! We are not responsible for testing your features. --> <details> <summary>Screenshots/Videos</summary>     </details> ## 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 its 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. --> 🆑 Zenitheevee ,MajManatee add: deployable magazine fed turrets add: target designators for mag fed turrets add: Tarkon faction add: Added turret assemblies to new turrets when found. add: Added a research node locked behind tarkon tech to print tarkon turrets. image: added icons for mag fed turrets image: added icons for target designators /🆑 <!-- 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. --> <!-- By opening a pull request. You have read and understood the repository rules located on the main README.md on this project. -->
23 lines
1.0 KiB
Plaintext
23 lines
1.0 KiB
Plaintext
/obj/item/pneumatic_cannon/load_item(obj/item/I, mob/user) //we make this compatable with the master file incase of future updates.
|
|
if(!can_load_item(I, user))
|
|
return FALSE
|
|
if(user)
|
|
if(istype(I, /obj/item/storage/toolbox/emergency/turret/mag_fed))
|
|
to_chat(user, span_warning("You prepare \the [I] to load into \the [src]. This action will block other items from being loaded!"))
|
|
if(!do_after(user, 15)) //adding a warning and a delay so it cant just be invo-juggle-spammed.
|
|
return FALSE
|
|
return ..()
|
|
|
|
/obj/item/pneumatic_cannon/can_load_item(obj/item/I, mob/user)
|
|
. = ..()
|
|
if(!.)
|
|
return
|
|
if(locate(/obj/item/storage/toolbox/emergency/turret/mag_fed) in src) //If loaded with a turret, stops more from being put in
|
|
if(user)
|
|
to_chat(user, span_warning("\The [I] is blocked from \the [src]'s loader!"))
|
|
return FALSE
|
|
if(istype(I, /obj/item/storage/toolbox/emergency/turret/mag_fed) && length(loadedItems) >= 1)
|
|
if(user)
|
|
to_chat(user, span_warning("\The [I] needs an empty cannon!"))
|
|
return FALSE
|