var/const/SIZEPLAY_TINY=1 var/const/SIZEPLAY_MICRO=2 var/const/SIZEPLAY_NORMAL=3 var/const/SIZEPLAY_MACRO=4 var/const/SIZEPLAY_HUGE=5 /mob/living var/sizeplay_size=SIZEPLAY_NORMAL proc sizeplay_set(var/newsize) if(!istype(src,/mob/living/carbon)) if(newsizeinitial(src.sizeplay_size)+1) return if(newsize==initial(src.sizeplay_size)) //src.transform=get_matrix_norm() //src.pixel_y=0 stable_matrix(get_matrix_norm(),0) src.sizeplay_size=newsize return else if(newsize>initial(src.sizeplay_size)) //src.transform=get_matrix_large() //src.pixel_y=16 stable_matrix(get_matrix_large(),8) src.sizeplay_size=newsize return return //Paranoid returns else if(newsize==SIZEPLAY_TINY) //src.transform=get_matrix_smallest() //src.pixel_y=-8 stable_matrix(get_matrix_smallest(),-8) src.sizeplay_size=newsize else if(newsize==SIZEPLAY_MICRO) //src.transform=get_matrix_small() //src.pixel_y=-8 stable_matrix(get_matrix_small(),-4) src.sizeplay_size=newsize else if(newsize==SIZEPLAY_MACRO) //src.transform=get_matrix_large() //src.pixel_y=16 stable_matrix(get_matrix_large(),8) src.sizeplay_size=newsize else if(newsize==SIZEPLAY_HUGE) // Huge should be the largest size // removed these comments // not being used anyway stable_matrix(get_matrix_largest(),16) src.sizeplay_size=newsize else //src.transform=get_matrix_norm() //src.pixel_y=0 stable_matrix(get_matrix_norm(),0) src.sizeplay_size=SIZEPLAY_NORMAL // src.updateappearance sizeplay_shrink() //if(!istype(src,/mob/living/carbon)) // return if(sizeplay_size>SIZEPLAY_TINY) src.sizeplay_set(sizeplay_size-1) for(var/mob/living/M in src.stomach_contents) M.sizeplay_shrink() sizeplay_grow() //if(!istype(src,/mob/living/carbon)) // return if(sizeplay_size