size fixed (mostly)

This commit is contained in:
Metis
2024-09-15 22:31:19 -04:00
parent 5f79483be8
commit ecf23a205e
11 changed files with 239 additions and 48 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ mob/proc/checkloadappearance()
if(alert(H, "You should only load a character that has not currently died in the round. Do you accept this?", "Warning", "Yes", "No") == "Yes" && world.time <= (H.time_initialized + 900))
H.client?.prefs?.copy_to(H)
if (H.custom_body_size) //Do they have a custom size set?
H.resize(H.custom_body_size * 0.01)
H.resize(H.custom_body_size)
H.real_name = H.client?.prefs?.real_name
H.mind.name = H.real_name //Makes sure to change their mind name to their real name.
SSquirks.AssignQuirks(H, H.client, TRUE, FALSE, H.job, FALSE)//This Assigns the selected character's quirks
+2 -1
View File
@@ -4,7 +4,7 @@
/mob/living
var/size_multiplier = 1 //multiplier for the mob's icon size atm
var/previous_size = 1
var/custom_body_size = 100
var/custom_body_size = 1
//Cyanosis - Action that resizes the sprite for the client but nobody else. Say goodbye to attacking yourself when someone's above you lmao
var/datum/action/sizecode_resize/small_sprite
@@ -102,6 +102,7 @@
/datum/movespeed_modifier/size
id = MOVESPEED_ID_SIZE
variable = TRUE
/mob/living/proc/resize(var/new_size, var/animate = TRUE)
size_multiplier = new_size //This will be passed into update_transform() and used to change health and speed.