Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Let the AI mainframe wear blunts/joints
#1
Just like how they can wear fake mustaches.
Reply
#2
why stop with just cigarettes and shit

why not just give them a hat/mask slot
Reply
#3
(04-20-2016, 11:13 PM)babayetu83 Wrote: why stop with just cigarettes and shit

why not just give them a hat/mask slot

If it's anything like borgs, I imagine it's a huge hassle.
Reply
#4
Code:
    else if (istype(module, /obj/item/clothing/mask/moustache/))
        for (var/mob/living/silicon/ai/M in mobs)
            M.moustache_mode = 1
            user.visible_message("<span style=\"color:red\"><b>[user.name]</b> uploads a moustache to [M.name]!</span>")
            M.update_appearance()
Code:
        if (src.moustache_mode == 1)
            src.UpdateOverlays(SafeGetOverlayImage("moustache", 'icons/mob/ai.dmi', "moustache", src.layer+0.3), "moustache")
        else
            src.UpdateOverlays(null, "moustache")

/mob/living/silicon/ai/proc/get_image(var/icon_state)
    if(!cached_image)
        cached_image = image('icons/mob/ai.dmi', "moustache")
    cached_image.icon_state = icon_state
    return cached_image

Here's the relevant code. For those of you who can't read that, it works by overlaying a picture of a mustache onto the AI as a special case. I could MAYBE add a few more as a patch, but getting the layering right would be tricky and it would be better practice coding-wise to redo how clothing works for non-humans.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)