Message from Celt in Everything Is Space #code-map-sprite


2016-11-10 05:54:13 UTC  

just whip out your code man

2016-11-10 05:54:18 UTC  

pull your pants down and whip it out

2016-11-10 05:55:11 UTC  

🍆

2016-11-10 05:55:40 UTC  

99% sure it needs to be re-written

2016-11-10 05:55:42 UTC  

i took what gef had

2016-11-10 05:55:46 UTC  

```py
/obj/item/clothing/suit/wintercoat/verb/togglehood()
set name = "Toggle Hood"
set category = "Object"
set src in usr
if(usr.incapacitated())
return
else
var/mob/living/carbon/human/user = usr
if(!usr || !istype(usr) || !user.head) // the head slot is empty
to_chat(usr, "You try to put your hood up but something is in the way.")
return
if(src.is_hooded == 2)
equip(/obj/item/clothing/head/winterhood, SLOT_HEAD)
icon_state = "[initial(icon_state)]_t"
user.head = /obj/item/clothing/head/winterhood
flags = initial(flags)
body_parts_covered &= ~(HEAD)
to_chat(usr, "You put \the hood up.")
src.is_hooded = 1
else
icon_state = "[initial(icon_state)]"
to_chat(usr, "You put \the hood down.")
flags = 0
src.is_hooded = 2
body_parts_covered = initial(body_parts_covered)
usr.update_inv_wear_suit()


/obj/item/clothing/suit/wintercoat/attack_self()
togglehood()
```

2016-11-10 05:55:52 UTC  

well then probably gef is a newcoder

2016-11-10 05:56:10 UTC  

`flags = 0`

2016-11-10 05:56:11 UTC  

REMOVE THIS

2016-11-10 05:56:16 UTC  

🤷

2016-11-10 05:57:22 UTC  

he basically

2016-11-10 05:57:25 UTC  

copy pasted gas mask

2016-11-10 05:57:28 UTC  

thats exactly what it does

2016-11-10 05:57:45 UTC  

heres the original

2016-11-10 05:58:13 UTC  

@kolith okay so

2016-11-10 06:01:12 UTC  

Check the equip proc

2016-11-10 06:01:19 UTC  

Make sure you're using it right

2016-11-10 06:01:41 UTC  

Also use defines for is_hooded

2016-11-10 06:02:50 UTC  

yeah i have no idea dude

2016-11-10 06:03:27 UTC  

What do you mean you have no idea

2016-11-10 06:03:43 UTC  

Ctrl H proc/equip(

2016-11-10 06:04:04 UTC  

Alternatively just equip( and see other usages of it

2016-11-10 06:04:53 UTC  

Oh my god

2016-11-10 06:04:58 UTC  

I see a problem

2016-11-10 06:05:03 UTC  

`user.u_equip(W,0)`

2016-11-10 06:05:04 UTC  

???

2016-11-10 06:05:06 UTC  

like i said

2016-11-10 06:05:11 UTC  

i dont have any idea

2016-11-10 06:05:14 UTC  

but im 99% sure thats just wrong

2016-11-10 06:05:19 UTC  

>user.head = path

2016-11-10 06:05:28 UTC  

He's defining a fucking path

2016-11-10 06:05:42 UTC  

This is NOT how you equip things

2016-11-10 06:05:47 UTC  

One sec

2016-11-10 06:05:52 UTC  

I'll get you a good syntax to use

2016-11-10 06:06:28 UTC  

unless you completely write it i don't know how to do it

2016-11-10 06:06:42 UTC  

not really too enthused to spend 5 hours on it either

2016-11-10 06:07:26 UTC  

Gah

2016-11-10 06:07:45 UTC  

I know how to fix it tbh

2016-11-10 06:20:55 UTC  

@kolith push it to my branch fam I'll just fix it up and make it serviceable

2016-11-10 06:22:33 UTC  

@Heebz you alive fam?