-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds an autocannon ship gun (#19927)
This adds the Goshawk heavy autocannon to the game, intended as a generic gun emplacement available to be mapped into any appropriate offship. The AP shots are intended to be the weakest, but they do a lot of damage on the off-chance they do hit someone. AP fires twelve shots, frag fires nine, and HE only fires six - obviously ICly every salvo is the same size, this is just for balance. As is currently, I'd say this is a little stronger and generally a bit more versatile than the grauwolf. **This is up for review.** Credit to Noble for the spriting!
- Loading branch information
Showing
6 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/obj/machinery/ship_weapon/autocannon | ||
name = "goshawk heavy autocannon" | ||
desc = "This rugged thing is a Kumar Arms Goshawk heavy autocannon, developed originally in 2456 and ubiqutous in certain circles ever since. A heavier predecessor to the later Francisca rotary gun developed some years after, this fires 60mm shells large enough to rend walls apart outright, reducing hulls to a pepppered gore of scrap metal under sustained fire. Its simplicity is only eclipsed by its efficiency, and such models are not expected to be leaving active service in both military and civilian hands anytime soon despite their advancing age." | ||
icon = 'icons/obj/machinery/ship_guns/autocannon.dmi' | ||
heavy_firing_sound = 'sound/weapons/gunshot/ship_weapons/flak_fire.ogg' | ||
icon_state = "weapon_base" | ||
max_ammo = 3 | ||
caliber = SHIP_CALIBER_60MM | ||
screenshake_type = SHIP_GUN_SCREENSHAKE_SCREEN | ||
|
||
/obj/machinery/ammunition_loader/autocannon | ||
name = "autocannon ammunition loader" | ||
|
||
/obj/item/ship_ammunition/autocannon | ||
name = "60mm AP shell bundle" | ||
name_override = "60mm AP burst" | ||
desc = "A bundle of armour-piercing shells for use in a heavy autocannon emplacement. These are non-explosive, designed to penetrate deep inside their targets without causing heavy structural damage. An impact from such a shell to an enemy crewman is likely to be fatal." | ||
icon = 'icons/obj/guns/ship/ship_ammo_autocannon.dmi' | ||
icon_state = "autocannon_ap" | ||
overmap_icon_state = "cannon_salvo" | ||
impact_type = SHIP_AMMO_IMPACT_AP | ||
ammunition_flags = SHIP_AMMO_FLAG_INFLAMMABLE|SHIP_AMMO_FLAG_VERY_HEAVY | ||
caliber = SHIP_CALIBER_60MM | ||
burst = 11 | ||
cookoff_heavy = 0 | ||
projectile_type_override = /obj/projectile/ship_ammo/autocannon | ||
|
||
/obj/item/ship_ammunition/autocannon/he | ||
name = "60mm HE shell bundle" | ||
name_override = "60mm HE burst" | ||
desc = "A bundle of high-explosive shells for use in a heavy autocannon emplacement. These explode on impact with the hull of their targets, making them effective at causing heavy structural damage while reducing their ability to impact deep inside enemy ships." | ||
icon = 'icons/obj/guns/ship/ship_ammo_autocannon.dmi' | ||
icon_state = "autocannon_he" | ||
overmap_icon_state = "cannon_salvo" | ||
impact_type = SHIP_AMMO_IMPACT_HE | ||
ammunition_flags = SHIP_AMMO_FLAG_INFLAMMABLE|SHIP_AMMO_FLAG_VERY_HEAVY|SHIP_AMMO_FLAG_VULNERABLE // More fragile than AP. | ||
caliber = SHIP_CALIBER_60MM | ||
burst = 5 | ||
cookoff_heavy = 1 | ||
projectile_type_override = /obj/projectile/ship_ammo/autocannon/he | ||
|
||
|
||
/obj/item/ship_ammunition/autocannon/frag | ||
name = "60mm fragmentation shell bundle" | ||
name_override = "60mm fragmentation burst" | ||
desc = "A bundle of fragmentation shells for use in a heavy autocannon emplacement. These are intented to penetrate a short distance into the target before exploding in a shower of shrapnel, effective at targeting the crews of vessels." | ||
icon = 'icons/obj/guns/ship/ship_ammo_autocannon.dmi' | ||
icon_state = "autocannon_frag" | ||
overmap_icon_state = "cannon_salvo" | ||
impact_type = SHIP_AMMO_IMPACT_HE | ||
ammunition_flags = SHIP_AMMO_FLAG_INFLAMMABLE|SHIP_AMMO_FLAG_VERY_HEAVY | ||
caliber = SHIP_CALIBER_60MM | ||
burst = 8 | ||
cookoff_heavy = 1 | ||
projectile_type_override = /obj/projectile/ship_ammo/autocannon/frag | ||
|
||
/obj/projectile/ship_ammo/autocannon | ||
name = "60mm AP shell" | ||
icon_state = "small" | ||
damage = 100 | ||
armor_penetration = 60 | ||
penetrating = 3 | ||
|
||
/obj/projectile/ship_ammo/autocannon/he | ||
name = "60mm HE shell" | ||
icon_state = "small" | ||
damage = 80 | ||
armor_penetration = 30 | ||
penetrating = 0 // Explodes on the hull. | ||
|
||
/obj/projectile/ship_ammo/autocannon/frag | ||
name = "60mm fragmentation shell" | ||
icon_state = "small" | ||
damage = 60 | ||
armor_penetration = 30 | ||
penetrating = 2 | ||
|
||
/obj/projectile/ship_ammo/autocannon/he/on_hit(atom/target, blocked, def_zone, is_landmark_hit) | ||
. = ..() | ||
explosion(target, 0, 2, 3) | ||
|
||
/obj/projectile/ship_ammo/autocannon/frag/on_hit(atom/target, blocked, def_zone, is_landmark_hit) | ||
fragem(target, 70, 70, 1, 2, 15, 5, TRUE) | ||
..() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
################################ | ||
# Example Changelog File | ||
# | ||
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb. | ||
# | ||
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.) | ||
# When it is, any changes listed below will disappear. | ||
# | ||
# Valid Prefixes: | ||
# bugfix | ||
# - (fixes bugs) | ||
# wip | ||
# - (work in progress) | ||
# qol | ||
# - (quality of life) | ||
# soundadd | ||
# - (adds a sound) | ||
# sounddel | ||
# - (removes a sound) | ||
# rscadd | ||
# - (adds a feature) | ||
# rscdel | ||
# - (removes a feature) | ||
# imageadd | ||
# - (adds an image or sprite) | ||
# imagedel | ||
# - (removes an image or sprite) | ||
# spellcheck | ||
# - (fixes spelling or grammar) | ||
# experiment | ||
# - (experimental change) | ||
# balance | ||
# - (balance changes) | ||
# code_imp | ||
# - (misc internal code change) | ||
# refactor | ||
# - (refactors code) | ||
# config | ||
# - (makes a change to the config files) | ||
# admin | ||
# - (makes changes to administrator tools) | ||
# server | ||
# - (miscellaneous changes to server) | ||
################################# | ||
|
||
# Your name. | ||
author: hazelmouse | ||
|
||
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. | ||
delete-after: True | ||
|
||
# Any changes you've made. See valid prefix list above. | ||
# INDENT WITH TWO SPACES. NOT TABS. SPACES. | ||
# SCREW THIS UP AND IT WON'T WORK. | ||
# Also, this gets changed to [] after reading. Just remove the brackets when you add new shit. | ||
# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog. | ||
changes: | ||
- rscadd: "Adds the Goshawk heavy autocannon ship armament to the codebase, available to be used in future mapping PRs." |
Binary file not shown.
Binary file not shown.