mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Added three utilities for admins & developers
- There is a new option in the player panel labeled "Send back to Lobby", which will send a given player back to the lobby. - The player panel also has a shortcut to the "Spawn Character" verb. - Finally, there's a new config option that disables the warning message about multikeying if two mobs with the same CID are found; this option should NOT be enabled if multikeying is prohibited by the server rules. It is simply a developer tool, as multikeying is sometimes necessary to test new features that require two clients interacting.
This commit is contained in:
@@ -369,12 +369,18 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
||||
if(!holder)
|
||||
return
|
||||
|
||||
//I frontload all the questions so we don't have a half-done process while you're reading.
|
||||
var/client/picked_client = input(src, "Please specify which client's character to spawn.", "Client", "") as null|anything in GLOB.clients
|
||||
if(!picked_client)
|
||||
return
|
||||
|
||||
var/location = alert(src,"Please specify where to spawn them.", "Location", "Right Here", "Arrivals", "Cancel")
|
||||
respawn_character_proper(picked_client)
|
||||
|
||||
/client/proc/respawn_character_proper(client/picked_client)
|
||||
if(!istype(picked_client))
|
||||
return
|
||||
|
||||
//I frontload all the questions so we don't have a half-done process while you're reading.
|
||||
var/location = alert(src, "Please specify where to spawn them.", "Location", "Right Here", "Arrivals", "Cancel")
|
||||
if(location == "Cancel" || !location)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user