mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-05 23:13:06 +00:00
Adds resting pose selection to dogborgs
-New verb to choose between resting/sitting/belly-up poses. -New sprites for all the animated borgs (and maybe the rest later when they get anims and shit) -Resting, sitting, and belly-up poses now come in all directions. (on the currently finished set) -New placeholder sprite to prevent invisible borgs just in case. -Rearranged the contents of the sprite file to a more consistent order. -Ported the animated version of dark medihound, also gave it the poses.
This commit is contained in:
@@ -179,6 +179,7 @@
|
||||
R.verbs |= /mob/living/silicon/robot/proc/ex_reserve_refill
|
||||
R.verbs |= /mob/living/silicon/robot/proc/robot_mount
|
||||
R.verbs |= /mob/living/proc/shred_limb
|
||||
R.verbs |= /mob/living/silicon/robot/proc/rest_style
|
||||
..()
|
||||
|
||||
/obj/item/weapon/robot_module/robot/knine/respawn_consumable(var/mob/living/silicon/robot/R, var/amount)
|
||||
@@ -251,6 +252,7 @@
|
||||
R.verbs |= /mob/living/silicon/robot/proc/ex_reserve_refill
|
||||
R.verbs |= /mob/living/silicon/robot/proc/robot_mount
|
||||
R.verbs |= /mob/living/proc/shred_limb
|
||||
R.verbs |= /mob/living/silicon/robot/proc/rest_style
|
||||
..()
|
||||
|
||||
/obj/item/weapon/robot_module/robot/ert
|
||||
@@ -296,6 +298,7 @@
|
||||
R.verbs |= /mob/living/silicon/robot/proc/ex_reserve_refill
|
||||
R.verbs |= /mob/living/silicon/robot/proc/robot_mount
|
||||
R.verbs |= /mob/living/proc/shred_limb
|
||||
R.verbs |= /mob/living/silicon/robot/proc/rest_style
|
||||
..()
|
||||
|
||||
/obj/item/weapon/robot_module/robot/scrubpup
|
||||
@@ -375,6 +378,7 @@
|
||||
R.verbs |= /mob/living/silicon/robot/proc/ex_reserve_refill
|
||||
R.verbs |= /mob/living/silicon/robot/proc/robot_mount
|
||||
R.verbs |= /mob/living/proc/shred_limb
|
||||
R.verbs |= /mob/living/silicon/robot/proc/rest_style
|
||||
..()
|
||||
|
||||
/obj/item/weapon/robot_module/robot/science
|
||||
@@ -420,6 +424,7 @@
|
||||
R.verbs |= /mob/living/silicon/robot/proc/ex_reserve_refill
|
||||
R.verbs |= /mob/living/silicon/robot/proc/robot_mount
|
||||
R.verbs |= /mob/living/proc/shred_limb
|
||||
R.verbs |= /mob/living/silicon/robot/proc/rest_style
|
||||
..()
|
||||
|
||||
/obj/item/weapon/robot_module/robot/engiedog
|
||||
@@ -546,6 +551,7 @@
|
||||
R.verbs |= /mob/living/silicon/robot/proc/ex_reserve_refill
|
||||
R.verbs |= /mob/living/silicon/robot/proc/robot_mount
|
||||
R.verbs |= /mob/living/proc/shred_limb
|
||||
R.verbs |= /mob/living/silicon/robot/proc/rest_style
|
||||
..()
|
||||
|
||||
/obj/item/weapon/robot_module/Reset(var/mob/living/silicon/robot/R)
|
||||
@@ -560,4 +566,5 @@
|
||||
R.verbs -= /mob/living/silicon/robot/proc/ex_reserve_refill
|
||||
R.verbs -= /mob/living/silicon/robot/proc/robot_mount
|
||||
R.verbs -= /mob/living/proc/shred_limb
|
||||
R.verbs -= /mob/living/silicon/robot/proc/rest_style
|
||||
..()
|
||||
@@ -12,6 +12,8 @@
|
||||
var/notransform
|
||||
var/original_icon = 'icons/mob/robots.dmi'
|
||||
var/ui_style_vr = FALSE //Do we use our hud icons?
|
||||
var/sitting = FALSE
|
||||
var/bellyup = FALSE
|
||||
does_spin = FALSE
|
||||
var/vr_icons = list(
|
||||
"handy-hydro",
|
||||
@@ -50,6 +52,21 @@
|
||||
return
|
||||
return feed_grabbed_to_self(src,T)
|
||||
|
||||
/mob/living/silicon/robot/proc/rest_style()
|
||||
set name = "Switch Rest Style"
|
||||
set category = "IC"
|
||||
set desc = "Select your resting pose."
|
||||
sitting = FALSE
|
||||
bellyup = FALSE
|
||||
var/choice = alert(src, "Select resting pose", "", "Resting", "Sitting", "Belly up")
|
||||
switch(choice)
|
||||
if("Resting")
|
||||
return 0
|
||||
if("Sitting")
|
||||
sitting = TRUE
|
||||
if("Belly up")
|
||||
bellyup = TRUE
|
||||
|
||||
/mob/living/silicon/robot/updateicon()
|
||||
vr_sprite_check()
|
||||
..()
|
||||
@@ -66,7 +83,12 @@
|
||||
add_overlay("eyes-[module_sprites[icontype]]-lights")
|
||||
if(resting)
|
||||
cut_overlays() // Hide that gut for it has no ground sprite yo.
|
||||
icon_state = "[module_sprites[icontype]]-rest"
|
||||
if(sitting)
|
||||
icon_state = "[module_sprites[icontype]]-sit"
|
||||
if(bellyup)
|
||||
icon_state = "[module_sprites[icontype]]-bellyup"
|
||||
else if(!sitting && !bellyup)
|
||||
icon_state = "[module_sprites[icontype]]-rest"
|
||||
else
|
||||
icon_state = "[module_sprites[icontype]]"
|
||||
if(dogborg == TRUE && stat == DEAD)
|
||||
|
||||
Reference in New Issue
Block a user