forked from TauCetiStation/TauCetiClassic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
human.dm
2496 lines (2075 loc) · 85.7 KB
/
human.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
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#define MASSAGE_RHYTM_RIGHT 11
#define MASSAGE_ALLOWED_ERROR 2
/mob/living/carbon/human
name = "unknown"
real_name = "unknown"
voice_name = "unknown"
icon = 'icons/mob/human.dmi'
hud_possible = list(HEALTH_HUD, STATUS_HUD, INSURANCE_HUD, ID_HUD, WANTED_HUD, IMPLOYAL_HUD, IMPCHEM_HUD, IMPTRACK_HUD, IMPMINDS_HUD, ANTAG_HUD, HOLY_HUD, GOLEM_MASTER_HUD, BROKEN_HUD, ALIEN_EMBRYO_HUD, IMPOBED_HUD)
w_class = SIZE_HUMAN
//icon_state = "body_m_s"
var/datum/species/species //Contains icon generation and language information, set during New().
var/random_tail_holder = "" // overrides species.tail
var/heart_beat = 0
var/embedded_flag //To check if we've need to roll for damage on movement while an item is imbedded in us.
var/metadata
var/gnomed = 0 // timer used by gnomecurse.dm
var/hulk_activator = null
var/last_massage = 0
var/massages_done_right = 0
attack_push_vis_effect = ATTACK_EFFECT_PUNCH
attack_disarm_vis_effect = ATTACK_EFFECT_DISARM
throw_range = 2
moveset_type = /datum/combat_moveset/human
beauty_living = 0
beauty_dead = -1500
appearance_flags = TILE_BOUND|PIXEL_SCALE|KEEP_TOGETHER
/mob/living/carbon/human/atom_init(mapload, new_species)
AddComponent(/datum/component/mood)
dna = new
hulk_activator = pick(HULK_ACTIVATION_OPTIONS) //in __DEFINES/geneticts.dm
if(!species)
if(new_species)
set_species(new_species, FALSE, TRUE)
else
set_species()
if(species) // Just to be sure.
metabolism_factor.Set(species.metabolism_mod)
metabolism_factor.AddModifier("NeedHeart", multiple=-1)
butcher_results = species.butcher_drops.Copy()
dna.species = species.name
var/datum/reagents/R = new/datum/reagents(1000)
reagents = R
R.my_atom = src
. = ..()
AddComponent(/datum/component/footstep, FOOTSTEP_MOB_HUMAN)
human_list += src
RegisterSignal(src, list(COMSIG_MOB_EQUIPPED), PROC_REF(mood_item_equipped))
if(dna)
dna.real_name = real_name
handcrafting = new()
AddComponent(/datum/component/altcraft)
prev_gender = gender // Debug for plural genders
make_blood()
regenerate_icons()
/mob/living/carbon/human/Destroy()
human_list -= src
if(my_master)
var/datum/atom_hud/golem/golem_hud = global.huds[DATA_HUD_GOLEM]
golem_hud.remove_from_hud(src)
my_master = null
if(my_golem)
var/datum/atom_hud/golem/golem_hud = global.huds[DATA_HUD_GOLEM]
golem_hud.remove_from_hud(src)
my_golem.death()
my_golem = null
QDEL_LIST(bodyparts)
QDEL_LIST(organs)
QDEL_NULL(vessel)
return ..()
/mob/living/carbon/human/skrell/atom_init(mapload)
h_style = "Skrell Male Tentacles"
. = ..(mapload, SKRELL)
/mob/living/carbon/human/tajaran/atom_init(mapload)
h_style = "Tajaran Ears"
. = ..(mapload, TAJARAN)
/mob/living/carbon/human/unathi/atom_init(mapload)
h_style = "Unathi Horns"
r_belly = HEX_VAL_RED(species.base_color)
g_belly = HEX_VAL_GREEN(species.base_color)
b_belly = HEX_VAL_BLUE(species.base_color)
. = ..(mapload, UNATHI)
/mob/living/carbon/human/vox/atom_init(mapload)
h_style = "Short Vox Quills"
. = ..(mapload, VOX)
/mob/living/carbon/human/voxarmalis/atom_init(mapload)
h_style = "Bald"
. = ..(mapload, VOX_ARMALIS)
/mob/living/carbon/human/diona/atom_init(mapload)
. = ..(mapload, DIONA)
/mob/living/carbon/human/vulpkanin/atom_init(mapload)
. = ..(mapload, VULPKANIN)
/mob/living/carbon/human/podman/atom_init(mapload)
. = ..(mapload, PODMAN)
/mob/living/carbon/human/machine/atom_init(mapload)
h_style = "blue IPC screen"
. = ..(mapload, IPC)
/mob/living/carbon/human/abductor/atom_init(mapload)
. = ..(mapload, ABDUCTOR)
/mob/living/carbon/human/golem/atom_init(mapload)
. = ..(mapload, GOLEM)
/mob/living/carbon/human/shadowling/atom_init(mapload)
. = ..(mapload, SHADOWLING)
var/newNameId = pick(possibleShadowlingNames)
possibleShadowlingNames.Remove(newNameId)
real_name = newNameId
name = real_name
underwear = 0
undershirt = 0
faction = "faithless"
regenerate_icons()
AddSpell(new /obj/effect/proc_holder/spell/targeted/shadowling_hivemind)
AddSpell(new /obj/effect/proc_holder/spell/targeted/enthrall)
AddSpell(new /obj/effect/proc_holder/spell/targeted/glare)
AddSpell(new /obj/effect/proc_holder/spell/aoe_turf/veil)
AddSpell(new /obj/effect/proc_holder/spell/targeted/ethereal_jaunt/shadow_walk)
AddSpell(new /obj/effect/proc_holder/spell/aoe_turf/flashfreeze)
AddSpell(new /obj/effect/proc_holder/spell/targeted/collective_mind)
AddSpell(new /obj/effect/proc_holder/spell/targeted/shadowling_regenarmor)
notify_ghosts("\A [src], new hatched shadowling, at [get_area(src)]!", source = src, action = NOTIFY_ORBIT, header = "Shadowling")
/mob/living/carbon/human/slime/atom_init(mapload)
. = ..(mapload, SLIME)
/mob/living/carbon/human/skeleton/atom_init(mapload)
. = ..(mapload, SKELETON)
/mob/living/carbon/human/prepare_data_huds()
//Update med hud images...
..()
//...sec hud images...
sec_hud_set_ID()
sec_hud_set_implants()
sec_hud_set_security_status()
//...and display them.
add_to_all_data_huds()
/mob/living/carbon/human/OpenCraftingMenu()
handcrafting.ui_interact(src)
/mob/living/carbon/human/Stat()
..()
if(statpanel("Status"))
stat(null, "Intent: [a_intent]")
stat(null, "Move Mode: [m_intent]")
//Info for IPC
if(species.flags[IS_SYNTHETIC])
var/obj/item/organ/internal/liver/IO = organs_by_name[O_LIVER]
var/obj/item/weapon/stock_parts/cell/I = locate(/obj/item/weapon/stock_parts/cell) in IO
if(I)
stat(null, "Charge: [round(100.0*nutrition/I.maxcharge, 1)]%")
stat(null, "Operating temp: [round(bodytemperature-T0C)]°C")
if(internal)
if(!internal.air_contents)
qdel(internal)
else
stat("Internal Atmosphere Info", internal.name)
stat("Tank Pressure", internal.air_contents.return_pressure())
stat("Distribution Pressure", internal.distribute_pressure)
if(istype(wear_suit, /obj/item/clothing/suit/space/space_ninja))
var/obj/item/clothing/suit/space/space_ninja/SN = wear_suit
stat("SpiderOS Status:","[SN.s_initialized ? "Initialized" : "Disabled"]")
stat("Current Time:", "[worldtime2text()]")
if(SN.s_initialized)
//Suit gear
stat("Energy Charge", "[round(SN.cell.charge/100)]%")
stat("Smoke Bombs:", "\Roman [SN.s_bombs]")
//Ninja status
stat("Fingerprints:", "[md5(dna.uni_identity)]")
stat("Unique Identity:", "[dna.unique_enzymes]")
stat("Overall Status:", "[stat > 1 ? "dead" : "[health]% healthy"]")
stat("Nutrition Status:", "[nutrition]")
stat("Oxygen Loss:", "[getOxyLoss()]")
stat("Toxin Levels:", "[getToxLoss()]")
stat("Burn Severity:", "[getFireLoss()]")
stat("Brute Trauma:", "[getBruteLoss()]")
stat("Radiation Levels:","[radiation] rad")
stat("Body Temperature:","[bodytemperature-T0C] degrees C ([bodytemperature*1.8-459.67] degrees F)")
if(mind)
for(var/role in mind.antag_roles)
var/datum/role/R = mind.antag_roles[role]
stat(R.StatPanel())
if(istype(wear_suit, /obj/item/clothing/suit/space/rig))
var/obj/item/clothing/suit/space/rig/rig = wear_suit
rig_setup_stat(rig)
/mob/living/carbon/human/ex_act(severity)
if(!blinded)
flash_eyes()
var/shielded = 0
var/b_loss = null
var/f_loss = null
switch (severity)
if(EXPLODE_DEVASTATE)
b_loss += 500
if (!prob(getarmor(null, BOMB)))
gib()
return
else
var/atom/target = get_edge_target_turf(src, get_dir(src, get_step_away(src, src)))
throw_at(target, 200, 4)
//return
// var/atom/target = get_edge_target_turf(user, get_dir(src, get_step_away(user, src)))
//user.throw_at(target, 200, 4)
if(EXPLODE_HEAVY)
if (!shielded)
b_loss += 60
f_loss += 60
if (prob(getarmor(null, BOMB)))
b_loss = b_loss/1.5
f_loss = f_loss/1.5
if (!istype(l_ear, /obj/item/clothing/ears/earmuffs) && !istype(r_ear, /obj/item/clothing/ears/earmuffs))
ear_damage += 30
ear_deaf += 120
if (prob(70) && !shielded)
Paralyse(10)
if(EXPLODE_LIGHT)
b_loss += 30
if (prob(getarmor(null, BOMB)))
b_loss = b_loss/2
if (!istype(l_ear, /obj/item/clothing/ears/earmuffs) && !istype(r_ear, /obj/item/clothing/ears/earmuffs))
ear_damage += 15
ear_deaf += 60
if (prob(50) && !shielded)
Paralyse(10)
// focus most of the blast on one organ
var/obj/item/organ/external/BP = pick(bodyparts)
BP.take_damage(b_loss * 0.9, f_loss * 0.9, used_weapon = "Explosive blast")
// distribute the remaining 10% on all limbs equally
b_loss *= 0.1
f_loss *= 0.1
var/weapon_message = "Explosive Blast"
take_overall_damage(b_loss * 0.2, f_loss * 0.2, used_weapon = weapon_message)
/mob/living/carbon/human/airlock_crush_act()
..()
emote("scream")
/mob/living/carbon/human/singularity_act()
var/gain = 20
if(mind)
switch(mind.assigned_role)
if("Station Engineer","Chief Engineer")
gain = 100
if("Clown")
gain = rand(-300, 300)//HONK
log_investigate(" has consumed [key_name(src)].",INVESTIGATE_SINGULO) //Oh that's where the clown ended up!
gib()
return(gain)
/mob/living/carbon/human/singularity_pull(S, current_size)
if(current_size >= STAGE_THREE)
var/list/handlist = list(l_hand, r_hand)
for(var/obj/item/hand in handlist)
if(prob(current_size * 5) && hand.w_class >= ((STAGE_FIVE-current_size)/2) && unEquip(hand))
step_towards(hand, src)
to_chat(src, "<span class='warning'>\The [S] pulls \the [hand] from your grip!</span>")
irradiate_one_mob(src, current_size * 3)
if(mob_negates_gravity())//Magboots protection
return
..()
/mob/living/carbon/human/blob_act()
if(stat == DEAD) return
to_chat(src, "<span class='danger'>The blob attacks you!</span>")
var/dam_zone = pick(BP_CHEST , BP_L_ARM , BP_R_ARM , BP_L_LEG , BP_R_LEG, BP_HEAD)
var/obj/item/organ/external/BP = bodyparts_by_name[ran_zone(dam_zone)]
apply_damage(rand(30, 40), BRUTE, BP, run_armor_check(BP, MELEE))
return
/mob/living/carbon/human/proc/can_use_two_hands(broken = TRUE) // Replace arms with hands in case of reverting Kurshan's PR.
var/obj/item/organ/external/l_arm/BPL = bodyparts_by_name[BP_L_ARM]
var/obj/item/organ/external/r_arm/BPR = bodyparts_by_name[BP_R_ARM]
if(broken && (BPL.is_broken() || BPR.is_broken()))
return FALSE
if(!BPL.is_usable() || !BPR.is_usable())
return FALSE
return TRUE
/mob/living/carbon/human/proc/is_type_organ(organ, o_type)
var/obj/item/organ/O
if(organ in organs_by_name)
O = organs_by_name[organ]
if(organ in bodyparts_by_name)
O = bodyparts_by_name[organ]
if(!O)
return FALSE
return istype(O, o_type)
/mob/living/carbon/human/proc/is_bruised_organ(organ)
var/obj/item/organ/internal/IO = organs_by_name[organ]
if(!IO)
return TRUE
if(IO.is_bruised())
return TRUE
return FALSE
/mob/living/carbon/human/proc/find_damaged_bodypart()
for(var/obj/item/organ/external/BP in bodyparts) // find a broken/destroyed limb
if(BP.status & (ORGAN_BROKEN | ORGAN_SPLINTED) || BP.is_stump)
if(BP.parent && (BP.parent.is_stump))
continue
else
return BP
return FALSE // In case we didn't find anything.
/mob/living/carbon/human/proc/regen_bodyparts(remove_blood_amount = 0, use_cost = FALSE)
if(regenerating_bodypart) // start fixing broken/destroyed limb
if(remove_blood_amount)
blood_remove(remove_blood_amount)
var/regenerating_capacity_penalty = 0 // Used as time till organ regeneration.
if(regenerating_bodypart.is_stump)
regenerating_capacity_penalty = regenerating_bodypart.regen_bodypart_penalty
else
regenerating_capacity_penalty = regenerating_bodypart.regen_bodypart_penalty/2
regenerating_organ_time++
switch(regenerating_organ_time)
if(1)
visible_message("<span class='notice'>You see odd movement in [src]'s [regenerating_bodypart.name]...</span>","<span class='notice'> You [species && species.flags[NO_PAIN] ? "notice" : "feel"] strange vibration on tips of your [regenerating_bodypart.name]... </span>")
if(10)
visible_message("<span class='notice'>You hear sickening crunch In [src]'s [regenerating_bodypart.name]...</span>")
if(20)
visible_message("<span class='notice'>[src]'s [regenerating_bodypart.name] shortly bends...</span>")
if(30)
if(regenerating_capacity_penalty == regenerating_bodypart.regen_bodypart_penalty/2)
visible_message("<span class='notice'>[src] stirs his [regenerating_bodypart.name]...</span>","<span class='userdanger'>You [species && species.flags[NO_PAIN] ? "notice" : "feel"] freedom in moving your [regenerating_bodypart.name]</span>")
else
visible_message("<span class='notice'>From [src]'s [parse_zone(regenerating_bodypart.body_zone)] grows a small meaty sprout...</span>")
if(50)
visible_message("<span class='notice'>You see something resembling [parse_zone(regenerating_bodypart.body_zone)] at [src]'s [regenerating_bodypart.parent.name]...</span>")
if(65)
visible_message("<span class='userdanger'>A new [parse_zone(regenerating_bodypart.body_zone)] has grown from [src]'s [regenerating_bodypart.parent.name]!</span>","<span class='userdanger'>You [species && species.flags[NO_PAIN] ? "notice" : "feel"] your [parse_zone(regenerating_bodypart.body_zone)] again!</span>")
if(prob(50))
emote("scream")
if(regenerating_organ_time >= regenerating_capacity_penalty) // recover organ
regenerating_bodypart.rejuvenate()
regenerating_organ_time = 0
if(use_cost)
nutrition -= regenerating_capacity_penalty
regenerating_bodypart = null
update_body()
/mob/living/carbon/human/restrained(check_type = ARMS)
if ((check_type & ARMS) && handcuffed)
return TRUE
if ((check_type & LEGS) && legcuffed)
return TRUE
if (istype(wear_suit, /obj/item/clothing/suit/straight_jacket))
return TRUE
if (istype(buckled, /obj/structure/stool/bed/nest))
return TRUE
return 0
/mob/living/carbon/human/resist()
..()
if(usr && !usr.incapacitated())
var/mob/living/carbon/human/D = usr
if(D.get_species() == DIONA)
var/list/choices = list()
for(var/mob/living/carbon/monkey/diona/V in contents)
if(istype(V) && V.gestalt == src)
choices += V
var/mob/living/carbon/monkey/diona/V = input(D,"Who do wish you to expel from within?") in null|choices
if(V)
to_chat(D, "<span class='notice'>You wriggle [V] out of your insides.</span>")
V.splitting(D)
/mob/living/carbon/human/show_inv(mob/user)
user.set_machine(src)
var/has_breathable_mask = istype(wear_mask, /obj/item/clothing/mask)
var/list/obscured = check_obscured_slots()
var/list/dat = list()
var/obj/item/clothing/under/suit = isunder(w_uniform) ? w_uniform : null
dat += "<table>"
dat += "<tr><td><B>Left Hand:</B></td><td><A href='?src=\ref[src];item=[SLOT_L_HAND]'>[(l_hand && !(l_hand.flags & ABSTRACT)) ? l_hand : "<font color=grey>Empty</font>"]</a></td></tr>"
dat += "<tr><td><B>Right Hand:</B></td><td><A href='?src=\ref[src];item=[SLOT_R_HAND]'>[(r_hand && !(r_hand.flags & ABSTRACT)) ? r_hand : "<font color=grey>Empty</font>"]</a></td></tr>"
dat += "<tr><td> </td></tr>"
dat += "<tr><td><B>Back:</B></td><td><A href='?src=\ref[src];item=[SLOT_BACK]'>[(back && !(back.flags & ABSTRACT)) ? back : "<font color=grey>Empty</font>"]</A>"
if(has_breathable_mask && istype(back, /obj/item/weapon/tank))
dat += " <A href='?src=\ref[src];internal=[SLOT_BACK]'>[internal ? "Disable Internals" : "Set Internals"]</A>"
dat += "</td></tr><tr><td> </td></tr>"
dat += "<tr><td><B>Head:</B></td><td><A href='?src=\ref[src];item=[SLOT_HEAD]'>[(head && !(head.flags & ABSTRACT)) ? head : "<font color=grey>Empty</font>"]</A></td></tr>"
if(SLOT_WEAR_MASK in obscured)
dat += "<tr><td><font color=grey><B>Mask:</B></font></td><td><font color=grey>Obscured</font></td></tr>"
else
dat += "<tr><td><B>Mask:</B></td><td><A href='?src=\ref[src];item=[SLOT_WEAR_MASK]'>[(wear_mask && !(wear_mask.flags & ABSTRACT)) ? wear_mask : "<font color=grey>Empty</font>"]</A></td></tr>"
if(SLOT_GLASSES in obscured)
dat += "<tr><td><font color=grey><B>Eyes:</B></font></td><td><font color=grey>Obscured</font></td></tr>"
else
dat += "<tr><td><B>Eyes:</B></td><td><A href='?src=\ref[src];item=[SLOT_GLASSES]'>[(glasses && !(glasses.flags & ABSTRACT)) ? glasses : "<font color=grey>Empty</font>"]</A></td></tr>"
if(SLOT_EARS in obscured)
dat += "<tr><td><font color=grey><B>Ears:</B></font></td><td><font color=grey>Obscured</font></td></tr>"
else
dat += "<tr><td><B>Left Ear:</B></td><td><A href='?src=\ref[src];item=[SLOT_L_EAR]'>[(l_ear && !(l_ear.flags & ABSTRACT)) ? l_ear : "<font color=grey>Empty</font>"]</A></td></tr>"
dat += "<tr><td><B>Right Ear:</B></td><td><A href='?src=\ref[src];item=[SLOT_R_EAR]'>[(r_ear && !(r_ear.flags & ABSTRACT)) ? r_ear : "<font color=grey>Empty</font>"]</A></td></tr>"
dat += "<tr><td> </td></tr>"
dat += "<tr><td><B>Exosuit:</B></td><td><A href='?src=\ref[src];item=[SLOT_WEAR_SUIT]'>[(wear_suit && !(wear_suit.flags & ABSTRACT)) ? wear_suit : "<font color=grey>Empty</font>"]</A></td></tr>"
if(wear_suit)
if(SLOT_S_STORE in obscured)
dat += "<tr><td><font color=grey> ↳<B>Suit Storage:</B></font></td></tr>"
else
dat += "<tr><td> ↳<B>Suit Storage:</B></td><td><A href='?src=\ref[src];item=[SLOT_S_STORE]'>[(s_store && !(s_store.flags & ABSTRACT)) ? s_store : "<font color=grey>Empty</font>"]</A>"
if(has_breathable_mask && istype(s_store, /obj/item/weapon/tank))
dat += " <A href='?src=\ref[src];internal=[SLOT_S_STORE]'>[internal ? "Disable Internals" : "Set Internals"]</A>"
dat += "</td></tr>"
else
dat += "<tr><td><font color=grey> ↳<B>Suit Storage:</B></font></td></tr>"
if(SLOT_SHOES in obscured)
dat += "<tr><td><font color=grey><B>Shoes:</B></font></td><td><font color=grey>Obscured</font></td></tr>"
else
dat += "<tr><td><B>Shoes:</B></td><td><A href='?src=\ref[src];item=[SLOT_SHOES]'>[(shoes && !(shoes.flags & ABSTRACT)) ? shoes : "<font color=grey>Empty</font>"]</A></td></tr>"
if(SLOT_GLOVES in obscured)
dat += "<tr><td><font color=grey><B>Gloves:</B></font></td><td><font color=grey>Obscured</font></td></tr>"
else
dat += "<tr><td><B>Gloves:</B></td><td><A href='?src=\ref[src];item=[SLOT_GLOVES]'>[(gloves && !(gloves.flags & ABSTRACT)) ? gloves : "<font color=grey>Empty</font>"]</A></td></tr>"
if(SLOT_W_UNIFORM in obscured)
dat += "<tr><td><font color=grey><B>Uniform:</B></font></td><td><font color=grey>Obscured</font></td></tr>"
else
dat += "<tr><td><B>Uniform:</B></td><td><A href='?src=\ref[src];item=[SLOT_W_UNIFORM]'>[(w_uniform && !(w_uniform.flags & ABSTRACT)) ? w_uniform : "<font color=grey>Empty</font>"]</A>[(suit && suit.has_sensor == 1) ? " <A href='?src=\ref[src];sensor=1'>Sensors</A>" : ""]</td></tr>"
if(w_uniform == null || (SLOT_W_UNIFORM in obscured))
dat += "<tr><td><font color=grey> ↳<B>Pockets:</B></font></td></tr>"
dat += "<tr><td><font color=grey> ↳<B>ID:</B></font></td></tr>"
dat += "<tr><td><font color=grey> ↳<B>Belt:</B></font></td></tr>"
else
dat += "<tr><td> ↳<B>Belt:</B></td><td><A href='?src=\ref[src];item=[SLOT_BELT]'>[(belt && !(belt.flags & ABSTRACT)) ? belt : "<font color=grey>Empty</font>"]</A>"
if(has_breathable_mask && istype(belt, /obj/item/weapon/tank))
dat += " <A href='?src=\ref[src];internal=[SLOT_BELT]'>[internal ? "Disable Internals" : "Set Internals"]</A>"
dat += "</td></tr>"
dat += "<tr><td> ↳<B>Pockets:</B></td><td><A href='?src=\ref[src];pockets=left'>[(l_store && !(l_store.flags & ABSTRACT)) ? "Left (Full)" : "<font color=grey>Left (Empty)</font>"]</A>"
dat += " <A href='?src=\ref[src];pockets=right'>[(r_store && !(r_store.flags & ABSTRACT)) ? "Right (Full)" : "<font color=grey>Right (Empty)</font>"]</A></td></tr>"
dat += "<tr><td> ↳<B>ID:</B></td><td><A href='?src=\ref[src];item=[SLOT_WEAR_ID]'>[(wear_id && !(wear_id.flags & ABSTRACT)) ? wear_id : "<font color=grey>Empty</font>"]</A></td></tr>"
if(suit)
for(var/obj/item/I in suit.accessories)
dat += "<tr><td> ↳<B>[I.name]:</B></td><td><A href='?src=\ref[src];accessory=\ref[I];suit_accessory=\ref[suit]'>Remove Accessory</A></td></tr>"
if(handcuffed)
dat += "<tr><td><B>Handcuffed:</B></td><td><A href='?src=\ref[src];item=[SLOT_HANDCUFFED]'>Remove</A></td></tr>"
if(legcuffed)
dat += "<tr><td><B>Legcuffed:</B></td><td><A href='?src=\ref[src];item=[SLOT_LEGCUFFED]'>Remove</A></td></tr>"
dat += "<tr><td><B>Bandages:</B></td><td><A href='?src=\ref[src];bandages=1'>Remove</A></td></tr>"
dat += "<tr><td><B>Splints:</B></td><td><A href='?src=\ref[src];splints=1'>Remove</A></td></tr>"
dat += "</table>"
var/datum/browser/popup = new(user, "mob\ref[src]", "[src]", 440, 640)
popup.set_content(dat.Join())
popup.open()
// called when something steps onto a human
// this could be made more general, but for now just handle mulebot
/mob/living/carbon/human/Crossed(atom/movable/AM)
var/obj/machinery/bot/mulebot/MB = AM
if(istype(MB))
MB.RunOver(src)
SpreadFire(AM)
. = ..()
// Get rank from ID, ID inside PDA, PDA, ID in wallet, etc.
/mob/living/carbon/human/proc/get_authentification_rank(if_no_id = "No id", if_no_job = "No job")
var/obj/item/device/pda/pda = wear_id
if (istype(pda))
if (pda.id)
return pda.id.rank
else
return pda.ownrank
else
var/obj/item/weapon/card/id/id = get_idcard()
if(id)
return id.rank ? id.rank : if_no_job
else
return if_no_id
//gets assignment from ID or ID inside PDA or PDA itself
//Useful when player do something with computers
/mob/living/carbon/human/proc/get_assignment(if_no_id = "No id", if_no_job = "No job")
var/obj/item/device/pda/pda = wear_id
var/obj/item/weapon/card/id/id = wear_id
if (istype(pda))
if (pda.id && istype(pda.id, /obj/item/weapon/card/id))
. = pda.id.assignment
else
. = pda.ownjob
else if (istype(id))
. = id.assignment
else
return if_no_id
if (!.)
. = if_no_job
return
//gets name from ID or ID inside PDA or PDA itself
//Useful when player do something with computers
/mob/living/carbon/human/proc/get_authentification_name(if_no_id = "Unknown")
var/obj/item/device/pda/pda = wear_id
var/obj/item/weapon/card/id/id = wear_id
if (istype(pda))
if (pda.id)
. = pda.id.registered_name
else
. = pda.owner
else if (istype(id))
. = id.registered_name
else
return if_no_id
return
//repurposed proc. Now it combines get_id_name() and get_face_name() to determine a mob's name variable. Made into a seperate proc as it'll be useful elsewhere
/mob/living/carbon/human/proc/get_visible_name(face_name_priority = FALSE)
if( wear_mask && (wear_mask.flags_inv&HIDEFACE) ) //Wearing a mask which hides our face, use id-name if possible
return get_id_name("Unknown")
if( head && (head.flags_inv&HIDEFACE) )
return get_id_name("Unknown") //Likewise for hats
if(name_override)
return name_override
var/face_name = get_face_name()
var/id_name = get_id_name("")
if(id_name && (id_name != face_name) && !face_name_priority)
return "[face_name] (as [id_name])"
return face_name
//Returns "Unknown" if facially disfigured and real_name if not. Useful for setting name when polyacided or when updating a human's name variable
/mob/living/carbon/human/proc/get_face_name()
if(!bodyparts_by_name[BP_HEAD])
return "Unknown"
if(istype(bodyparts_by_name[BP_HEAD], /obj/item/organ/external/head))
var/obj/item/organ/external/head/BP = bodyparts_by_name[BP_HEAD]
if( !BP || BP.disfigured || (BP.is_stump) || !real_name || (HUSK in mutations) ) //disfigured. use id-name if possible
return "Unknown"
return real_name
return "Unknown"
//gets name from ID or PDA itself, ID inside PDA doesn't matter
//Useful when player is being seen by other mobs
/mob/living/carbon/human/proc/get_id_name(if_no_id = "Unknown")
. = if_no_id
if(istype(wear_id,/obj/item/device/pda))
var/obj/item/device/pda/P = wear_id
return P.owner
if(wear_id)
var/obj/item/weapon/card/id/I = wear_id.GetID()
if(I)
return I.registered_name
return
//gets ID card object from special clothes slot or null.
/mob/living/carbon/human/proc/get_idcard()
if(wear_id)
return wear_id.GetID()
//Removed the horrible safety parameter. It was only being used by ninja code anyways.
//Now checks siemens_coefficient of the affected area by default
/mob/living/carbon/human/electrocute_act(shock_damage, obj/source, siemens_coeff = 1.0, def_zone = null, tesla_shock = 0)
SEND_SIGNAL(src, COMSIG_ATOM_ELECTROCUTE_ACT, shock_damage, source, siemens_coeff, def_zone, tesla_shock)
if(status_flags & GODMODE)
return 0 //godmode
if(IsShockproof())
return 0 //#Z2 no shock with that mutation.
if((HULK in mutations) && hulk_activator == ACTIVATOR_ELECTRIC_SHOCK) //for check to transformation Hulk.
to_chat(src, "<span class='notice'>You feel pain, but you like it!</span>")
try_mutate_to_hulk()
if(tesla_shock)
var/total_coeff = 1
if(gloves)
var/obj/item/clothing/gloves/G = gloves
if(G.siemens_coefficient <= 0)
total_coeff -= 0.5
if(wear_suit)
var/obj/item/clothing/suit/S = wear_suit
if(S.siemens_coefficient <= 0)
total_coeff -= 0.95
siemens_coeff = total_coeff
else if(def_zone)
var/obj/item/organ/external/BP = get_bodypart(check_zone(def_zone))
siemens_coeff *= get_siemens_coefficient_organ(BP)
if(species)
siemens_coeff *= species.siemens_coefficient
. = ..(shock_damage, source, siemens_coeff, def_zone, tesla_shock)
if(.)
if(species && species.flags[IS_SYNTHETIC])
nutrition += . // Electrocute act returns it's shock_damage value.
if(species.flags[NO_PAIN]) // Because for all intents and purposes, if the mob feels no pain, he was not shocked.
. = 0
electrocution_animation(40)
/mob/living/carbon/human/Topic(href, href_list)
if(href_list["skill"])
update_skills(href_list)
if(href_list["set_max_skills"])
mind.skills.maximize_active_skills()
to_chat(usr, "<span class='notice'>You are trying your best now.</span>")
if(href_list["help_other"])
var/mob/target = locate(href_list["help_other"])
help_other(target)
if(href_list["request_help"])
ask_for_help()
if (href_list["item"])
var/slot = text2num(href_list["item"])
if(slot in check_obscured_slots())
to_chat(usr, "<span class='warning'>You can't reach that! Something is covering it.</span>")
return
if(href_list["pockets"] && usr.CanUseTopicInventory(src))
var/pocket_side = href_list["pockets"]
var/pocket_id = (pocket_side == "right" ? SLOT_R_STORE : SLOT_L_STORE)
var/obj/item/pocket_item = (pocket_id == SLOT_R_STORE ? r_store : l_store)
var/obj/item/place_item = usr.get_active_hand() // Item to place in the pocket, if it's empty
var/delay_denominator = 1
if(pocket_item && !(pocket_item.flags & (ABSTRACT | DROPDEL)))
if((pocket_item.flags & NODROP) || !pocket_item.canremove)
to_chat(usr, "<span class='warning'>You try to empty [src]'s [pocket_side] pocket, it seems to be stuck!</span>")
to_chat(usr, "<span class='notice'>You try to empty [src]'s [pocket_side] pocket.</span>")
else if(place_item && place_item.mob_can_equip(src, pocket_id) && !(place_item.flags & (ABSTRACT | DROPDEL)))
to_chat(usr, "<span class='notice'>You try to place [place_item] into [src]'s [pocket_side] pocket.</span>")
delay_denominator = 4
else
return
if(do_mob(usr, src, HUMAN_STRIP_DELAY/delay_denominator)) //placing an item into the pocket is 4 times faster
if(pocket_item)
if(pocket_item == (pocket_id == SLOT_R_STORE ? r_store : l_store)) //item still in the pocket we search
remove_from_mob(pocket_item)
attack_log += text("\[[time_stamp()]\] <font color='orange'>Has had their [pocket_item] ([slot_id_to_name(pocket_id)]) removed by [usr.name] ([usr.ckey])</font>")
usr.attack_log += text("\[[time_stamp()]\] <font color='red'>Removed [name]'s ([ckey]) [pocket_item] ([slot_id_to_name(pocket_id)])</font>")
else
if(place_item)
if(place_item.mob_can_equip(src, pocket_id))
usr.remove_from_mob(place_item)
equip_to_slot_if_possible(place_item, pocket_id)
attack_log += text("\[[time_stamp()]\] <font color='orange'>[usr.name] ([usr.ckey]) placed on our [slot_id_to_name(pocket_id)] ([place_item])</font>")
usr.attack_log += text("\[[time_stamp()]\] <font color='red'>Placed on [name]'s ([ckey]) [slot_id_to_name(pocket_id)] ([place_item])</font>")
//do nothing otherwise
else
// Display a warning if the user mocks up
to_chat(src, "<span class='warning'>You feel your [pocket_side] pocket being fumbled with!</span>")
if(usr.machine == src && Adjacent(usr))
show_inv(usr)
if (href_list["bandages"] && usr.CanUseTopicInventory(src))
remove_bandages()
if (href_list["splints"] && usr.CanUseTopicInventory(src))
var/list/splints
for(var/bodypart_name in list(BP_L_LEG , BP_R_LEG , BP_L_ARM , BP_R_ARM))
var/obj/item/organ/external/BP = bodyparts_by_name[bodypart_name]
if(BP && BP.status & ORGAN_SPLINTED)
LAZYADD(splints, BP)
if(splints)
visible_message("<span class='danger'>[usr] is trying to remove [src]'s splints!</span>")
if(do_mob(usr, src, HUMAN_STRIP_DELAY))
for(var/obj/item/organ/external/BP in splints)
if (BP.status & ORGAN_SPLINTED)
var/obj/item/W = new /obj/item/stack/medical/splint(loc, 1)
BP.status &= ~ORGAN_SPLINTED
W.add_fingerprint(usr)
attack_log += "\[[time_stamp()]\] <font color='orange'>Had their splints removed by [usr.name] ([usr.ckey]).</font>"
usr.attack_log += "\[[time_stamp()]\] <font color='red'>Removed [name]'s ([ckey]) splints.</font>"
if (href_list["sensor"] && usr.CanUseTopicInventory(src))
if(isunder(w_uniform))
var/obj/item/clothing/under/S = w_uniform
visible_message("<span class='danger'>[usr] is trying to set [src]'s suit sensors!</span>")
if(do_mob(usr, src, HUMAN_STRIP_DELAY))
if(S.has_sensor >= 2)
to_chat(usr, "<span class='notice'>The controls are locked.</span>")
else
S.set_sensors(usr)
attack_log += text("\[[time_stamp()]\] <font color='orange'>Had their sensors toggled by [usr.name] ([usr.ckey]) mode=([S.sensor_mode]).</font>")
usr.attack_log += text("\[[time_stamp()]\] <font color='red'>Toggled [name]'s ([ckey]) sensors mode=([S.sensor_mode]).</font>")
if (href_list["accessory"] && href_list["suit_accessory"] && usr.CanUseTopicInventory(src))
var/obj/item/clothing/accessory/A = locate(href_list["accessory"])
var/obj/item/clothing/under/S = locate(href_list["suit_accessory"])
if(istype(A) && istype(S) && (A in S.accessories))
var/strip_time = HUMAN_STRIP_DELAY
if(istype(A, /obj/item/clothing/accessory/holobadge) || istype(A, /obj/item/clothing/accessory/medal))
strip_time = 5
visible_message("<span class='danger'>[usr] is trying to take off \a [A] from [src]'s [w_uniform]!</span>")
if(do_mob(usr, src, strip_time) && (A in S.accessories))
if(strip_time == 5)
visible_message("<span class='danger'>[usr] tears off \the [A] from [src]'s [S]!</span>")
else
visible_message("<span class='danger'>[usr] removed \the [A] from [src]'s [S]!</span>")
S.remove_accessory(usr, A)
attack_log += "\[[time_stamp()]\] <font color='orange'>Had their accessory ([A]) removed by [usr.name] ([usr.ckey])</font>"
usr.attack_log += "\[[time_stamp()]\] <font color='red'>Attempted to remove [name]'s ([ckey]) accessory ([A])</font>"
if (href_list["criminal"])
if(hasHUD(usr,"security"))
var/perpname = get_visible_name(TRUE)
change_criminal_status(usr, usr, perpname)
if (href_list["secrecord"])
if(hasHUD(usr,"security"))
var/read = FALSE
var/record_id = find_record_by_name(usr, get_visible_name(TRUE))
var/datum/data/record/R = find_security_record("id", record_id)
if(R)
to_chat(usr, "<b>Name:</b> [R.fields["name"]] <b>Criminal Status:</b> [R.fields["criminal"]]")
to_chat(usr, "<b>Minor Crimes:</b> [R.fields["mi_crim"]]")
to_chat(usr, "<b>Details:</b> [R.fields["mi_crim_d"]]")
to_chat(usr, "<b>Major Crimes:</b> [R.fields["ma_crim"]]")
to_chat(usr, "<b>Details:</b> [R.fields["ma_crim_d"]]")
to_chat(usr, "<b>Notes:</b> [R.fields["notes"]]")
to_chat(usr, "<a href='?src=\ref[src];secrecordComment=`'>\[View Comment Log\]</a>")
read = TRUE
if(!read)
to_chat(usr, "<span class='warning'>Человек с таким именем не найден в базе данных.</span>")
if (href_list["secrecordComment"])
if(hasHUD(usr,"security"))
var/read = FALSE
var/record_id = find_record_by_name(usr, get_visible_name(TRUE))
var/datum/data/record/R = find_security_record("id", record_id)
if(R)
var/counter = 1
while(R.fields[text("com_[]", counter)])
to_chat(usr, text("[]", R.fields[text("com_[]", counter)]))
counter++
if (counter == 1)
to_chat(usr, "No comment found")
to_chat(usr, "<a href='?src=\ref[src];secrecordadd=`'>\[Add comment\]</a>")
read = TRUE
if(!read)
to_chat(usr, "<span class='warning'>Человек с таким именем не найден в базе данных.</span>")
if (href_list["secrecordadd"])
if(hasHUD(usr,"security"))
var/read = FALSE
var/record_id = find_record_by_name(usr, get_visible_name(TRUE))
var/datum/data/record/R = find_security_record("id", record_id)
if(R)
var/t1 = sanitize(input("Add Comment:", "Sec. records", null, null) as message)
if( !(t1) || usr.incapacitated() || !(hasHUD(usr,"security")) )
return
add_record(usr, R, t1)
read = TRUE
if(!read)
to_chat(usr, "<span class='warning'>Человек с таким именем не найден в базе данных.</span>")
if (href_list["medical"])
if(hasHUD(usr,"medical"))
var/perpname = get_visible_name(TRUE)
var/modified = 0
for (var/datum/data/record/E in data_core.general)
if (E.fields["name"] == perpname)
for (var/datum/data/record/R in data_core.general)
if (R.fields["id"] == E.fields["id"])
var/setmedical = input(usr, "Укажите новый медицинский статус для этого человека.", "Medical HUD", R.fields["p_stat"]) in list("*SSD*", "*Deceased*", "Physically Unfit", "Active", "Disabled", "Cancel")
if(hasHUD(usr,"medical"))
if(setmedical != "Cancel")
R.fields["p_stat"] = setmedical
modified = 1
PDA_Manifest.Cut()
spawn()
if(ishuman(usr))
var/mob/living/carbon/human/U = usr
U.handle_regular_hud_updates()
if(isrobot(usr))
var/mob/living/silicon/robot/U = usr
U.handle_regular_hud_updates()
if(!modified)
to_chat(usr, "<span class='warning'>Человек с таким именем не найден в базе данных.</span>")
if (href_list["medrecord"])
if(hasHUD(usr,"medical"))
var/perpname = get_visible_name(TRUE)
var/read = 0
for (var/datum/data/record/E in data_core.general)
if (E.fields["name"] == perpname)
for (var/datum/data/record/R in data_core.medical)
if (R.fields["id"] == E.fields["id"])
if(hasHUD(usr,"medical"))
to_chat(usr, "<b>Name:</b> [R.fields["name"]] <b>Blood Type:</b> [R.fields["b_type"]]")
to_chat(usr, "<b>DNA:</b> [R.fields["b_dna"]]")
to_chat(usr, "<b>Minor Disabilities:</b> [R.fields["mi_dis"]]")
to_chat(usr, "<b>Details:</b> [R.fields["mi_dis_d"]]")
to_chat(usr, "<b>Major Disabilities:</b> [R.fields["ma_dis"]]")
to_chat(usr, "<b>Details:</b> [R.fields["ma_dis_d"]]")
to_chat(usr, "<b>Notes:</b> [R.fields["notes"]]")
to_chat(usr, "<a href='?src=\ref[src];medrecordComment=`'>\[View Comment Log\]</a>")
read = 1
if(!read)
to_chat(usr, "<span class='warning'>Человек с таким именем не найден в базе данных.</span>")
if (href_list["medrecordComment"])
if(hasHUD(usr,"medical"))
var/perpname = get_visible_name(TRUE)
var/read = 0
for (var/datum/data/record/E in data_core.general)
if (E.fields["name"] == perpname)
for (var/datum/data/record/R in data_core.medical)
if (R.fields["id"] == E.fields["id"])
if(hasHUD(usr,"medical"))
read = 1
var/counter = 1
while(R.fields[text("com_[]", counter)])
to_chat(usr, text("[]", R.fields[text("com_[]", counter)]))
counter++
if (counter == 1)
to_chat(usr, "No comment found")
to_chat(usr, "<a href='?src=\ref[src];medrecordadd=`'>\[Add comment\]</a>")
if(!read)
to_chat(usr, "<span class='warning'>Человек с таким именем не найден в базе данных.</span>")
if (href_list["medrecordadd"])
if(hasHUD(usr,"medical"))
var/perpname = get_visible_name(TRUE)
for (var/datum/data/record/E in data_core.general)
if (E.fields["name"] == perpname)
for (var/datum/data/record/R in data_core.medical)
if (R.fields["id"] == E.fields["id"])
if(hasHUD(usr,"medical"))
var/t1 = sanitize(input("Add Comment:", "Med. records", null, null) as message)
if ( !(t1) || usr.incapacitated() || !(hasHUD(usr,"medical")) )
return
var/counter = 1
while(R.fields[text("com_[]", counter)])
counter++
if(ishuman(usr))
var/mob/living/carbon/human/U = usr
R.fields[text("com_[counter]")] = text("Made by [U.get_authentification_name()] ([U.get_assignment()]) on [worldtime2text()], [time2text(world.realtime, "DD/MM")]/[game_year]<BR>[t1]")
if(isrobot(usr))
var/mob/living/silicon/robot/U = usr
R.fields[text("com_[counter]")] = text("Made by [U.name] ([U.modtype] [U.braintype]) on [worldtime2text()], [time2text(world.realtime, "DD/MM")]/[game_year]<BR>[t1]")
if (href_list["lookitem"])
var/obj/item/I = locate(href_list["lookitem"])
usr.examinate(I)
if (href_list["lookmob"])
var/mob/M = locate(href_list["lookmob"])
usr.examinate(M)
..()
return
///eyecheck()
/mob/living/carbon/human/eyecheck()
if(blinded)
return FLASHES_FULL_PROTECTION
var/protection = 0
for(var/obj/item/I in get_all_slots())
if(I.slot_equipped in I.flash_protection_slots)
protection += I.flash_protection
return protection
/mob/living/carbon/human/IsAdvancedToolUser()
return 1//Humans can use guns and such
/mob/living/carbon/human/abiotic(full_body = 0)
if(full_body && ((src.l_hand && !( src.l_hand.abstract )) || (src.r_hand && !( src.r_hand.abstract )) || (src.back || src.wear_mask || src.head || src.shoes || src.w_uniform || src.wear_suit || src.glasses || src.l_ear || src.r_ear || src.gloves)))
return 1
if( (src.l_hand && !src.l_hand.abstract) || (src.r_hand && !src.r_hand.abstract) )
return 1
return 0
/mob/living/carbon/human/proc/check_dna()
dna.check_integrity(src)
return
/mob/living/carbon/human/get_species()
return species.name
/mob/living/carbon/human/proc/play_xylophone()
if(!src.xylophone)
visible_message("<span class='warning'>[src] begins playing his ribcage like a xylophone. It's quite spooky.</span>","<span class='notice'>You begin to play a spooky refrain on your ribcage.</span>","<span class='warning'>You hear a spooky xylophone melody.</span>")
var/song = pick('sound/effects/xylophone1.ogg','sound/effects/xylophone2.ogg','sound/effects/xylophone3.ogg')
playsound(src, song, VOL_EFFECTS_INSTRUMENT)
xylophone = 1
spawn(1200)
xylophone=0
return
/mob/living/carbon/human/vomit(punched = FALSE, masked = FALSE, vomit_type = DEFAULT_VOMIT, stun = TRUE, force = FALSE)
var/mask_ = masked
if(species.flags[NO_VOMIT])
return FALSE
if(wear_mask && (wear_mask.flags & MASKCOVERSMOUTH))
mask_ = TRUE
return ..(punched, mask_, vomit_type, stun, force)
/mob/living/carbon/human/proc/force_vomit(mob/living/carbon/human/H)
if(H.species.flags[IS_SYNTHETIC])
to_chat(src, "<span class='warning'>Wait... Where is the mouth?</span>")
return
if((H.head && (H.head.flags & HEADCOVERSMOUTH)) || (H.wear_mask && (H.wear_mask.flags & MASKCOVERSMOUTH)))
to_chat(src, "<span class='warning'>You can't slide your fingers through THAT...</span>")
return
if(src != H)
visible_message("<span class='notice'>[src] is sliding \his fingers into [H]'s mouth.</span>", "<span class='notice'>You are sliding your fingers into [H]'s mouth.</span>")
shoving_fingers = TRUE
if(is_busy() || !do_after(src, 3 SECONDS, target = H))
return
if(!shoving_fingers)
return
if(src != H)
visible_message("<span class='warning'>[src] put \his fingers into [H]'s mouth and begins to press on.</span>", "<span class='notice'>You put your fingers into [H]'s mouth and begin to press on.</span>")
else
visible_message("<span class='warning'>[src] put \his fingers into \his own mouth.</span>", "<span class='notice'>You put your fingers into your own mouth.</span>")
shoving_fingers = TRUE
if(H.species.flags[NO_VOMIT])
shoving_fingers = FALSE
return
var/stage = 0
for(var/i in 1 to 10)
if(!shoving_fingers) // They bit us or something.
return
if(!is_busy() && do_after(src, 7, target = H))
if(stage < 3)