mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 03:57:48 +01:00
Adds the ability to ban people from ghost roles
There are some mobs you can play as now that are PRETTY ABUSABLE, and there's some players who play fine normally, but get into trouble and take things too far when you put them in special roles, SO! Rather than just flat banning those people from the server, it would be cool if we could just, ban them from playing those roles. This should help with that.
This commit is contained in:
@@ -51,6 +51,9 @@
|
||||
var/finalized = "No"
|
||||
|
||||
while(finalized == "No" && M.client)
|
||||
if(jobban_isbanned(M, "GhostRoles"))
|
||||
to_chat(M, "<font color='red'><B>You cannot inhabit this creature because you are banned from playing ghost roles.</B></font>")
|
||||
return
|
||||
choice = tgui_input_list(M, "What type of predator do you want to play as?", "Maintpred Choice", possible_mobs)
|
||||
if(!choice)
|
||||
randomize = TRUE
|
||||
|
||||
@@ -84,6 +84,11 @@
|
||||
description_info = "A ghost can click on this to return to the round as whatever is contained inside this object."
|
||||
|
||||
/obj/structure/ghost_pod/ghost_activated/attack_ghost(var/mob/observer/dead/user)
|
||||
//VOREStation Add Start
|
||||
if(jobban_isbanned(user, "GhostRoles"))
|
||||
to_chat(user, "<font color='red'><B>You cannot inhabit this creature because you are banned from playing ghost roles.</B></font>")
|
||||
return
|
||||
//VOREStation Add End
|
||||
if(used)
|
||||
to_chat(user, "<span class='warning'>Another spirit appears to have gotten to \the [src] before you. Sorry.</span>")
|
||||
return
|
||||
|
||||
@@ -11,6 +11,10 @@
|
||||
var/activated = FALSE
|
||||
|
||||
/obj/structure/ghost_pod/manual/attack_ghost(var/mob/observer/dead/user)
|
||||
if(jobban_isbanned(user, "GhostRoles"))
|
||||
to_chat(user, "<font color='red'><B>You cannot inhabit this creature because you are banned from playing ghost roles.</B></font>")
|
||||
return
|
||||
|
||||
if(!remains_active || busy)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user