forked from goonstation/goonstation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
warcrimes.dm
849 lines (717 loc) · 31.8 KB
/
warcrimes.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
// ITS WARC TIME BAYBEE
// f
// Moved these from BBSSS.dm to here because they're global and don't really give that much away (should they be global?)
var/johnbill_shuttle_fartnasium_active = 0
var/fartcount = 0
/area/diner/tug
icon_state = "green"
name = "Big Yank's Cheap Tug"
/area/shuttle/john/diner
icon_state = "shuttle"
/area/shuttle/john/owlery
icon_state = "shuttle2"
/area/shuttle/john/mining
icon_state = "shuttle2"
/area/shuttle/john/grillnasium
icon_state = "shuttle"
/obj/item/clothing/head/paper_hat/john
name = "John Bill's paper bus captain hat"
desc = "This is made from someone's tax returns"
/obj/item/clothing/mask/cigarette/john
name = "John Bill's cigarette"
on = 1
put_out(var/mob/user as mob, var/message as text)
// how about we do literally nothing instead?
/obj/item/clothing/shoes/thong
name = "garbage flip-flops"
desc = "These cheap sandals don't even look legal."
icon_state = "thong"
protective_temperature = 0
permeability_coefficient = 1
var/possible_names = list("sandals", "flip-flops", "thongs", "rubber slippers", "jandals", "slops", "chanclas")
var/stapled = FALSE
examine()
. = ..()
if(stapled)
. += "Two thongs stapled together, to make a MEGA VELOCITY boomarang."
else
. += "These cheap [pick(possible_names)] don't even look legal."
attackby(obj/item/W, mob/user)
if (istype(W, /obj/item/staple_gun) && !stapled)
stapled = TRUE
boutput(user, "You staple the [src] together to create a mighty thongarang.")
name = "thongarang"
icon_state = "thongarang"
throwforce = 5
throw_range = 10
throw_return = 1
else
..()
setupProperties()
..()
setProperty("coldprot", 0)
setProperty("heatprot", 0)
setProperty("conductivity", 1)
// all of john's area specific lines here
/area/var/john_talk = null
/area/owlery/owleryhall/john_talk = list("Oh dang, That's me! Wait... Oh dang guys, I think I'm banned from here.","Hope these guys don't mind I stole their bus.","Oh i've seen a scanner like that before. Lotta radiation.","Hey that thing there? Looks important.")
/area/owlery/owleryhall/gangzone/john_talk = list("I don't likesa the looksa these Italians, brud","That's some tough lookin boids- We cool?","Oughta grill a couple of these types. Grill em well done.")
/area/diner/dining/john_talk = list("This place smells a lot like my bro.","This was a good spot to park the bus.","Y'all got a grill in here?","Could do a lot of crimes back there. Probably will.")
/area/diner/bathroom/john_talk = list("I haven't been here in a foggy second!", "I wonder what the fungus on the walls here tastes like... wanna juice it?", "I always wondered what happened to this toilet.")
/area/diner/motel/john_talk = list("Ain't much to look at, but we got the hull for this section pretty cheap!","Uh, don't bother with room 3- it's a little uh... rough.","Mmmm Mmm still smells like salvage.")
/area/diner/motel/observatory/john_talk = list("What a goddamn view.","Never thought I'd have a place like this.")
/area/diner/motel/pool/john_talk = list("Hey brungo, got any water? Like ten to twenty tonnes, eh?","It's a shame I can't swim, on account of the pirate's code.","I've seen this place in a video.")
/area/diner/motel/chemstorage/john_talk = list("Good a time as any to learn chemistry, I guess.","Think I can sell any of this juice?")
/area/lower_arctic/lower/john_talk = list("I ain't a fan of wendibros, they steal my meat.","Chilly eh?")
/area/moon/museum/west/john_talk = list("Got lost here once. More than once. Every time.","You got a map, beardo?","Can we go home yet?")
/area/jones/bar/john_talk = list("When the heck am I gonna get some service here, I'm parched!","What do I gotta start purrin' to get a drink here?","What's the holdup, catscratch? Let's get this party started!")
/area/solarium/john_talk = list("You kids will try anything, wontcha?","Nice sun, dorkus.","So it's a star? Big deal.","I betcha my bus coulda got us here faster, dork.","All righty, now let's grill a steak on that thing!","You bring any snacks?")
/area/marsoutpost/john_talk= list("Things weren't this dry last time I was here.","Really let the place go to the rats didn't they.","Great place for a cookout, if you ask me.")
/area/marsoutpost/duststorm/john_talk= list("Aw fuck, I've seen storms like this before. Where the hell was that planet...","Gehenna awaits.")
/area/sim/racing_entry/john_talk = list("Haha I'm a Nintendo","Beep Boop","Lookit Ma'! I'm in the computer!","Ey cheggit out! Pixels!")
/area/crypt/sigma/mainhall/john_talk = list("Looks a heck a spooky in here","Wonder if there's any meat in that swamp?")
/area/iomoon/base/john_talk = list("Yknow, I think it's almost too hot to grill out there.","This place is a lot shittier than Mars, y'know that?","I didn't really wanna come along you know. I did this for you.")
/area/dojo/john_talk = list("Eyyy, just like my cartoons!","What a sight! Gotta admire the Italians, eh?")
/area/dojo/sakura/john_talk = list("Shoshun mazu, Sake ni ume uru, Nioi kana","Haru moya ya, Keshiki totonou, Tsuki to ume","Hana no kumo, Kane ha Ueno ka, Asakusa ka")
/area/meat_derelict/entry/john_talk = list("Oooh baby now we're talkin! Now we're talkin!","Oh heck yeah now that's my kind of adventure, eh?","Oh boy do I have a good feelin' about this one!")
/area/meat_derelict/main/john_talk = list("Aw yeah dog, this place just gets better and better!","Mmm Mmm! That smells fresh and ready for a grillin'!")
/area/meat_derelict/guts/john_talk = list("And just when I thought it couldnt get better.","Pinch me, I'm dreaming!","Smells good in here, like vinegar!")
/area/meat_derelict/boss/john_talk = list("I'm gonna need a bigger grill.","Fuck that's a big steak!","Oooh mama we are cooked now!")
/area/meat_derelict/soviet/john_talk = list("Betcha these rooskies don't even own a grill","Wonder what these reds are doin in my steak palace?","Ah, gotta debone that before ya cook it.")
/area/bee_trader/john_talk = list("That little Bee, always gettin' inta trouble.","Hey remember that weird puzzle with the showerheads?","What a nasty museum that was, eh? Nasty.")
/area/flock_trader/john_talk = list("Woah, what's with these teal chickens? Must be good grillin'.","I feel like this was revealed to me in a fever dream once.","Dang, that's a mighty fine chair.")
/area/timewarp/ship/john_talk = list("I wonder if my ol' compadre Murray is around.","Did ya see those clocks outside? Time just flies by.","I swear I saw a ship just like this years ago, but somewhere else.","Didn't they use to haul some strange stuff on these gals?")
/area/derelict_ai_sat/core/john_talk = list("Hello, Daddy.","You should probably start writing down the shit I say, I certainly can't remember any of it.")
/area/adventure/urs_dungeon/john_talk = list("This place smells like my bro.","Huh, Always wondered what those goggles did.","Huh, Always wondered what those goggles did.","Your hubris will be punished. Will you kill your fellow man to save yourself? Who harvests the harvestmen? What did it feel like when you lost your mind?")
/area/grillnasium/grill_chamber/john_talk = list("You better know what you've started.","This is where it happens.")
// bus driver
/mob/living/carbon/human/john
real_name = "John Bill"
interesting = "Found in a coffee can at age fifteen. Went to jail for fraud. Recently returned to the can."
gender = MALE
var/talk_prob = 7
var/greeted_murray = 0
var/list/snacks = null
var/gotsmokes = 0
New()
..()
START_TRACKING_CAT(TR_CAT_JOHNBILLS)
SPAWN_DBG(0)
bioHolder.mobAppearance.customization_first = "Tramp"
bioHolder.mobAppearance.customization_first_color = "#281400"
bioHolder.mobAppearance.customization_second = "Pompadour"
bioHolder.mobAppearance.customization_second_color = "#241200"
bioHolder.mobAppearance.customization_third = "Tramp: Beard Stains"
bioHolder.mobAppearance.customization_third_color = "#663300"
bioHolder.age = 63
bioHolder.bloodType = "A+"
bioHolder.mobAppearance.gender = "male"
bioHolder.mobAppearance.underwear = "briefs"
bioHolder.mobAppearance.u_color = "#996633"
SPAWN_DBG(1 SECOND)
bioHolder.mobAppearance.UpdateMob()
src.equip_new_if_possible(/obj/item/clothing/shoes/thong, slot_shoes)
src.equip_new_if_possible(/obj/item/clothing/under/color/orange, slot_w_uniform)
src.equip_new_if_possible(/obj/item/clothing/mask/cigarette/john, slot_wear_mask)
src.equip_new_if_possible(/obj/item/clothing/suit/labcoat, slot_wear_suit)
src.equip_new_if_possible(/obj/item/clothing/head/paper_hat/john, slot_head)
var/obj/item/implant/access/infinite/shittybill/implant = new /obj/item/implant/access/infinite/shittybill(src)
implant.implanted(src, src)
disposing()
STOP_TRACKING_CAT(TR_CAT_JOHNBILLS)
..()
// John Bill always goes to the afterlife bar.
death(gibbed)
..(gibbed)
STOP_TRACKING_CAT(TR_CAT_JOHNBILLS)
if (!src.client)
var/turf/target_turf = pick(get_area_turfs(/area/afterlife/bar/barspawn))
var/mob/living/carbon/human/john/newbody = new()
newbody.set_loc(target_turf)
newbody.overlays += image('icons/misc/32x64.dmi',"halo")
if(inafterlifebar(src))
qdel(src)
return
else
boutput(src, "<span class='bold notice'>Haha you died loser.</span>")
src.become_ghost()
Life(datum/controller/process/mobs/parent)
if (..(parent))
return 1
if(!src.stat && !src.client)
if(target)
if(isdead(target))
target = null
if(get_dist(src, target) > 1)
step_to(src, target, 1)
if(get_dist(src, target) <= 1 && !LinkBlocked(src.loc, target.loc))
var/obj/item/W = src.equipped()
if (!src.restrained())
if(W)
W.attack(target, src, ran_zone("chest"))
else
target.attack_hand(src)
else if(ai_aggressive)
a_intent = INTENT_HARM
for(var/mob/M in oview(5, src))
if(M == src)
continue
if(M.type == src.type)
continue
if(M.stat)
continue
// stop on first human mob
if(ishuman(M))
target = M
break
target = M
if(prob(20) && src.canmove && isturf(src.loc))
step(src, pick(NORTH, SOUTH, EAST, WEST))
if(prob(2))
SPAWN_DBG(0) emote(JOHN_PICK("emotes"))
if(prob(15))
snacktime()
var/area/A = get_area(src)
if(prob(talk_prob) || A?.john_talk)
src.speak()
proc/snacktime()
snacks = list()
for(var/obj/item/reagent_containers/food/snacks/S in src)
snacks += S
if(snacks.len > 0)
var/obj/item/reagent_containers/food/snacks/snacc = pick(snacks)
if(istype(snacc, /obj/item/reagent_containers/food/snacks/bite))
if(prob(75))
return
else
src.visible_message("<span class='alert'>[src] horks up a lump from his stomach... </span>")
snacc.Eat(src,src,1)
proc/speak()
SPAWN_DBG(0)
var/list/grills = list()
var/obj/machinery/bot/guardbot/old/tourguide/murray = pick(by_type[/obj/machinery/bot/guardbot/old/tourguide])
if (murray && get_dist(src,murray) > 7)
murray = null
if (istype(murray))
if (!findtext(murray.name, "murraycompliment"))
murray = null
var/area/A = get_area(src)
var/list/alive_mobs = list()
var/list/dead_mobs = list()
if (A.population && A.population.len)
for(var/mob/living/M in oview(5,src))
if(!isdead(M))
alive_mobs += M
else
dead_mobs += M
if (prob(20))
for(var/obj/machinery/shitty_grill/G in orange(5, src))
grills.Add(G)
if (A.john_talk && prob(90))
SPAWN_DBG(5 SECONDS)
var/area/john_area = get_area(src)
say(pick(john_area.john_talk))
john_area.john_talk = null
else if (grills.len > 0)
var/obj/machinery/shitty_grill/G = pick(grills)
if (G.grillitem)
switch(G.cooktime)
if (0 to 15)
say("Yep, \the [G.grillitem] needs a little more time.")
if (16 to 49)
say("[JOHN_PICK("rude")], [JOHN_PICK("grilladvice")] [G.grillitem].")
if (50 to 59)
say("Whoa! \The [G.grillitem] is cooked to perfection! Lemme get that for ya!")
G.eject_food()
else
say("Good fuckin' job [JOHN_PICK("insults")], you burnt it.")
else
if (G.grilltemp >= 200 + T0C)
if(prob(70))
say("That there ol' [G] looks about ready for a [JOHN_PICK("drugs")]-seasoned steak!")
else
say("That [G] is hot! Who's grillin' ?")
else
say("Anyone gonna fire up \the [G]?")
else if(prob(40) && length(dead_mobs))
var/mob/M = pick(dead_mobs)
say("[JOHN_PICK("deadguy")] [M.name]...")
else if (alive_mobs.len > 0)
if (murray && !greeted_murray)
greeted_murray = 1
say("[JOHN_PICK("greetings")] Murray! How's it [JOHN_PICK("verbs")]?")
SPAWN_DBG(rand(20,40))
if (murray?.on && !murray.idle)
murray.speak("Hi, John! It's [JOHN_PICK("murraycompliment")] to see you here, of all places.")
else
var/mob/M = pick(alive_mobs)
var/speech_type = rand(1,11)
switch(speech_type)
if(1)
say("[JOHN_PICK("greetings")] [M.name].")
if(2)
say("[JOHN_PICK("question")] you lookin' at, [JOHN_PICK("insults")]?")
if(3)
say("You a [JOHN_PICK("people")]?")
if(4)
say("[JOHN_PICK("rude")], gimme yer [JOHN_PICK("item")].")
if(5)
say("Got a light, [JOHN_PICK("insults")]?")
if(6)
say("Nice [JOHN_PICK("nouns")], [JOHN_PICK("insults")].")
if(7)
say("Got any [JOHN_PICK("drugs")]?")
if(8)
say("I ever tell you 'bout [JOHN_PICK("stories")]?")
if(9)
say("You [JOHN_PICK("verbs")]?")
if(10)
if (prob(50))
say("Man, I sure miss [JOHN_PICK("domiss")].")
else
say("Man, I sure don't miss [JOHN_PICK("dontmiss")].")
if(11)
say("I think my [JOHN_PICK("friends")] [JOHN_PICK("friendsactions")].")
if (prob(25) && length(by_cat[TR_CAT_SHITTYBILLS]))
SPAWN_DBG(3.5 SECONDS)
var/mob/living/carbon/human/biker/MB = pick(by_cat[TR_CAT_SHITTYBILLS])
switch (speech_type)
if (4)
MB.say("You borrowed mine fifty years ago, and I never got it back.")
if (7)
MB.say("If I had any, I wouldn't share it with ya [pick_string("shittybill.txt", "insults")].")
if (8)
if (prob(2))
MB.say("One of these days, you oughta. I don't believe it for a second but let's hear it, [pick_string("shittybill.txt", "people")].")
else if (prob(6))
MB.say("No way, [src].")
else
MB.say("Yeah, [src], you told me that one before.")
if (9)
if (prob(50))
MB.say("Yeah, sometimes.")
else
MB.say("No way.")
else
MB.speak()
attackby(obj/item/W, mob/M)
if (istype(W, /obj/item/paper/tug/invoice))
if(ON_COOLDOWN(src, "attackby_chatter", 3 SECONDS)) return
boutput(M, "<span class='notice'><b>You show [W] to [src]</b> </span>")
SPAWN_DBG(1 SECOND)
say("One of them [JOHN_PICK("people")] folks from the station helped us raise the cash. Lil bro been dreamin bout it fer years.")
return
#ifdef SECRETS_ENABLED
if (istype(W, /obj/item/paper/grillnasium/fartnasium_recruitment))
if(ON_COOLDOWN(src, "attackby_chatter", 3 SECONDS)) return
boutput(M, "<span class='notice'><b>You show [W] to [src]</b> </span>")
SPAWN_DBG(1 SECOND)
say("Well hot dog! [JOHN_PICK("insults")], you wouldn't believe it but I use to work there!")
johnbill_shuttle_fartnasium_active = 1
sleep(2 SECONDS)
say("Yer dag right we can go Juicin around in there! Pack yer shit we're doin a B&E ! ! ! ")
emote("dance")
return
#endif
if (istype(W, /obj/item/reagent_containers/food/snacks) || (istype(W, /obj/item/clothing/mask/cigarette/cigarillo) && !gotsmokes))
if(ON_COOLDOWN(src, "attackby_chatter", 3 SECONDS)) return
boutput(M, "<span class='notice'><b>You offer [W] to [src]</b> </span>")
M.u_equip(W)
W.set_loc(src)
W.dropped()
src.drop_item()
src.put_in_hand_or_drop(W)
SPAWN_DBG(1 DECI SECOND)
say("Oh? [W] eh?")
say(pick("No kiddin' fer me?","I guess I could go fer a quick one yeah!","Oh dang dang dang! Haven't had one of these babies in a while!","Well I never get tired of those!","You're offering this to me? Don't mind if i do, [JOHN_PICK("people")]"))
src.a_intent = INTENT_HELP // pacify a juicer with food, obviously
src.target = null
src.ai_state = 0
src.ai_target = null
if (istype(W, /obj/item/clothing/mask/cigarette/cigarillo/juicer))
gotsmokes = 1
sleep(3 SECONDS)
say(pick("Listen bud, I don't know who sold you these, but they ain't your pal.","Y'know these ain't legal in any NT facilities, right?","Maybe you ain't so dumb as ya look, brud."))
var/obj/item/clothing/mask/cigarette/cigarillo/juicer/J = W
src.u_equip(wear_mask)
src.equip_if_possible(J, slot_wear_mask)
J.cant_other_remove = 0
sleep(3 SECONDS)
J.light(src, "<span class='alert'><b>[src]</b> casually lights [J] and takes a long draw.</span>")
sleep(5 SECONDS)
#if BUILD_TIME_DAY >= 28 // this block controls whether or not it is the right time to smoke a fat doink with Big J
say("You know a little more than you let on, don't you?")
sleep(7 SECONDS)
say("See but I been away long enough that I don't know much about you.")
emote("cough")
sleep(15 SECONDS)
particleMaster.SpawnSystem(new /datum/particleSystem/blow_cig_smoke(src.loc, src.dir))
say("Other than you 'trasies really did me and my bro a solid, back when there was that whole business with the bee n' all that. A real solid. But by now you're wonderin' why we were involved with her anyhow.")
sleep(7 SECONDS)
say("All in due time.")
emote("cough")
sleep(9 SECONDS)
J.put_out(src, "<b>[src]</b> distractedly drops and treads on the lit [J.name], putting it out instantly.")
src.u_equip(J)
J.set_loc(src.loc)
sleep(2 SECONDS)
say("These just don't taste the same without him...")
#else // it is not time
say(pick("This ain't the time, but we should have a talk. A long talk.","Under better circumstances, I'd like to smoke a few of these and reminesce with ya.","We'll have to do this again some time. When the time is right."))
#endif
gotsmokes = 0
else if(istype(W, /obj/item/clothing/mask/cigarette))
say(pick("Well this ain't my usual brand, but...", "Oh actually, got any... uh nah you've probably never even seen one of those.","Wait a second, this ain't a real 'Rillo."))
var/obj/item/clothing/mask/cigarette/cig = W
src.u_equip(wear_mask)
src.equip_if_possible(cig, slot_wear_mask)
sleep(3 SECONDS)
cig.light(src, "<span class='alert'><b>[src]</b> cautiously lights [cig] and takes a short draw.</span>")
sleep(5 SECONDS)
say(pick("Yeah that's ol' Dan's stuff...","But hey, thanks for the smokes, bruddo.","Smooth. Too smooth."))
return
..()
was_harmed(var/mob/M as mob, var/obj/item/weapon = 0, var/special = 0)
if (special) //vamp or ling
src.target = M
src.ai_state = 2
src.ai_threatened = world.timeofday
src.ai_target = M
src.a_intent = INTENT_HARM
src.ai_set_active(1)
for (var/mob/SB in by_cat[TR_CAT_SHITTYBILLS])
var/mob/living/carbon/human/biker/S = SB
if (get_dist(S,src) <= 7)
if(!(S.ai_active) || (prob(25)))
S.say("That's my brother, you [JOHN_PICK("insults")]!")
S.target = M
S.ai_set_active(1)
S.a_intent = INTENT_HARM
var/bombini_saved = 0
/obj/machinery/computer/shuttle_bus
name = "John's Bus"
icon_state = "shuttle"
machine_registry_idx = MACHINES_SHUTTLECOMPS
/obj/machinery/computer/shuttle_bus/embedded
icon_state = "shuttle-embed"
density = 0
layer = EFFECTS_LAYER_1 // Must appear over cockpit shuttle wall thingy.
north
dir = NORTH
pixel_y = 25
east
dir = EAST
pixel_x = 25
south
dir = SOUTH
pixel_y = -25
west
dir = WEST
pixel_x = -25
/obj/machinery/computer/shuttle_bus/attack_hand(mob/user as mob)
if(..())
return
var/dat = "<a href='byond://?src=\ref[src];close=1'>Close</a><BR><BR>"
switch(johnbus_location)
if(0)
dat += "Shuttle Location: Diner"
if(1)
dat += "Shuttle Location: Frontier Space Owlery"
if(2)
dat += "Shuttle Location: Old Mining Station"
if(3)
dat += "Shuttle Location: Juicer Schweet's"
dat += "<BR>"
switch(johnbus_destination)
if(0)
dat += "Shuttle Destination: Diner"
if(1)
dat += "Shuttle Destination: Frontier Space Owlery"
if(2)
dat += "Shuttle Destination: Old Mining Station"
if(3)
dat += "Shuttle Destination: Juicer Schweet's"
dat += "<BR><BR>"
if(johnbus_active)
dat += "Status: Cruisin"
else
dat += "<a href='byond://?src=\ref[src];dine=1'>Set Target: Diner</a><BR>"
dat += "<a href='byond://?src=\ref[src];owle=1'>Set Target: Owlery</a><BR>"
#ifndef UNDERWATER_MAP
dat += "<a href='byond://?src=\ref[src];mine=1'>Set Target: Old Mining Station</a><BR>"
#endif
if(johnbill_shuttle_fartnasium_active)
dat += "<a href='byond://?src=\ref[src];fart=1'>Set Target: Juicer Schweet's</a><BR>"
dat += "<BR>"
if (johnbus_location != johnbus_destination)
dat += "<a href='byond://?src=\ref[src];send=1'>Send It</a><BR><BR>"
else
dat += "Let's go somewhere else, ok?<BR>"
user.Browse(dat, "window=shuttle")
onclose(user, "shuttle")
return
/obj/machinery/computer/shuttle_bus/Topic(href, href_list)
if(..())
return
if ((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf))) || (issilicon(usr)))
src.add_dialog(usr)
if (href_list["send"])
if(!johnbus_active)
var/turf/T = get_turf(src)
johnbus_active = 1
for(var/obj/machinery/computer/shuttle_bus/C in machine_registry[MACHINES_SHUTTLECOMPS])
C.visible_message("<span class='alert'>John is starting up the engines, this could take a minute!</span>")
for(var/obj/machinery/computer/shuttle_bus/embedded/B in machine_registry[MACHINES_SHUTTLECOMPS])
T = get_turf(B)
SPAWN_DBG(1 DECI SECOND)
playsound(T, "sound/effects/ship_charge.ogg", 60, 1)
sleep(3 SECONDS)
playsound(T, "sound/machines/weaponoverload.ogg", 60, 1)
src.visible_message("<span class='alert'>The shuttle is making a hell of a racket!</span>")
sleep(5 SECONDS)
playsound(T, "sound/impact_sounds/Machinery_Break_1.ogg", 60, 1)
for(var/mob/living/M in range(src.loc, 10))
shake_camera(M, 5, 8)
sleep(2 SECONDS)
playsound(T, "sound/effects/creaking_metal2.ogg", 70, 1)
sleep(3 SECONDS)
src.visible_message("<span class='alert'>The shuttle engine alarms start blaring!</span>")
playsound(T, "sound/machines/pod_alarm.ogg", 60, 1)
var/obj/decal/fakeobjects/shuttleengine/smokyEngine = locate() in get_area(src)
var/datum/effects/system/harmless_smoke_spread/smoke = new /datum/effects/system/harmless_smoke_spread()
smoke.set_up(5, 0, smokyEngine)
smoke.start()
sleep(4 SECONDS)
playsound(T, "sound/machines/boost.ogg", 60, 1)
for(var/mob/living/M in range(src.loc, 10))
shake_camera(M, 10, 16)
T = get_turf(src)
SPAWN_DBG(25 SECONDS)
playsound(T, "sound/effects/flameswoosh.ogg", 70, 1)
call_shuttle()
else if (href_list["dine"])
if(!johnbus_active)
johnbus_destination = 0
var/turf/T = get_turf(src)
playsound(T, "sound/machines/glitch1.ogg", 60, 1)
else if (href_list["owle"])
if(!johnbus_active)
johnbus_destination = 1
var/turf/T = get_turf(src)
playsound(T, "sound/machines/glitch1.ogg", 60, 1)
else if (href_list["mine"])
if(!johnbus_active)
johnbus_destination = 2
var/turf/T = get_turf(src)
playsound(T, "sound/machines/glitch1.ogg", 60, 1)
else if (href_list["fart"])
if(!johnbus_active)
johnbus_destination = 3
var/turf/T = get_turf(src)
playsound(T, "sound/machines/glitch1.ogg", 60, 1)
else if (href_list["close"])
src.remove_dialog(usr)
usr.Browse(null, "window=shuttle")
src.add_fingerprint(usr)
src.updateUsrDialog()
return
/obj/machinery/computer/shuttle_bus/proc/call_shuttle()
var/area/end_location = null
var/area/start_location = null
switch(johnbus_destination)
if(0)
end_location = locate(/area/shuttle/john/diner)
if(1)
end_location = locate(/area/shuttle/john/owlery)
if(2)
end_location = locate(/area/shuttle/john/mining)
if(3)
end_location = locate(/area/shuttle/john/grillnasium)
switch(johnbus_location)
if(0)
start_location = locate(/area/shuttle/john/diner)
start_location.move_contents_to(end_location)
if(1)
start_location = locate(/area/shuttle/john/owlery)
if(!bombini_saved)
for(var/obj/npc/trader/bee/b in start_location)
bombini_saved = 1
for(var/mob/M in start_location)
boutput(M, "<span class='notice'>It would be great if things worked that way, but they don't. You'll need to find what <b>Bombini</b> is missing, now.</span>")
start_location.move_contents_to(end_location)
if(2)
start_location = locate(/area/shuttle/john/mining)
start_location.move_contents_to(end_location)
if(3)
start_location = locate(/area/shuttle/john/grillnasium)
start_location.move_contents_to(end_location)
johnbus_location = johnbus_destination
johnbus_active = 0
for(var/obj/machinery/computer/shuttle_bus/C in machine_registry[MACHINES_SHUTTLECOMPS])
C.visible_message("<span class='alert'>John's Juicin' Bus has Moved!</span>")
return
obj/decal/fakeobjects/thrust
icon = 'icons/effects/effects.dmi'
icon_state = "shieldsparkles"
name = "ionized exhaust"
desc = "Thankfully harmless, to registered employees anyway."
obj/decal/fakeobjects/thrust/flames
icon_state = "engineshit"
obj/decal/fakeobjects/thrust/flames2
icon_state = "engineshit2"
obj/item/paper/tug/invoice
name = "Big Yank's Space Tugs, Limited."
desc = "Looks like a bill of sale."
info = {"<b>Client:</b> Bill, John
<br><b>Date:</b> TBD
<br><b>Articles:</b> Structure, Static. Pressurized. Single.
<br><b>Destination:</b> \"where there's rocks at\"\[sic\]
<br>
<br><b>Total Charge:</b> 17,440 paid in full with value-added meat.
<br>Big Yank's Cheap Tug"}
obj/item/paper/tug/warehouse
name = "Big Yank's Space Tugs, Limited."
desc = "Looks like a bill of sale. It is blank"
info = {"<b>Client:</b>
<br><b>Date:</b>
<br><b>Articles:</b>
<br><b>Duration:</b>
<br>
<br><b>Total Charge:</b>
<br>Big Yank's Stash N Dash"}
/obj/item/paper/horizon/HTSL
name = "crumpled note"
interesting = "The carbon dating of the cellulose within the paper is not consistent."
info = {"NSS Horizon Technical Service Log
<br>Commission date 22 June 2047
<br>Printing Shakedown Notes:
<br>
<br>With regards to the Horizon-class Hypercarrier, the following concerns were identified and addressed:
<br>
<br>Concern: Due to budgetary concerns, \[REDACTED] and mitigation efforts resulting unusual thermal flux, drastically increasing the odds of a runaway thermal \[REDACTED]
<br>
<br>Remedy: The NSS Horizon will not house critical Nanotrasen staff.
<br>
<br>Concern: Thermal cladding is both grossly insufficient and visibly in very poor repair, further exacerbating \[REDACTED] into a runaway thermal event, of possible \[REDACTED] and further collateral damage.
<br>
<br>Remedy: Cladding repainted; damaged cladding is no longer visible and will not affect employee morale
<br>
<br>Concern: Artificial Intelligence Core grossly insufficient for intra-\[REDACTED] navigation, sublight control necessary for all course changes.
<br>
<br>Remedy: A.I.C. relegated to door control and entertainment services.
<br
><br>Concern: Hull integrity tests inconclusive, all data lost when hull-mounted sensors were lost in testing breach. See personnel logs for subsequent staff rotation.
<br>
<br>No remedy suggested.
<br>
<br><span style='font-family: Dancing Script, cursive;'>You'd think they would have made this file easier to access, at least to the assholes refitting it. Stranded for six years, moored by failing engines, we've made do, but there's not much more we can do here. I've converted most of the Horizon Project bolt-ons to more civil amenities, got the port engine running well enough to keep life support on, but nearly everyone left here is either a grifter or a prisonner.
<br>Never would have signed up for that mission if I knew what they were actually trying to do. Assholes.
<br>
<br>Got a call this morning that NT wants to recomission this heap of shit, as a research outpost. I spend six fucking years sending distress calls, and by 1800 hours, there's going to be a shuttle full of bright-faced convicts ready to make the Kuiper Belt teem with greed again. I'm sorry, but its a step too far. I won't be here to greet them.
<br>
<br>February 3rd, 2053</span>"}
/obj/item/paper/horizon/eggs
name = "eggs"
desc = "eggs"
info = "legs"
/turf/simulated/wall/r_wall/afterbar
name = "wall"
desc = null
attackby(obj/item/W as obj, mob/user as mob, params)
return
/*
Urs' Hauntdog critter
*/
/obj/critter/hauntdog
name = "hauntdog"
desc = "A very, <i>very</i> haunted hotdog. Hopping around. Hopdog."
icon = 'icons/misc/hauntdog.dmi'
icon_state = "hauntdog"
death_text = null
health = 30
density = 0
patrol_step()
if (!mobile)
return
var/turf/moveto = locate(src.x + rand(-1,1),src.y + rand(-1, 1),src.z)
if(isturf(moveto) && !moveto.density)
flick("hauntdog-hop",src)
step_towards(src, moveto)
if(src.aggressive) seek_target()
steps += 1
if (steps == rand(5,20)) src.task = "thinking"
ai_think()
if(prob(5))
flip()
..()
proc/flip()
src.visible_message("<b>[src]</b> does a flip!",2)
flick("hauntdog-flip",src)
sleep(1.3 SECONDS)
CritterDeath()
if (!src.alive) return
..()
src.visible_message("<b>[src]</b> stops moving.",2)
var/obj/item/reagent_containers/food/snacks/hotdog/H = new /obj/item/reagent_containers/food/snacks/hotdog(get_turf(src))
H.bun = 5
H.desc = "A very haunted hotdog. A hauntdog, perhaps."
H.heal_amt += 1
H.name = "ordinary hauntdog"
H.food_effects = list("food_all","food_brute")
if (H.reagents)
H.reagents.add_reagent("ectoplasm", 10)
H.update_icon()
qdel(src)
/mob/living/critter/small_animal/pig/hogg
name = "hogg vorbis"
real_name = "hogg vorbis"
desc = "the hogg vorbis."
icon_state = "hogg"
icon_state_dead = "pig-dead"
density = 1
speechverb_say = "screams!"
speechverb_exclaim = "screams!"
meat_type = /obj/item/reagent_containers/food/snacks/ingredient/meat/bacon
name_the_meat = 0
specific_emotes(var/act, var/param = null, var/voluntary = 0)
if(act == "scream" && src.emote_check(voluntary, 50))
var/turf/T = get_turf(src)
var/hogg = pick("sound/voice/hagg_vorbis.ogg","sound/voice/hogg_vorbis.ogg","sound/voice/hogg_vorbis_the.ogg","sound/voice/hogg_vorbis_screams.ogg","sound/voice/hogg_with_scream.ogg","sound/voice/hoooagh2.ogg","sound/voice/hoooagh.ogg",)
playsound(T, hogg, 60, 1)
return "<span class='emote'><b>[src]</b> screeeams!</span>"
return null
specific_emote_type(var/act)
switch (act)
if ("scream")
return 2
return ..()
on_pet(mob/user)
if (..())
return 1
if (prob(25))
var/turf/T = get_turf(src)
src.visible_message("[src] screams![prob(5) ? " ...uh?" : null]",\
"You screams!")
var/hogg = pick("sound/voice/hagg_vorbis.ogg","sound/voice/hogg_vorbis.ogg","sound/voice/hogg_vorbis_the.ogg","sound/voice/hogg_vorbis_screams.ogg","sound/voice/hogg_with_scream.ogg","sound/voice/hoooagh2.ogg","sound/voice/hoooagh.ogg",)
playsound(T, hogg, 60, 1)
// ########################
// # Horizon audio logs #
// ########################
/obj/item/device/audio_log/horizon_minorcollision
continuous = 0
audiolog_messages = list("Course stady, bearing One One Zero Mark Two,",
"Firing thrusters.",
"Steady hot stuff. Keep your eyes on the grav- wait a second.",
"Uh, Captain- I- I don't-",
"Shuttlecraft One to NSS Horizon abort maneuver! ABORT MANEUVER WE ARE NOT CLEA-",
"*Thunderous scraping, metallic sound*",
"Negative, Captain. Engines offline, there's some kind of well between *click*",
"What. the fuck is that. *Creaking, static*")
audiolog_speakers = list("Female voice",
"Juvenile voice",
"Female voice",
"Juvenile voice",
"Female voice",
"???",
"NSS Horizon",
"???")