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 2: Enemies and Parallax #478

Open
wants to merge 278 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
278 commits
Select commit Hold shift + click to select a range
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
9642f28
Start of Warfare Module 2.
Zattarra Apr 22, 2024
2d0e200
Motherfucker.
Zattarra Apr 22, 2024
47f2f73
AI looks really hard.
Zattarra Apr 22, 2024
bcd1919
Drone stuff.
Zattarra Apr 23, 2024
fc736d4
Parallax framwork.
Zattarra Apr 23, 2024
b2807c8
AAAAAAAAAAAAAAAAAAAAAAAAA
Zattarra Apr 23, 2024
9df6580
I think that my code is shitting itself.
Zattarra Apr 23, 2024
7c1466a
No longer shitting itself?
Zattarra Apr 23, 2024
b24bd15
What am I doing.
Zattarra Apr 23, 2024
936321d
D:
Zattarra Apr 23, 2024
c3c6f76
What am I doing.
Zattarra Apr 23, 2024
69739e7
Fleshes the cell.
Zattarra Apr 24, 2024
10a0fd3
DME DME DME
Zattarra Apr 24, 2024
2af8c4c
TAB INDENTATION.
Zattarra Apr 24, 2024
d34f486
Alloyed Aerialite
Zattarra Apr 24, 2024
d24be17
Rest of chems.
Zattarra Apr 24, 2024
4b7ac8d
Sounds.
Zattarra Apr 24, 2024
eaa631d
Ooops.
Zattarra Apr 24, 2024
02dbe68
Bruh.
Zattarra Apr 24, 2024
bea8dbc
MOAR PARTS.
Zattarra Apr 24, 2024
89d6210
hm
Zattarra Apr 24, 2024
d08d91c
EMISSIVES and also servo sprite.
Zattarra Apr 25, 2024
83f35a0
More parts.
Zattarra Apr 25, 2024
bf8d0b8
What the fuck is emissives?
Zattarra Apr 25, 2024
86babbe
YEEEEEEEEEEEEEEEEES.
Zattarra Apr 25, 2024
44c24b8
Miracles everyday.
Zattarra Apr 25, 2024
6c0aef0
UPDATE BG SPRITE
Zattarra Apr 26, 2024
e6aee69
Updated component descriptions to be more inline with the reagent the…
Zattarra Apr 26, 2024
f5ed9ba
Makes the KAJARI force dust anything upon a direct hit.
Zattarra Apr 26, 2024
d4258bb
Turns the KAJARI forcedust into a var that defaults to FALSE. Increas…
Zattarra Apr 26, 2024
264a42d
High velocity version of coilslug.
Zattarra Apr 26, 2024
a724c3a
Upgrades the Redtech components to T5.
Zattarra Apr 27, 2024
091deb6
Literally moves up the cell sprite by one pixel.
Zattarra Apr 27, 2024
46e9d10
UNBIDDEN far ringed sprite.
Zattarra Apr 28, 2024
68b20d8
I think making this list static will fix all of the fails.
Zattarra Apr 28, 2024
54e05f6
Merge branch 'master' into MODULE-2
Zattarra Apr 28, 2024
82f0e6e
Drone work.
Zattarra Apr 30, 2024
492241c
More AI work.
Zattarra May 2, 2024
45cc118
Will need more work later.
Zattarra May 2, 2024
b4bc350
Hopefully adjusts the maintain distance behavior to be faster.
Zattarra May 2, 2024
0e2b283
Updated ringed UNBIDDEN sprite.
Zattarra May 4, 2024
913ee02
Makes the parallax system not bad anymore.
Zattarra May 5, 2024
5093659
Makes the default of the ship start shielded.
Zattarra May 5, 2024
b3bafbe
Removes bad testing code.
Zattarra May 5, 2024
027f8c8
Giga fixes all of the parallax stuff for good, right?
Zattarra May 12, 2024
b880189
FOR REAL THIS TIME
Zattarra May 12, 2024
84dfa1f
Merge branch 'master' into MODULE-2
Zattarra May 12, 2024
3b67d37
Merge branch 'master' into MODULE-2
Zattarra May 12, 2024
423dcff
A LOT of chemical and material code. Why? Miracle Matter.
Zattarra May 14, 2024
987dd57
Makes the prototype miracle matter hyper radioactive.
Zattarra May 14, 2024
aa38b78
Wotk.
Zattarra May 16, 2024
871ae84
Drone work.
Zattarra May 16, 2024
50f6eed
Support for farther parallax distances.
Zattarra May 19, 2024
f896769
oops
Zattarra May 19, 2024
787ebd9
New far away sprite.
Zattarra May 19, 2024
60ca2b8
Lobotomizes drone code for now.
Zattarra May 19, 2024
3e42e5a
OH LORDY.
Zattarra May 20, 2024
caa65db
Fixes a bug dealing with Lavaland and the ship background.
Zattarra May 20, 2024
a297585
First implementation of cinematic system.
Zattarra May 20, 2024
b20a28e
Sus.
Zattarra May 24, 2024
f199130
Attempt.
Zattarra May 26, 2024
f4387e9
ops
Zattarra May 26, 2024
9fe16a8
lobotmizes more code
Zattarra May 26, 2024
6955f54
Ugh.
Zattarra Jun 3, 2024
5d577e3
hm
Zattarra Jun 3, 2024
b971748
Fill... thing... no work.
Zattarra Jun 3, 2024
aaf450a
START OF THE REDTECH DREADNOUGHT
Zattarra Jun 3, 2024
b526593
whar
Zattarra Jun 8, 2024
cbcac7d
Well, at least it works now. Sort of.
Zattarra Jun 8, 2024
8b4e983
More work.
Zattarra Jun 11, 2024
bda059d
The surgeon.
Zattarra Jun 12, 2024
78209ec
Inventory code for the dreadnought.
Zattarra Jun 12, 2024
9ec79f3
MORE WORK.
Zattarra Jun 13, 2024
e861c21
mfw sprites
Zattarra Jun 14, 2024
d9fc986
Hacky ass cloak code.
Zattarra Jun 14, 2024
2c5a00e
Temp sprites, works out the cloak.
Zattarra Jun 15, 2024
6acabfe
More stuff.
Zattarra Jun 16, 2024
4e97152
Merge branch 'master' into MODULE-2
Zattarra Jun 17, 2024
936eb15
agh
Zattarra Jun 17, 2024
c254ae2
Fixes inhands.
Zattarra Jun 18, 2024
c0f617e
ops
Zattarra Jun 18, 2024
30a3ec1
yahoo
Zattarra Jun 18, 2024
c1b1375
work
Zattarra Jun 18, 2024
0fe25a3
ITS ALL MINE MINE MINE
Zattarra Jun 19, 2024
72bfc9f
RL energy
Zattarra Jun 19, 2024
241cb69
w
Zattarra Jun 20, 2024
ca01c3c
EVERYTHING WORKS AGAIN.
Zattarra Jun 20, 2024
dcf226c
ag
Zattarra Jun 21, 2024
f1fe48d
SOUND.
Zattarra Jun 21, 2024
f5adeaa
fug
Zattarra Jun 21, 2024
e617b92
coilgin
Zattarra Jun 21, 2024
f4020f1
shield
Zattarra Jun 21, 2024
6bf8452
s
Zattarra Jun 22, 2024
3b369da
bullets an dstuff
Zattarra Jun 23, 2024
cdd8a5c
game
Zattarra Jun 23, 2024
e548261
Merge branch 'master' into MODULE-2
Zattarra Jun 23, 2024
d5a82f4
kms
Zattarra Jun 24, 2024
23cc9a4
Merge branch 'MODULE-2' of https://github.com/Zattarra/MAPLECODE into…
Zattarra Jun 24, 2024
aca7c2c
Merge branch 'master' into MODULE-2
Zattarra Jun 24, 2024
7ab50e3
charge
Zattarra Jun 24, 2024
459ec8a
Merge branch 'MODULE-2' of https://github.com/Zattarra/MAPLECODE into…
Zattarra Jun 24, 2024
9d78d1a
Merge branch 'master' into MODULE-2
Zattarra Jun 25, 2024
a714292
pls
Zattarra Jun 25, 2024
7515dda
Merge branch 'MODULE-2' of https://github.com/Zattarra/MAPLECODE into…
Zattarra Jun 25, 2024
eade131
REPAR
Zattarra Jun 26, 2024
ad09819
hot
Zattarra Jun 26, 2024
18148af
face
Zattarra Jun 26, 2024
6c65586
Merge branch 'master' into MODULE-2
Zattarra Jun 26, 2024
04d8f90
Inhands, sprites for trail and storage.
Zattarra Jun 28, 2024
1e422a4
Merge branch 'MODULE-2' of https://github.com/Zattarra/MAPLECODE into…
Zattarra Jun 28, 2024
9c08099
Random fixes.
Zattarra Jun 29, 2024
2f1a9f3
IT'S ALL ON FIRE, I'M NOT A SPRITER OH GOD OH FUCK ME.
Zattarra Jun 30, 2024
d4950b8
kil me
Zattarra Jun 30, 2024
858a3aa
Merge branch 'master' into MODULE-2
Zattarra Jun 30, 2024
4e3735e
Merge branch 'master' into MODULE-2
Zattarra Jul 16, 2024
13da39b
Theoretically fixes radio and access, adds 20% burn resist and 20% br…
Zattarra Jul 16, 2024
cef15ce
one word
Zattarra Jul 16, 2024
6395028
Made the scan less scary.
Zattarra Jul 16, 2024
ad4feba
Merge branch 'master' into MODULE-2
Zattarra Aug 4, 2024
b73e15e
Start of curio code.
Zattarra Aug 6, 2024
7ab8a10
Tcurios.
Zattarra Aug 8, 2024
514bf81
More curio code.
Zattarra Aug 10, 2024
6a964e4
Temp sprites to make the tests not die.
Zattarra Aug 11, 2024
d07642f
THANKS, GITHUB COPILOT. REAL COOL.
Zattarra Aug 11, 2024
8d9d268
Augh.
Zattarra Aug 11, 2024
23883ec
A
Zattarra Aug 11, 2024
867f8cc
Update.
Zattarra Aug 12, 2024
967b41e
I'll just push my shitty ass code and call it a day.
Zattarra Aug 18, 2024
f14312b
og
Zattarra Aug 18, 2024
fa4a02d
Please check my code, Github.
Zattarra Aug 18, 2024
17466d6
a
Zattarra Aug 18, 2024
2ecec30
uh oh
Zattarra Aug 18, 2024
361b523
Perish.
Zattarra Aug 21, 2024
bf7e721
Guess it's a feature now.
Zattarra Aug 21, 2024
4655d86
lol
Zattarra Aug 24, 2024
a8f6f43
Complete implementation of the godslayer round. (will no longer blow …
Zattarra Aug 26, 2024
410b096
Merge branch 'master' into MODULE-2
Zattarra Aug 29, 2024
8722654
Some changes.
Zattarra Aug 30, 2024
89e7bc9
Merge branch 'MODULE-2' of https://github.com/Zattarra/MAPLECODE into…
Zattarra Aug 30, 2024
4ddc1c4
God.
Zattarra Aug 30, 2024
5bb6f9c
RLshots emp when not carbon and changed name.
Zattarra Aug 30, 2024
b5703ac
Faraday visuals setup.
Zattarra Aug 30, 2024
17b185e
Brug.
Zattarra Sep 1, 2024
54323cc
Close.
Zattarra Sep 1, 2024
944d6ad
Remove all air.
Zattarra Sep 3, 2024
3907124
Merge branch 'master' into MODULE-2
Zattarra Sep 8, 2024
04267b7
Faraday shield fix.
Zattarra Sep 10, 2024
7db6a31
Godslayer checks for firer QDEL.
Zattarra Sep 10, 2024
44b948b
Godslayer updates plus aliases.
Zattarra Sep 10, 2024
416aa89
Merge branch 'master' into MODULE-2
Zattarra Sep 18, 2024
8a83cfd
Turf work.
Zattarra Sep 28, 2024
dbcc3c0
Update redturf.dm
Zattarra Sep 28, 2024
2c34ce4
Merge branch 'master' into MODULE-2
Zattarra Oct 3, 2024
1cffada
Pray.
Zattarra Oct 3, 2024
4d9da38
Not active open turf done.
Zattarra Oct 6, 2024
cdfba43
Indestructable setpiece code.
Zattarra Oct 10, 2024
72b4107
Merge branch 'master' into MODULE-2
Zattarra Oct 29, 2024
26d9796
Merge branch 'master' into MODULE-2
Zattarra Nov 3, 2024
aa4cf9f
Pray.
Zattarra Nov 3, 2024
cec9374
Trolling.
Zattarra Nov 4, 2024
3516d64
Holy shit coilguns.
Zattarra Nov 7, 2024
2d12a67
More coilgun work.
Zattarra Nov 8, 2024
02cdc7a
More coilgun work.
Zattarra Nov 9, 2024
fd3a44f
Merge branch 'master' into MODULE-2
Zattarra Nov 10, 2024
22bed87
Oh Lord almighty save my damned soul.
Zattarra Nov 10, 2024
de9588e
AAAAAAAAAAAAAAAAAAAAA.
Zattarra Nov 11, 2024
ea410a7
FIX.
Zattarra Nov 11, 2024
19e7b25
Lots of coilgun work.
Zattarra Nov 23, 2024
2eee820
Check my stuff.
Zattarra Nov 24, 2024
d2c383a
Resend.
Zattarra Nov 24, 2024
cf885ad
Whoops.
Zattarra Nov 24, 2024
f07a980
Minor changes.
Zattarra Nov 24, 2024
2edecb9
Cell hotfix.
Zattarra Nov 24, 2024
b652735
Merge branch 'master' into MODULE-2
Zattarra Nov 24, 2024
4c0e8c2
The Godslayer now sends you to Terry on hit.
Zattarra Nov 25, 2024
ef3284c
Merge branch 'MODULE-2' of https://github.com/Zattarra/MAPLECODE into…
Zattarra Nov 25, 2024
9d9a230
Pacifists won't roast themselves when overheating now.
Zattarra Nov 25, 2024
6249ca4
Balance, I guess.
Zattarra Dec 1, 2024
67b6700
Merge branch 'master' into MODULE-2
Zattarra Dec 2, 2024
500b4cf
Red reagent magic rework compatibility.
Zattarra Dec 2, 2024
e1320f5
OOPS.
Zattarra Dec 2, 2024
31d1c2b
Fixes order of the Godslayer.
Zattarra Dec 8, 2024
d5ac4f7
Merge branch 'master' into MODULE-2
Zattarra Dec 23, 2024
00ac20b
Extra snowglobes part one.
Zattarra Dec 23, 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
3 changes: 2 additions & 1 deletion code/_onclick/hud/parallax/parallax.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

if(!length(C.parallax_layers_cached))
C.parallax_layers_cached = list()
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/planet/unbidden(null, src) // NON-MODULE CHANGE
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_1(null, src)
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_2(null, src)
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/planet(null, src)
Expand All @@ -22,7 +23,7 @@

C.parallax_layers = C.parallax_layers_cached.Copy()

if (length(C.parallax_layers) > C.parallax_layers_max)
if (length(C.parallax_layers) > C.parallax_layers_max + 1) // NON-MODULE CHANGE
C.parallax_layers.len = C.parallax_layers_max

C.screen |= (C.parallax_layers)
Expand Down
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
22 changes: 22 additions & 0 deletions maplestation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -6093,6 +6093,7 @@
#include "maplestation_modules\code\__DEFINES\keybinding.dm"
#include "maplestation_modules\code\__DEFINES\living.dm"
#include "maplestation_modules\code\__DEFINES\mecha.dm"
#include "maplestation_modules\code\__DEFINES\mobfactions.dm"
#include "maplestation_modules\code\__DEFINES\paperwork_defines.dm"
#include "maplestation_modules\code\__DEFINES\signals.dm"
#include "maplestation_modules\code\__DEFINES\spans.dm"
Expand Down Expand Up @@ -6219,6 +6220,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 @@ -6546,6 +6548,26 @@
#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\coilguns.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\curios.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\dreadactions.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\dreaditems.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\droneai.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\drones.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\kajari_beam.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\redcinematics.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\reddread.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\redeffects.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\redmaterials.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\redparts.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\redprojectiles.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\redreagents.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\redsetpieces.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\redturf.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\ship_parallax.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\shockattack.dm"
#include "maplestation_modules\story_content\deepred_warfare\code\singulo_warhead.dm"
#include "maplestation_modules\story_content\grey_equipment\code\greyclothing.dm"
#include "maplestation_modules\story_content\jessie_equipment\code\jessie_clothing.dm"
#include "maplestation_modules\story_content\kimono\code\kimonoclothing.dm"
Expand Down
2 changes: 2 additions & 0 deletions maplestation_modules/code/__DEFINES/mobfactions.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// All DEEP RED event machines.
#define FACTION_DEEPRED "deepred"
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