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

Warfare Module 1: Naval Artillery Shells #434

Open
wants to merge 94 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
4d0794d
Me when try to code artillery shells.
Zattarra Feb 20, 2024
dc9ffcb
I don't know what I'm doing, really.
Zattarra Feb 20, 2024
64e9c20
Some more things.
Zattarra Feb 21, 2024
617618d
Tries to make 460mm rocket shell.
Zattarra Feb 21, 2024
06ddc3d
Fixes goofy formatting.
Zattarra Feb 21, 2024
dfeda0a
More fixes.
Zattarra Feb 21, 2024
c589f39
I missed a single slash.
Zattarra Feb 21, 2024
7b332fc
Super super?
Zattarra Feb 21, 2024
5ad2ec2
Makes the code less bad by adding some variables.
Zattarra Feb 21, 2024
f9d04af
Better rocket assisted AP code.
Zattarra Feb 21, 2024
e449d0f
Thinking about singularity.
Zattarra Feb 21, 2024
9f321b2
Tries to modularize stuff, sorry Melbert.
Zattarra Feb 22, 2024
6b705f8
Modularizes icons too, maybe.
Zattarra Feb 22, 2024
75d793d
Please add DMI.
Zattarra Feb 22, 2024
ec79ea1
Working on WMDs.
Zattarra Feb 22, 2024
3996b3b
Force update that DME.
Zattarra Feb 22, 2024
d386a1c
LET'S GOOOOO, WMDS!!
Zattarra Feb 22, 2024
9800f36
My face when.
Zattarra Feb 22, 2024
292c9cc
ROCKET FUELLLLL.
Zattarra Feb 22, 2024
b25a4a9
SPEEEEEEEED FUEL FOR AP SHELLS LET'S GOOOOOOO.
Zattarra Feb 22, 2024
c957790
Cosmic explosion effect for singularity start.
Zattarra Feb 22, 2024
bb01a49
Chop up the singulo warhead to make it stop failing tests.
Zattarra Feb 23, 2024
85868fe
MFW when trying to add cluster munitions. Also makes the singulo warh…
Zattarra Feb 23, 2024
4a4b19f
What the fuck is wrong with the submunitions.
Zattarra Feb 23, 2024
36fa1bd
Finally fixes cluster shells.
Zattarra Feb 25, 2024
4824772
Added very nice rocket assisted AP sprite from Constellado.
Zattarra Feb 25, 2024
3032d51
Adds the small rocket assisted sprite. (by Constellado)
Zattarra Feb 25, 2024
49e273b
Adds BIG BOY WMDs.
Zattarra Feb 26, 2024
e42362f
Unfucks all of the bugs I made.
Zattarra Feb 26, 2024
cae124e
Unfucks the code again. :(
Zattarra Feb 26, 2024
8f7f90c
Structure work for the KAJARI
Zattarra Feb 26, 2024
c782d09
More KAJARI work.
Zattarra Feb 26, 2024
b15a851
Shitty KAJARI work.
Zattarra Feb 26, 2024
d2476ba
I'm gonna end myself. I hate KAJARI.
Zattarra Feb 28, 2024
8e48d7f
FINALLY THE KAJARI BEAM IS DONE HOLY SHIT I AM FREED.
Zattarra Feb 29, 2024
f19e0f5
Actual sprites for singularity HE and singularity FLAK.
Zattarra Feb 29, 2024
058c11d
KAJARI beam sprite.
Zattarra Feb 29, 2024
b5cb51d
I'M GOING TO CRUCIFY WHOEVER ORIGINALLY WROTE THE METEOR CODE. (also …
Zattarra Mar 1, 2024
df2a7d3
Makes KAJARI less bad lol
Zattarra Mar 4, 2024
a6e1d7b
Cluster WMD and KAJARI shell sprites.
Zattarra Mar 4, 2024
7f965c7
Finishes the rest of the sprites and polishes up the KAJARI.
Zattarra Mar 5, 2024
2f9e619
Beginnings of the warfare panel.
Zattarra Mar 5, 2024
e83519a
More menu work.
Zattarra Mar 5, 2024
c549f9e
Robbery.
Zattarra Mar 6, 2024
af36555
kill me
Zattarra Mar 7, 2024
eefd1b8
BRICK.
Zattarra Mar 10, 2024
3305734
AAAAAAAAAAAAAAAAAAAAAAA
Zattarra Mar 13, 2024
984436c
wait wtf did i even change
Zattarra Mar 13, 2024
3ede32b
I think I got the backend working.
Zattarra Mar 17, 2024
4472cb9
I forgot everything I ever learned about HTML and JS.
Zattarra Mar 17, 2024
778b5cc
What am I doing with my life.
Zattarra Mar 17, 2024
c5c42c2
fuc
Zattarra Mar 17, 2024
27b3893
:dread:
Zattarra Mar 17, 2024
6839282
BEGONE, MERGE CONFLICT.
Zattarra Mar 24, 2024
f8f9e34
Temporarily disables UI elements.
Zattarra Mar 24, 2024
3c3cf49
Adds small electrophage shell for LORE.
Zattarra Mar 24, 2024
9a14198
Merge branch 'master' into master
Zattarra Mar 24, 2024
3c7d7f2
OOPS.
Zattarra Mar 24, 2024
b4bb6ed
Merge branch 'master' of https://github.com/Zattarra/MAPLECODE
Zattarra Mar 24, 2024
a5cfccc
Just comments it all out at this point.
Zattarra Mar 24, 2024
f73538d
FIXED FOR REAL.
Zattarra Mar 24, 2024
d63dddc
Merge branch 'master' into master
Zattarra Mar 25, 2024
f808872
Makes the Kajari set the station's alert to red. Also fixes the sprit…
Zattarra Mar 26, 2024
fb91b06
Changes sound of Kajari, cleans up some shell variables, and brings t…
Zattarra Mar 26, 2024
c9a6be8
Uncomments out the warfare event menu framework. AKA: Reverts f8f9e34
Zattarra Mar 26, 2024
297ad0f
whar
Zattarra Mar 26, 2024
029ac72
More TGUI work.
Zattarra Mar 28, 2024
3506262
TGUI fixes.
Zattarra Mar 31, 2024
2f206fa
Nice.
Zattarra Mar 31, 2024
7c56a45
Temp code robbery don't mind me.
Zattarra Apr 3, 2024
9d49ce4
What am I doing...
Zattarra Apr 3, 2024
5dad860
work
Zattarra Apr 8, 2024
30a6400
Makes the UI work.
Zattarra Apr 9, 2024
b982c56
Merge branch 'master' into master
Zattarra Apr 10, 2024
09eb571
testing new theme
Zattarra Apr 10, 2024
a6b5597
Merge branch 'master' of https://github.com/Zattarra/MAPLECODE
Zattarra Apr 10, 2024
b225e59
Why no work.
Zattarra Apr 10, 2024
008d25f
Merge branch 'master' into master
Zattarra Apr 13, 2024
05d15d3
Done.
Zattarra Apr 15, 2024
05b4dc4
Delete tgui/packages/tgui/styles/themes/deepred.scss
Zattarra Apr 15, 2024
99762ed
Merge branch 'master' into master
Zattarra Apr 16, 2024
4f4acf2
Moves everything to the story folder.
Zattarra Apr 18, 2024
839a484
Update maplestation.dme
Zattarra Apr 18, 2024
0c174d4
Updates README.
Zattarra Apr 18, 2024
6aa5b80
Fixes more paths.
Zattarra Apr 18, 2024
ffeaff4
Merge branch 'master' into master
Zattarra Apr 21, 2024
fd2ca29
Epic play.
Zattarra Apr 21, 2024
76333e4
TICK TICK TICK
Zattarra Apr 21, 2024
5d71374
Update maplestation.dme
Zattarra Apr 21, 2024
c1e2fcc
Update artillery_shells.dm
Zattarra Apr 21, 2024
611801f
Update kajari_beam.dm
Zattarra Apr 21, 2024
a8b96d3
Update kajari_beam.dm
Zattarra Apr 21, 2024
a90efce
Merge branch 'master' into master
Zattarra Apr 21, 2024
c7fe7ad
Merge branch 'master' into master
Zattarra Apr 21, 2024
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
1 change: 1 addition & 0 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ GLOBAL_LIST_INIT(admin_verbs_fun, list(
/client/proc/summon_ert,
/client/proc/toggle_nuke,
/client/proc/toggle_random_events,
/client/proc/warfareEvent, // NON-MODULE CHANGE
))
GLOBAL_PROTECT(admin_verbs_fun)
GLOBAL_LIST_INIT(admin_verbs_spawn, list(/datum/admins/proc/spawn_atom, /datum/admins/proc/podspawn_atom, /datum/admins/proc/spawn_cargo, /datum/admins/proc/spawn_objasmob, /client/proc/respawn_character, /datum/admins/proc/beaker_panel))
Expand Down
13 changes: 11 additions & 2 deletions code/modules/meteors/meteor_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,20 @@
///Used by Stray Meteor event to indicate meteor type (the type of sensor that "detected" it) in announcement
var/signature = "motion"

//Used to determine if the meteor should be spinning.
var/spins = TRUE // NON-MODULE CHANGE

//Used to determine if a player should be awarded an achievement for examining the meteor.
var/achievementworthy = TRUE // NON-MODULE CHANGE

/obj/effect/meteor/Initialize(mapload, turf/target)
. = ..()
z_original = z
GLOB.meteor_list += src
SSaugury.register_doom(src, threat)
SpinAnimation()
if(spins) // NON-MODULE CHANGE
SpinAnimation()
dest = target // NON-MODULE CHANGE
chase_target(target)

/obj/effect/meteor/Destroy()
Expand Down Expand Up @@ -114,7 +122,8 @@
/obj/effect/meteor/examine(mob/user)
. = ..()

check_examine_award(user)
if(achievementworthy) // NON-MODULE CHANGE
check_examine_award(user)

/obj/effect/meteor/attackby(obj/item/I, mob/user, params)
if(I.tool_behaviour == TOOL_MINING)
Expand Down
4 changes: 4 additions & 0 deletions maplestation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -6178,6 +6178,7 @@
#include "maplestation_modules\code\modules\admin\admin_vv.dm"
#include "maplestation_modules\code\modules\admin\smites\pain_smite.dm"
#include "maplestation_modules\code\modules\admin\smites\tabletide.dm"
#include "maplestation_modules\code\modules\admin\verbs\warfare_events.dm"
#include "maplestation_modules\code\modules\antagonists\_common\advanced_antag.dm"
#include "maplestation_modules\code\modules\antagonists\_common\advanced_objective.dm"
#include "maplestation_modules\code\modules\antagonists\_common\advanced_traitor_panel.dm"
Expand Down Expand Up @@ -6489,6 +6490,9 @@
#include "maplestation_modules\story_content\captain_equipment\code\captainclothing.dm"
#include "maplestation_modules\story_content\casual_clothing\code\casualclothing.dm"
#include "maplestation_modules\story_content\chaplain_equipment\code\chaplainclothing.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\artillery_shells.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\kajari_beam.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\singulo_warhead.dm"
#include "maplestation_modules\story_content\kimono\code\kimonoclothing.dm"
#include "maplestation_modules\story_content\laurence_equipment\code\laurence_clothing.dm"
#include "maplestation_modules\story_content\noble_equipment\code\beacon.dm"
Expand Down
131 changes: 131 additions & 0 deletions maplestation_modules/code/modules/admin/verbs/warfare_events.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
/client/proc/warfareEvent()
set name = "Warfare Module"
set desc = "Allows you to perform various actions related to warfare"
set category = "Admin.Events"

var/datum/warfare_event/tgui = new(usr)
tgui.ui_interact(usr)

/datum/warfare_event
var/client/holder //client of whoever is using this datum
var/list/selectedShells = list() //list of selected shells to fire (obj)
var/list/selectedNames = list() //list of selected shells to fire (but the name)
var/fireDirection = NORTH //default direction to fire shells (fires from top down)

/datum/warfare_event/New(user)//user can either be a client or a mob due to byondcode(tm)
if (istype(user, /client))
var/client/user_client = user
holder = user_client //if its a client, assign it to holder
else
var/mob/user_mob = user
holder = user_mob.client //if its a mob, assign the mob's client to holder

/datum/warfare_event/ui_state(mob/user)
return GLOB.admin_state

/datum/warfare_event/ui_interact(mob/user, datum/tgui/ui)
ui = SStgui.try_update_ui(user, src, ui)
if(!ui)
ui = new(user, src, "WarfareEvent")
ui.open()

/datum/warfare_event/ui_data(mob/user)
var/list/data = list()
data["selectedNames"] = selectedNames
return data

/datum/warfare_event/ui_act(action, params)
if(..())
return
switch(action)
if("addShell")
var/selected = params["selected"]
switch(selected)
if("460mm Rocket Assisted AP")
selectedShells += /obj/effect/meteor/shell/big_ap
selectedNames += "460mm Rocket Assisted AP"
. = TRUE
if("160mm Rocket Assisted AP")
selectedShells += /obj/effect/meteor/shell/small_ap
selectedNames += "160mm Rocket Assisted AP"
. = TRUE
if("160mm HE")
selectedShells += /obj/effect/meteor/shell/small_wmd_he
selectedNames += "160mm HE"
. = TRUE
if("160mm Flak")
selectedShells += /obj/effect/meteor/shell/small_wmd_flak
selectedNames += "160mm Flak"
. = TRUE
if("160mm Cluster AP")
selectedShells += /obj/effect/meteor/shell/small_cluster_ap
selectedNames += "160mm Cluster AP"
. = TRUE
if("460mm Cluster HE")
selectedShells += /obj/effect/meteor/shell/big_cluster_wmd_he
selectedNames += "460mm Cluster HE"
. = TRUE
if("460mm Cluster Flak")
selectedShells += /obj/effect/meteor/shell/big_cluster_wmd_flak
selectedNames += "460mm Cluster Flak"
. = TRUE
if("WMD KAJARI")
selectedShells += /obj/effect/meteor/shell/kajari
selectedNames += "WMD KAJARI"
. = TRUE
if("removeShell")
var/selected = params["selected"]
switch(selected)
if("460mm Rocket Assisted AP")
selectedShells -= /obj/effect/meteor/shell/big_ap
selectedNames -= "460mm Rocket Assisted AP"
. = TRUE
if("160mm Rocket Assisted AP")
selectedShells -= /obj/effect/meteor/shell/small_ap
selectedNames -= "160mm Rocket Assisted AP"
. = TRUE
if("160mm HE")
selectedShells -= /obj/effect/meteor/shell/small_wmd_he
selectedNames -= "160mm HE"
. = TRUE
if("160mm Flak")
selectedShells -= /obj/effect/meteor/shell/small_wmd_flak
selectedNames -= "160mm Flak"
. = TRUE
if("160mm Cluster AP")
selectedShells -= /obj/effect/meteor/shell/small_cluster_ap
selectedNames -= "160mm Cluster AP"
. = TRUE
if("460mm Cluster HE")
selectedShells -= /obj/effect/meteor/shell/big_cluster_wmd_he
selectedNames -= "460mm Cluster HE"
. = TRUE
if("460mm Cluster Flak")
selectedShells -= /obj/effect/meteor/shell/big_cluster_wmd_flak
selectedNames -= "460mm Cluster Flak"
. = TRUE
if("WMD KAJARI")
selectedShells -= /obj/effect/meteor/shell/kajari
selectedNames -= "WMD KAJARI"
. = TRUE
if("changeDirection")
var/direction = params["direction"]
switch(direction)
if("North")
fireDirection = 1
if("South")
fireDirection = 2
if("East")
fireDirection = 4
if("West")
fireDirection = 8
. = TRUE
if("fireShells")
for(var/shell in selectedShells)
var/list/chosenList = list()
chosenList[shell] = 1
spawn_meteor(chosenList, fireDirection, null)
selectedShells -= shell
for(var/name in selectedNames)
selectedNames -= name
. = TRUE
4 changes: 4 additions & 0 deletions maplestation_modules/story_content/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ All individual pieces of story-only content are to be stored in their own folder

- FILE - PROC/TYPE - RELATED STORY
- code\game\objects\effects\contraband.dm - proc/randomise(base_type) - Modular posters in general
- code\modules\admin\admin_verbs.dm - admin_verbs_fun - Adds the Warfare GUI to the admin panel
- code\modules\meteors\meteor_types.dm - obj/effect/meteor - Changes meteor spinning and achievement
- code\modules\meteors\meteor_types.dm - obj/effect/meteor/Initialize(mapload, turf/target) - Changes meteor spinning and fixes the destination code
- code\modules\meteors\meteor_types.dm - obj/effect/meteor/examine(mob/user) - Changes meteor achievement
Loading
Loading