mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 10:01:40 +00:00
Allows roundstart cyborgs to select their own name
But only if the option is enabled in the server config. Credit to Neerti for originally coding this.
This commit is contained in:
@@ -330,6 +330,10 @@ Turf and target are seperate in case you want to teleport some distance from a t
|
|||||||
A.aiPDA.owner = newname
|
A.aiPDA.owner = newname
|
||||||
A.aiPDA.name = newname + " (" + A.aiPDA.ownjob + ")"
|
A.aiPDA.name = newname + " (" + A.aiPDA.ownjob + ")"
|
||||||
|
|
||||||
|
if(cmptext("cyborg",role))
|
||||||
|
if(isrobot(src))
|
||||||
|
var/mob/living/silicon/robot/A = src
|
||||||
|
A.custom_name = newname
|
||||||
|
|
||||||
fully_replace_character_name(oldname,newname)
|
fully_replace_character_name(oldname,newname)
|
||||||
|
|
||||||
|
|||||||
@@ -98,6 +98,8 @@
|
|||||||
var/revival_cloning = 1
|
var/revival_cloning = 1
|
||||||
var/revival_brain_life = -1
|
var/revival_brain_life = -1
|
||||||
|
|
||||||
|
var/rename_cyborg = 1
|
||||||
|
|
||||||
//Used for modifying movement speed for mobs.
|
//Used for modifying movement speed for mobs.
|
||||||
//Unversal modifiers
|
//Unversal modifiers
|
||||||
var/run_speed = 0
|
var/run_speed = 0
|
||||||
@@ -277,6 +279,8 @@
|
|||||||
config.revival_cloning = text2num(value)
|
config.revival_cloning = text2num(value)
|
||||||
if("revival_brain_life")
|
if("revival_brain_life")
|
||||||
config.revival_brain_life = text2num(value)
|
config.revival_brain_life = text2num(value)
|
||||||
|
if("rename_cyborg")
|
||||||
|
config.rename_cyborg = text2num(value)
|
||||||
if("run_delay")
|
if("run_delay")
|
||||||
config.run_speed = text2num(value)
|
config.run_speed = text2num(value)
|
||||||
if("walk_delay")
|
if("walk_delay")
|
||||||
|
|||||||
@@ -53,6 +53,7 @@
|
|||||||
if(..()) return 0
|
if(..()) return 0
|
||||||
R.name = heldname
|
R.name = heldname
|
||||||
R.real_name = heldname
|
R.real_name = heldname
|
||||||
|
R.custom_name = heldname //Required or else if the cyborg's module changes, their name is lost.
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|||||||
@@ -282,6 +282,10 @@
|
|||||||
|
|
||||||
var/mob/living/silicon/robot/O = new /mob/living/silicon/robot( loc )
|
var/mob/living/silicon/robot/O = new /mob/living/silicon/robot( loc )
|
||||||
|
|
||||||
|
if (!config.rename_cyborg)
|
||||||
|
else
|
||||||
|
O.rename_self("cyborg", 1)
|
||||||
|
|
||||||
// cyborgs produced by Robotize get an automatic power cell
|
// cyborgs produced by Robotize get an automatic power cell
|
||||||
O.cell = new(O)
|
O.cell = new(O)
|
||||||
O.cell.maxcharge = 7500
|
O.cell.maxcharge = 7500
|
||||||
|
|||||||
@@ -18,6 +18,10 @@ REVIVAL_CLONING 1
|
|||||||
# amount of time (in hundredths of seconds) for which a brain retains the "spark of life" after the person's death (set to -1 for infinite)
|
# amount of time (in hundredths of seconds) for which a brain retains the "spark of life" after the person's death (set to -1 for infinite)
|
||||||
REVIVAL_BRAIN_LIFE -1
|
REVIVAL_BRAIN_LIFE -1
|
||||||
|
|
||||||
|
### RENAMING ###
|
||||||
|
|
||||||
|
# Whether cyborgs can rename themselves at roundstart or when built. Has no effect on roboticists renaming cyborgs the normal way. Set to 0 to disable self-renaming.
|
||||||
|
RENAME_CYBORG 1
|
||||||
|
|
||||||
### MOB MOVEMENT ###
|
### MOB MOVEMENT ###
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user