From http://forums.somethingawful.com/showthread.php?noseen=0&threadid=3551842&perpage=40&pagenumber=663#post466811576
This game has some baffling sections of code. (Comments added for clarity's sake, lol if u think gooncode has useful and informative comments and not just "FUCK YOU BYOND" or "WHY" over and over)
code:
for (var/mob/O in AIviewers(user, null)) // loop through all mobs that can see user kill themself
if (O != user && ishuman(O) && prob(33)) // make sure O isn't user, then make sure they're human?
//why didn't we just loop through /mob/living/carbon/human in the first place instead of all mobs?
O.show_message("You feel ill from watching that.") // O is grossed out
for (var/mob/V in viewers(O, null)) // loop through all the mobs that can see O locally
V.show_message("[O.name] pukes all over \himself. Thanks, [user.name].", 1) // tell them that O puked
playsound(O.loc, "sound/impact_sounds/Slimy_Splat_1.ogg", 50, 1) // play a sound where O is
new /obj/decal/cleanable/vomit(O.loc) // make a vomit decal where O is
// these last two parts are within the second for loop so that means that for EVERY MOB THAT SEES THIS, A SOUND AND DECAL ARE MADE
image:
http://i.imgur.com/od2gmU7.png
Naturally because byond's text macros (stuff like \himself) are weird and broken half the time it just gave up instead of even offering an "itself" like normal:
quote:
Tomu Wazau pukes all over . Thanks, Lia Alliman.
Tomhu Wuseuu pukes all over . Thanks, Lia Alliman.
Spy offered this fun tidbit when I talked about the above in IRC:
quote:
Reminder.
I had huge problems with firebombs because they only worked in brightly-lit areas.
This was due to the fire not being able to see people in the blast.
So it didn't know to torch them.