-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
11 additions
and
11 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
10 changes: 3 additions & 7 deletions
10
code/modules/admin/game_master/extra_buttons/toggle_vehicle_blockers.dm
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 |
---|---|---|
@@ -1,14 +1,10 @@ | ||
/// For PvE CM a convenient button to enable/disable the invisible vehicle blockers. | ||
/client/proc/toggle_vehicle_blockers() | ||
set name = "Toggle Vehicle Blockers" | ||
set category = "Game Master.Extras" | ||
set category = "Game Master.Flags" | ||
|
||
if(!admin_holder || !check_rights(R_MOD, FALSE)) | ||
return | ||
|
||
if(!SSticker.mode) | ||
to_chat(usr, SPAN_WARNING("A mode hasn't been selected yet!")) | ||
return | ||
|
||
SSticker.mode.toggleable_flags ^= MODE_BYPASS_VEHICLE_BLOCKERS | ||
message_admins("[src] has [MODE_HAS_TOGGLEABLE_FLAG(MODE_BYPASS_VEHICLE_BLOCKERS) ? "allowed vehicles to bypass" : "prevented vehicles from bypassing"] vehicle blockers.") | ||
GLOB.vehicle_blockers = !GLOB.vehicle_blockers | ||
message_admins("[src] has [GLOB.vehicle_blockers ? "enabled" : "disabled"] vehicle blockers.") |