Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Did I Mention The Tank Is A Tank? Tank Reflavour and Rebalancing #120

Merged
merged 5 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 24 additions & 7 deletions code/game/mecha/combat/five_stars.dm
Original file line number Diff line number Diff line change
@@ -1,22 +1,39 @@
/obj/mecha/combat/five_stars
desc = "A state of the art tank deployed by the Spinward Stellar Coalition National Guard."
name = "\improper Tank"
desc = "The FV-101, the combat tank of the modern era. Lightweight enough to be transported on your average ship, while still packing enough of a punch to tear a new hole in any attacker. The flagship armoured vehicle of any force worth its salt."
name = "tank"
icon = 'icons/mecha/mecha_96x96.dmi'
icon_state = "five_stars"
armor = list("melee" = 100, "bullet" = 50, "laser" = 35, "energy" = 35, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100)
exit_delay = 40
step_in = 4
armor = list("melee" = 95, "bullet" = 45, "laser" = 30, "energy" = 30, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100)
exit_delay = 20
step_in = 2 //almost as fast as a ripley
dir_in = 1 //Facing North.
max_integrity = 800
max_integrity = 400
pixel_x = -32
pixel_y = -32

/obj/mecha/combat/five_stars/Initialize()
. = ..()
var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack/spacecops(src)
ME.attach(src)
ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/lmg(src)
ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/lmg/hull(src)
ME.attach(src)
ME = new /obj/item/mecha_parts/mecha_equipment/tesla_energy_relay(src)
ME.attach(src)
max_ammo()

/obj/mecha/combat/five_stars/mechturn(direction)
if(prob(80))
crush_floor()
return ..()

/obj/mecha/combat/five_stars/domove(direction)
. = ..()
if (.)
if(prob(30))
crush_floor()

/obj/mecha/combat/five_stars/proc/crush_floor() //DID I MENTION THE TANK IS A TANK (shouldnt cause hull breaches)
var/turf/open/floor/tile = get_turf(src)
if(!istype(tile, /turf/open/floor))
return
tile.crush()
14 changes: 13 additions & 1 deletion code/game/mecha/equipment/weapons/weapons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,15 @@
harmful = TRUE
ammo_type = "lmg"

/obj/item/mecha_parts/mecha_equipment/weapon/ballistic/lmg/hull
name = "hull-mounted light machinegun"
desc = "A tank's machinegun, used to suppress infantry without wasting 76mm ammunition."
projectiles = 200
projectiles_cache = 200
projectiles_cache_max = 1200
projectile_delay = 1
projectiles_per_shot = 2

/obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack
name = "\improper SRM-8 missile rack"
desc = "A weapon for combat exosuits. Launches light explosive missiles."
Expand All @@ -343,7 +352,10 @@
ammo_type = "missiles_he"

/obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack/spacecops
projectiles = 420
name = "76mm cannon"
desc = "The 76mm cannon of the infamous FV-101 tank."
icon_state = "mecha_carbine"
projectiles = 20

/obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack/breaching
name = "\improper BRM-6 missile rack"
Expand Down
Loading