-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# About the pull request Changes the gamemode flags to datums, and updates the admin UI for it Also replaced the No OB flag since i have never seen anyone use it before # Explain why it's good for the game Better UI, will stop people from accidentally clicking it, and actually explains what it does # Testing Photographs and Procedure <details> <summary>Screenshots & Videos</summary> </details> # Changelog :cl: code: Changed gamemode flags to datums admin: Changed gamemode flags from many buttons to one UI /:cl:
- Loading branch information
1 parent
d38675b
commit b9a113c
Showing
40 changed files
with
309 additions
and
371 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
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
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
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
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,117 @@ | ||
/// Sets and enables all applicable gamemode modifiers | ||
/datum/game_mode/proc/initialize_gamemode_modifiers() | ||
var/list/default_modifiers = starting_round_modifiers | ||
|
||
for(var/datum/gamemode_modifier/current_modifier as anything in subtypesof(/datum/gamemode_modifier)) | ||
if(current_modifier == current_modifier::abstract_type) | ||
continue | ||
|
||
var/starts_enabled = FALSE | ||
for(var/starting_modifier in default_modifiers) | ||
if(starting_modifier != current_modifier) | ||
continue | ||
starts_enabled = TRUE | ||
default_modifiers -= starting_modifier | ||
break | ||
|
||
var/datum/gamemode_modifier/modifier = new current_modifier | ||
if(starts_enabled) | ||
modifier.active = TRUE | ||
round_modifiers[current_modifier] += modifier | ||
|
||
/// Returns the state of the modifier, using its typepath | ||
/datum/game_mode/proc/get_gamemode_modifier(modifier_typepath) | ||
var/datum/gamemode_modifier/modifier = round_modifiers[modifier_typepath] | ||
if(!modifier) | ||
CRASH("Invalid gamemode modifier, [modifier_typepath], was attempted to be checked.") | ||
return modifier.active | ||
|
||
/// Sets the state of the modifier, using its typepath and the state to set it to | ||
/datum/game_mode/proc/set_gamemode_modifier(modifier_typepath, enabled = FALSE) | ||
var/datum/gamemode_modifier/modifier = round_modifiers[modifier_typepath] | ||
if(!modifier) | ||
CRASH("Invalid gamemode modifier, [modifier_typepath], was attempted to be set.") | ||
modifier.active = enabled | ||
return TRUE | ||
|
||
/datum/gamemode_modifier | ||
var/active = FALSE | ||
var/modifier_name | ||
var/modifier_desc | ||
var/datum/gamemode_modifier/abstract_type = /datum/gamemode_modifier | ||
|
||
/datum/gamemode_modifier/blood_optimization | ||
modifier_name = "Blood Optimizations" | ||
modifier_desc = "Blood dries instantly, footsteps cannot get bloodied." | ||
|
||
/datum/gamemode_modifier/defib_past_armor | ||
modifier_name = "Strong Defibrillators" | ||
modifier_desc = "Allows defibrillators to ignore armor when reviving." | ||
|
||
/datum/gamemode_modifier/disable_combat_cas | ||
modifier_name = "Disable Combat CAS" | ||
modifier_desc = "Prevents purchasing weapons or ammo in the dropship's part fabricators." | ||
|
||
/datum/gamemode_modifier/disable_attacking_corpses | ||
modifier_name = "Disable Attacking Corpses" | ||
modifier_desc = "Prevents weapons from hitting dead mobs, and blocks executions." | ||
|
||
/datum/gamemode_modifier/disable_ib | ||
modifier_name = "Disable Internal Bleeding" | ||
modifier_desc = "Prevents mobs from getting internal bleeding when injured." | ||
|
||
/datum/gamemode_modifier/disable_long_range_sentry | ||
modifier_name = "Disable Long Range Sentry Upgrades" | ||
modifier_desc = "Prevents sentries from upgrading to long range variants. Applies to DMR and Long-Range Plasma upgrades." | ||
|
||
/datum/gamemode_modifier/disable_ob | ||
modifier_name = "Disable Orbital Bombardment Cannon" | ||
modifier_desc = "Prevents the Orbital Bombardment system from firing OB warheads." | ||
|
||
/datum/gamemode_modifier/disable_strip_essentials | ||
modifier_name = "Disable Stripping Hostiles Essentials" | ||
modifier_desc = "Requires Disable Stripping Hostiles enabled. Allows factions to strip non-essentials from other factions. Essentials are ID, helmet, armor, uniform, and boots." | ||
|
||
/datum/gamemode_modifier/disable_stripdrag_enemy | ||
modifier_name = "Disable Stripping Hostiles" | ||
modifier_desc = "Prevents factions from stripping or dragging other factions. Applies to stripping, dragging, sensors, splints, and internals." | ||
|
||
/datum/gamemode_modifier/disable_wj_respawns | ||
modifier_name = "Disable Working Joe Respawning" | ||
modifier_desc = "Prevents players from joining as Working Joe multiple times in a round." | ||
|
||
/datum/gamemode_modifier/disposable_mobs | ||
modifier_name = "Allow Disposing Mobs" | ||
modifier_desc = "Allows non-crawler mobs to enter non-narrow disposals systems." | ||
|
||
/datum/gamemode_modifier/ignore_wj_restrictions | ||
modifier_name = "Disable Working Joe Joining Restrictions" | ||
modifier_desc = "Removes all restrictions on Working Joe's joining. Applies to respawn cooldown, slot cap, and administrative locks." | ||
|
||
/datum/gamemode_modifier/indestructible_splints | ||
modifier_name = "Indestructible Splints" | ||
modifier_desc = "Turns splints into nanosplints when the splint is created." | ||
|
||
/datum/gamemode_modifier/lz_mortar_protection | ||
modifier_name = "Landing Zone Mortar Protection" | ||
modifier_desc = "Prevents mortars from targetting the primary landing zone." | ||
|
||
/datum/gamemode_modifier/lz_roundstart_miasma | ||
modifier_name = "Roundstart Landing Zone Miasma" | ||
modifier_desc = "Miasma is applied to both landing zones roundstart. Does nothing if activated after miasma trigger 3 minutes into round." | ||
|
||
/datum/gamemode_modifier/lz_weeding | ||
modifier_name = "Landing Zone Weeding" | ||
modifier_desc = "Allows xenomorphs to weed all landing zones." | ||
|
||
/datum/gamemode_modifier/mortar_laser_warning | ||
modifier_name = "Mortar Telegraphing" | ||
modifier_desc = "Shows a visual warning of where a mortar will hit." | ||
|
||
/datum/gamemode_modifier/permadeath | ||
modifier_name = "Human Permadeath" | ||
modifier_desc = "Humans will permanently die without possibility of revival." | ||
|
||
/datum/gamemode_modifier/yautja_shipside_large_sd | ||
modifier_name = "Yautja Shipside Large SD" | ||
modifier_desc = "Allows Yautja to large self destruct on the mainship z-level." |
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
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
Oops, something went wrong.