forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 130
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
46 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/datum/modpack/verbs | ||
name = "Verbs" | ||
desc = "Кастомные вербы, а также возвращение некоторых вырезанных." | ||
author = "dj-34" |
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,3 @@ | ||
#include "_verbs.dm" | ||
|
||
#include "code/verbs.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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
Respawn to OOC | ||
May be returned in the future by offs (because it's commented in code\modules\mob) | ||
*/ | ||
/mob/verb/abandon_mob() | ||
set name = "Respawn" | ||
set category = "OOC" | ||
|
||
if(!GLOB.configuration.general.respawn_enabled) | ||
to_chat(usr, "<span class='warning'>Respawning is disabled.</span>") | ||
return | ||
|
||
if(stat != DEAD || !SSticker) | ||
to_chat(usr, "<span class='boldnotice'>You must be dead to use this!</span>") | ||
return | ||
|
||
log_game("[key_name(usr)] has respawned.") | ||
|
||
to_chat(usr, "<span class='boldnotice'>Make sure to play a different character, and please roleplay correctly!</span>") | ||
|
||
if(!client) | ||
log_game("[key_name(usr)] respawn failed due to disconnect.") | ||
return | ||
client.screen.Cut() | ||
client.screen += client.void | ||
|
||
if(!client) | ||
log_game("[key_name(usr)] respawn failed due to disconnect.") | ||
return | ||
|
||
var/mob/new_player/M = new /mob/new_player() | ||
if(!client) | ||
log_game("[key_name(usr)] respawn failed due to disconnect.") | ||
qdel(M) | ||
return | ||
|
||
M.key = key | ||
return |