-
Notifications
You must be signed in to change notification settings - Fork 155
/
helmet.dm
1084 lines (939 loc) · 48.1 KB
/
helmet.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
/obj/item/clothing/head/helmet
name = "helmet"
desc = "Standard Security gear. Protects the head from impacts."
icon_state = "helmet"
inhand_icon_state = "helmet"
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
armor = ARMOR_VALUE_MEDIUM
armor_tokens = list()
flags_inv = HIDEEARS | HIDEHAIR
cold_protection = HEAD
min_cold_protection_temperature = HELMET_MIN_TEMP_PROTECT
heat_protection = HEAD
max_heat_protection_temperature = HELMET_MAX_TEMP_PROTECT
strip_delay = 60
resistance_flags = NONE
flags_cover = HEADCOVERSEYES
var/list/protected_zones = list(BODY_ZONE_HEAD)
pocket_storage_component_path = /datum/component/storage/concrete/pockets/small/rushelmet
dog_fashion = /datum/dog_fashion/head/helmet
var/can_flashlight = FALSE //if a flashlight can be mounted. if it has a flashlight and this is false, it is permanently attached.
var/obj/item/flashlight/seclite/attached_light
var/datum/action/item_action/toggle_helmet_flashlight/alight
/obj/item/clothing/head/helmet/Initialize()
. = ..()
if(attached_light)
alight = new(src)
/obj/item/clothing/head/helmet/Destroy()
var/obj/item/flashlight/seclite/old_light = set_attached_light(null)
if(old_light)
qdel(old_light)
return ..()
/obj/item/clothing/head/helmet/examine(mob/user)
. = ..()
if(attached_light)
. += "It has \a [attached_light] [can_flashlight ? "" : "permanently "]mounted on it."
if(can_flashlight)
. += "<span class='info'>[attached_light] looks like it can be <b>unscrewed</b> from [src].</span>"
else if(can_flashlight)
. += "It has a mounting point for a <b>seclite</b>."
/obj/item/clothing/head/helmet/handle_atom_del(atom/A)
if(A == attached_light)
set_attached_light(null)
update_helmlight()
update_icon()
QDEL_NULL(alight)
qdel(A)
return ..()
///Called when attached_light value changes.
/obj/item/clothing/head/helmet/proc/set_attached_light(obj/item/flashlight/seclite/new_attached_light)
if(attached_light == new_attached_light)
return
. = attached_light
attached_light = new_attached_light
if(attached_light)
attached_light.set_light_flags(attached_light.light_flags | LIGHT_ATTACHED)
if(attached_light.loc != src)
attached_light.forceMove(src)
else if(.)
var/obj/item/flashlight/seclite/old_attached_light = .
old_attached_light.set_light_flags(old_attached_light.light_flags & ~LIGHT_ATTACHED)
if(old_attached_light.loc == src)
old_attached_light.forceMove(get_turf(src))
/obj/item/clothing/head/helmet/ComponentInitialize()
. = ..()
AddComponent(/datum/component/wearertargeting/earprotection, list(SLOT_HEAD))
/obj/item/clothing/head/helmet/sec
can_flashlight = TRUE
/obj/item/clothing/head/helmet/sec/attackby(obj/item/I, mob/user, params)
if(issignaler(I))
var/obj/item/assembly/signaler/S = I
if(attached_light) //Has a flashlight. Player must remove it, else it will be lost forever.
to_chat(user, span_warning("The mounted flashlight is in the way, remove it first!"))
return
if(S.secured)
qdel(S)
var/obj/item/bot_assembly/secbot/A = new
user.put_in_hands(A)
to_chat(user, span_notice("You add the signaler to the helmet."))
qdel(src)
return
return ..()
/obj/item/clothing/head/helmet/alt
name = "bulletproof helmet"
desc = "A bulletproof combat helmet that excels in protecting the wearer against traditional projectile weaponry and explosives to a minor extent."
icon_state = "helmetalt"
inhand_icon_state = "helmetalt"
armor_tokens = list(ARMOR_MODIFIER_UP_BULLET_T2)
can_flashlight = 1
dog_fashion = null
/obj/item/clothing/head/helmet/alt/Initialize()
. = ..()
AddComponent(/datum/component/armor_plate)
/obj/item/clothing/head/kevlarhelmet
name = "Base for kevlar helmets of various degrees"
desc = "Base for Kevlar helmets 2.0 electric boogaloo"
armor_tokens = list( ARMOR_MODIFIER_UP_DT_T1 , ARMOR_MODIFIER_UP_ENV_T1)
armor = ARMOR_VALUE_LIGHT
dog_fashion = null
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
/obj/item/clothing/head/kevlarhelmet/rus1
name = "Modern Russian helmet"
desc = "A modern Russian 6b47. Saw use Pre-Fall by the Russian military. Mainly in use by slavic based wastelanders, it finds itself now in the bayou."
icon_state = "6b47rus"
inhand_icon_state = "6b47rus"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/rus2
name = "KGB Russian Helmet"
desc = "A STSh-81 Helmet. Instead of being made of titanium alloys, it's made of the normal materials one would find in a ballistic helmet. Somehow, it's found itself in the bayou. It's far from its original home."
icon_state = "kgbhelmet"
inhand_icon_state = "kgbhelmet"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/canadian
name = "Canadian Helmet"
desc = "A Canadian CG634 standard issue helmet. It saw use in the Canadian army. Now it ends up in this region. Far from the North it seems."
icon_state = "canadiancg634"
inhand_icon_state = "canadiancg634"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/unitednation
name = "U.N Helmet"
desc = "A United Nations helmet. It sees use by U.N PeaceKeepers during Pre-Fall times. Bright blue, perfect for sky camo and keeping peace."
icon_state = "unhelmet"
inhand_icon_state = "unhelmet"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/unitednation/medical
name = "U.N Medical Helmet"
desc = "A United Nations helmet. It sees use by U.N PeaceKeepers during Pre-Fall times. Bright blue with a green medical cross"
icon_state = "unmedical"
inhand_icon_state = "unmedical"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/newshelmet
name = "War Press helmet"
desc = "A war press helmet. This helmet saw use by Pre-Fall War correspondents. Lets any shooters know you're just there to take a news and footage...if you have any cameras on you."
icon_state = "warpress"
inhand_icon_state = "warpress"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/americandesert
name = "American desert helmet"
desc = "An desert themed PASGT American helmet. This saw heavy use in the Gulf War during Pre-Fall times. This helmet's cover was repaired to pristine condition"
icon_state = "pasgtdesert"
inhand_icon_state = "pasgtdesert"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/china1
name = "Modern Chinese helmet"
desc = "A QGF03 Chinese helmet. This helmet saw primary usage in the People's Liberation Army during Pre-Fall times. The cover's been restored."
icon_state = "qgf03china"
inhand_icon_state = "qgf03china"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/hueypilot
name = "Aircrew Helmet"
desc = "A aircrewmen helmet. This helmet is outfitted for pilot's and comes with a cool cosmetic microphone. As a pilot once said 'I love the smell of vertibird fuel in the evening'."
icon_state = "pilothelmet"
inhand_icon_state = "pilothelmet"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/ghillie
name = "Ghillie helmet"
desc = "A steel helmet covered in the user's own macabre of leaves, grass, and flora patterns. Meant to disguise the wearer's head in grassy regions"
icon_state = "ghillie"
inhand_icon_state = "ghillie"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/ukhelmet
name = "MK6 Helmet"
desc = "A British MK6 helmet. It was outphased by the MK7, but the MK6 saw extensive use by the British military, PMCs, and foreign countries. Reliable, hardy, and cool looking. Who dares wins."
icon_state = "mk6"
inhand_icon_state = "mk6"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/cossackgear
name = "Black bearskin hat"
desc = "A very warm and well made bearskin hat. The black fur is commonly seen across the world from Kuban cossacks to the Queen's guard. The hat is remarkable soft and very useful for the winter. Take out that sabre and charge forth!"
icon_state = "cossack"
inhand_icon_state = "cossack"
armor_tokens = list( ARMOR_MODIFIER_UP_DT_T1 , ARMOR_MODIFIER_UP_ENV_T1)
armor = ARMOR_VALUE_LIGHT
dog_fashion = null
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDEEARS
/obj/item/clothing/head/cossackgear/white
name = "White bearskin hat"
desc = "A very warm and well made bearskin hat. The white fur is uncommonly seen across the world from cossacks to other groups across the world. The hat is remarkable soft and very useful for the winter. Take out that sabre and charge forth!"
icon_state = "wcossack"
inhand_icon_state = "wcossack"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDEEARS
/obj/item/clothing/head/cossackgear/papakhacossack
name = "Black Papahka hat"
desc = "A very warm and well made papakha hat. Made of wool, this hat was used throughout the Caucasus regions."
icon_state = "papakha"
inhand_icon_state = "papakha"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDEEARS
/obj/item/clothing/head/cossackgear/papakhawhitecossack
name = "White bearskin hat"
desc = "A very warm and well made papakha hat. Made of wool, this hat was used throughout the Caucasus regions. This one is white"
icon_state = "papakhaw"
inhand_icon_state = "papakhaw"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDEEARS
/obj/item/clothing/head/cossackgear/papakhakubancossack
name = "White bearskin hat"
desc = "A very warm and well made papakha hat. Made of wool, this hat was used throughout the Caucasus regions. This one is based off the hats used by the Kuban Cossacks."
icon_state = "papakhakuban"
inhand_icon_state = "papakhakuban"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDEEARS
/obj/item/clothing/head/kevlarhelmet/steelgerman
name = "Biker helmet"
desc = "A biker's steel helmet. Good on style and kicking ass at the bar. 'What did you say about my mother?'-some biker probably."
icon_state = "1919german"
inhand_icon_state = "1919german"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/ww1steelgerman
name = "Outdated steel helmet"
desc = "An outdated steel helmet design. The design and documents long lost to time. Now and days it's used as a nifty biker helmet. Just this one needs some new paint."
icon_state = "oldgerm"
inhand_icon_state = "oldgerm"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/steelww2soviet
name = "WW2 Soviet helmet"
desc = "A outdated yet functional soviet helmet from WW2. It is a plain, cut, simple, and simple-designed helmet that offers the same protection as any else steel helmet."
icon_state = "sovhelm"
inhand_icon_state = "sovhelm"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/pilotka
name = "Armored Pilotka hat"
desc = "A ballistic weaved pilotka hat. The hat originated during WW2 and saw extensive use by the Red Army in WW2. After the 1980s, the pilotka was used during the summer time. It still finds use in post-war and Pre-Fall modern times."
icon_state = "pilotka"
inhand_icon_state = "pilotka"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/ww1capseries
name = "Armored British Cap"
desc = "A ballistic weaved British WW1 cap. This cap was used before helmets were a thing in the Great war."
icon_state = "brittcap"
inhand_icon_state = "brittcap"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/ww1capseries/german
name = "Armored East German Cap"
desc = "A ballistic weaved East German cap. This cap was modeled after the cap used by Imperial German soldiers in WW1, which was used before helmets were a thing in the Great war."
icon_state = "germcap"
inhand_icon_state = "germcap"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/warhammerhatsandhelmets
name = "Armored Ancient West German cap"
desc = "A ballistic weaved West German cap. This cap is of a very ancient design it seems!"
icon_state = "comissar"
inhand_icon_state = "comissar"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/warhammerhatsandhelmets/imperiumhelmet
name = "Ancient American ballistic helmet"
desc = "A ballistic helmet of an ancient American design. Very old design but might prove handy!"
icon_state = "guard"
inhand_icon_state = "guard"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/ww1capseries/french
name = "Armored French Cap"
desc = "A ballistic weaved French WW1 cap. This cap was used before helmets were a thing in the Great war."
icon_state = "frenchcap"
inhand_icon_state = "frenchcap"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/ww2usa
name = "M1 battle helmet"
desc = "A M1 helmet. This helmet was extensively used by the U.S during WW2. It came with a bountiful set of options and customization features..like a painted cross! Or netting! Or even a nifty camo cover! This specific helmet has none of that. A clean cut made helmet, go out and make it well worn!"
icon_state = "m1helm"
inhand_icon_state = "m1helm"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/ww1russiancap
name = "Armored Imperial Russian cap"
desc = "A clean pressed and finely made Imperial Russian cap. This cap was used throughout the Great War by Imperial Russian officers and soldiers. Don the bayonets and get the trench whistle ready to blow, you're up!"
icon_state = "ww1rus"
inhand_icon_state = "ww1rus"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/ww237jap
name = "Old Japanese helmet"
desc = "A old styled Japanese helmet. This helmet was introduced during the old wars from Japan in the Pacific. Usually came with a flag. Pick a bush and wait patiently for the enemy to fall into your trap."
icon_state = "japhelm"
inhand_icon_state = "japhelm"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/rusadrian
name = "Russian Adrian helmet"
desc = "A Adrian helmet, but instead of it being French, it's Russian. Used by Russian during the Great War, these helmets were the go-to of the army. Donning a red star, it was more olive in appearance."
icon_state = "adrianir"
inhand_icon_state = "adrianir"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/armoredushanka
name = "Ballistic Soviet Union Ushanka"
desc = "A Ushanka made with ballistic weave and kevlar in mind. Now you can rock the motherland's style while having that head of yours be protected. Still comfortable if not a shy bit more comfortable than your usual ushanka."
icon_state = "newushanka"
inhand_icon_state = "newushanka"
armor_tokens = list( ARMOR_MODIFIER_UP_DT_T1 , ARMOR_MODIFIER_UP_ENV_T1)
armor = ARMOR_VALUE_LIGHT
dog_fashion = null
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDEEARS
/obj/item/clothing/head/evaspartan
name = "M-87 'EVA' assault helmet"
desc = "An assault helmet produced by Leo Armaments. The helmet is specifically made for E.V.A enviroments. Aftermarket military designs can claim to have spun off as many sub-variants as the EVA M-87 design. However the enduring popularity of the design is a testament to its reliability, ergonomics, modularity, and militaristic craftsmanship by Leo Armaments. "
icon_state = "eva"
inhand_icon_state = "eva"
armor_tokens = list(ARMOR_MODIFIER_DOWN_MELEE_T2 ,ARMOR_MODIFIER_UP_DT_T1 , ARMOR_MODIFIER_DOWN_LASER_T1 , ARMOR_MODIFIER_UP_ENV_T1)
armor = ARMOR_VALUE_MEDIUM
dog_fashion = null
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDESNOUT | HIDEHAIR
/obj/item/clothing/head/evaspartan2
name = "M-87 'EVA' assault helmet 'Icebreaker' "
desc = "An assault helmet produced by Leo Armaments. The helmet is specifically made for E.V.A enviroments. Aftermarket military designs can claim to have spun off as many sub-variants as the EVA M-87 design. However the enduring popularity of the design is a testament to its reliability, ergonomics, modularity, and militaristic craftsmanship by Leo Armaments. This one has a winter-polarized coating."
icon_state = "eva2"
inhand_icon_state = "eva2"
armor_tokens = list(ARMOR_MODIFIER_DOWN_MELEE_T2 ,ARMOR_MODIFIER_UP_DT_T1 , ARMOR_MODIFIER_DOWN_LASER_T1 , ARMOR_MODIFIER_UP_ENV_T1)
armor = ARMOR_VALUE_MEDIUM
dog_fashion = null
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDESNOUT | HIDEHAIR
/obj/item/clothing/head/evaspartan3
name = "M-87 'EVA' assault helmet 'Leo Patriot' "
desc = "An assault helmet produced by Leo Armaments. The helmet is specifically made for E.V.A enviroments. Aftermarket military designs can claim to have spun off as many sub-variants as the EVA M-87 design. However the enduring popularity of the design is a testament to its reliability, ergonomics, modularity, and militaristic craftsmanship by Leo Armaments. This one has a Leo Armaments paint scheme to it."
icon_state = "eva3"
inhand_icon_state = "eva3"
armor_tokens = list(ARMOR_MODIFIER_DOWN_MELEE_T2 ,ARMOR_MODIFIER_UP_DT_T1 , ARMOR_MODIFIER_DOWN_LASER_T1 , ARMOR_MODIFIER_UP_ENV_T1)
armor = ARMOR_VALUE_MEDIUM
dog_fashion = null
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDESNOUT | HIDEHAIR
/obj/item/clothing/head/gungnirspartan
name = "M-87 'Odin' assault helmet"
desc = "An assault helmet produced by Leo Armaments. The helmet has a facial attachment is akin to the sniper plates one would find in WW1 trenches. The facial plate comes with a camera that can allow one to see through the faceplate. Aftermarket military designs can claim to have spun off as many sub-variants as the EVA M-87 design. However the enduring popularity of the design is a testament to its reliability, ergonomics, modularity, and militaristic craftsmanship by Leo Armaments."
icon_state = "gungnir"
inhand_icon_state = "gungnir"
armor_tokens = list(ARMOR_MODIFIER_DOWN_MELEE_T2 ,ARMOR_MODIFIER_UP_DT_T1 , ARMOR_MODIFIER_DOWN_LASER_T1 , ARMOR_MODIFIER_UP_ENV_T1)
armor = ARMOR_VALUE_MEDIUM
dog_fashion = null
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDESNOUT | HIDEHAIR
/obj/item/clothing/head/gungnirspartan2
name = "M-87 'Odin' assault helmet 'Icebreaker' "
desc = "An assault helmet produced by Leo Armaments. The helmet has a facial attachment is akin to the sniper plates one would find in WW1 trenches. The facial plate comes with a camera that can allow one to see through the faceplate. Aftermarket military designs can claim to have spun off as many sub-variants as the EVA M-87 design. However the enduring popularity of the design is a testament to its reliability, ergonomics, modularity, and militaristic craftsmanship by Leo Armaments. This one comes in a artic finish."
icon_state = "gungnir2"
inhand_icon_state = "gungnir2"
armor_tokens = list(ARMOR_MODIFIER_DOWN_MELEE_T2 ,ARMOR_MODIFIER_UP_DT_T1 , ARMOR_MODIFIER_DOWN_LASER_T1 , ARMOR_MODIFIER_UP_ENV_T1)
armor = ARMOR_VALUE_MEDIUM
dog_fashion = null
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDESNOUT | HIDEHAIR
/obj/item/clothing/head/droptrooper
name = "M-87 UNMC DropTrooper assault helmet"
desc = "An assault helmet produced by Leo Armaments. The helmet is esteemed and well known amongst Drop Troopers of the UNMC. Heavily favored for its reliable nature and downright sleek nature. It's quite the modular helmet and eventually became the baseline for the M-87 Assault Helmet modular system. The helmet is nicknamed 'Drop Trooper's best friend' by some branches of the UNMC."
icon_state = "odst"
inhand_icon_state = "odst"
armor_tokens = list(ARMOR_MODIFIER_DOWN_MELEE_T2 ,ARMOR_MODIFIER_UP_DT_T1 , ARMOR_MODIFIER_DOWN_LASER_T1 , ARMOR_MODIFIER_UP_ENV_T1)
armor = ARMOR_VALUE_MEDIUM
dog_fashion = null
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDESNOUT | HIDEHAIR
/obj/item/clothing/head/droptrooper/ice
name = "M-87 Luchtmobiele Brigade assault helmet"
desc = "An assault helmet produced by Leo Armaments. The helmet is esteemed and well known amongst Drop Troopers of the UNMC. However, this helmet seems to have been upgraded to fit and be equipped with Mark XI assault armor. It retains the same appearance, but dons but a stripe and polar finish. It seems it was made in collaboration between the Royal Netherlands military and Leo Armaments."
icon_state = "odst3"
inhand_icon_state = "odst3"
armor_tokens = list(ARMOR_MODIFIER_DOWN_MELEE_T2 ,ARMOR_MODIFIER_UP_DT_T1 , ARMOR_MODIFIER_DOWN_LASER_T1 , ARMOR_MODIFIER_UP_ENV_T1)
armor = ARMOR_VALUE_MEDIUM
dog_fashion = null
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDESNOUT | HIDEHAIR
/obj/item/clothing/head/droptrooper/special
name = "M-87 HellTrooper assault helmet"
desc = "An assault helmet produced by Leo Armaments. The helmet is esteemed and well known amongst Drop Troopers of the UNMC. However, this helmet seems to have been upgraded to fit and be equipped with Mark XI assault armor. It retains the same appearance, but dons but a stripe and Leo Armaments. finish. It seems it was made in collaboration between the UNMC special forces and Leo Armaments."
icon_state = "odst3"
inhand_icon_state = "odst3"
armor_tokens = list(ARMOR_MODIFIER_DOWN_MELEE_T2 ,ARMOR_MODIFIER_UP_DT_T1 , ARMOR_MODIFIER_DOWN_LASER_T1 , ARMOR_MODIFIER_UP_ENV_T1)
armor = ARMOR_VALUE_MEDIUM
dog_fashion = null
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDESNOUT | HIDEHAIR
/obj/item/clothing/head/droptrooper/arghelmet
name = "ARG ATLAS Helmet"
desc = "ATLAS, meaning Armor - Tactical Lead Assault Suite, is an extensively modified and reinforced rendition of the M-87 'Thor' helmet. This helmet includes a primitive target-acquisition program designed to help the user both deal with threats to themselves and their ward, simple user biometrics, omni-directional internal speakers for more situational awareness, ballistic reinforcements to the visor, extra helmet padding and an 'anomaly-resistant coating,' whatever that means. The helmet is developed and produced by the Augur Research Group."
icon_state = "argmkvi"
inhand_icon_state = "argmkvi"
armor_tokens = list(ARMOR_MODIFIER_DOWN_MELEE_T2 ,ARMOR_MODIFIER_UP_DT_T1 , ARMOR_MODIFIER_DOWN_LASER_T1 , ARMOR_MODIFIER_UP_ENV_T1)
armor = ARMOR_VALUE_MEDIUM
dog_fashion = null
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDESNOUT | HIDEHAIR
/obj/item/clothing/head/droptrooper/custompahelmet
name = "Custom fitted MidWestern B.O.S helmet"
desc = "A custom fitted B.O.S themed helmet. Fitted to resemble that of medium ballistic helmets."
icon_state = "midwestpa"
inhand_icon_state = "midwestpa"
armor_tokens = list(ARMOR_MODIFIER_UP_DT_T1 , ARMOR_MODIFIER_UP_ENV_T1)
armor = ARMOR_VALUE_MEDIUM
dog_fashion = null
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDESNOUT | HIDEHAIR
var/requires_training = FALSE
/obj/item/clothing/head/droptrooper/arghelmet/two
name = "ARG ARES Helmet"
desc = "ARES, meaning Armor - Research Enhancement Suite, is an extensively modified and computerized rendition of the M-87 'Odin' assault helmet. An additional camera has been added to the faceplate to give the user better depth perception, as well as the ability to broadcast video feed through encrypted channels. The heads-up display within the helmet now includes simple user biometrics and an analysis mode, giving real-time updates concerning objects and creatures in view of the cameras. It has extra helmet padding and an 'anomaly-resistant coating,' whatever that means. The helmet is developed and produced by the Augur Research Group."
icon_state = "arggungnir"
inhand_icon_state = "arggungnir"
armor_tokens = list(ARMOR_MODIFIER_DOWN_MELEE_T2 ,ARMOR_MODIFIER_UP_DT_T1 , ARMOR_MODIFIER_DOWN_LASER_T1 , ARMOR_MODIFIER_UP_ENV_T1)
armor = ARMOR_VALUE_MEDIUM
dog_fashion = null
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDESNOUT | HIDEHAIR
/obj/item/clothing/head/kevlarhelmet/steelfrench
name = "French Adrian helmet"
desc = "A French, albeit outdated, Adrian helmet. It was the first helmet used by the French military during the great war. In WW2, the helmet was used again but named the M26. Adjust that helmet and get back to the frontlines!"
icon_state = "adrian"
inhand_icon_state = "adrian"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/toxtestinghelmet
name = "VeturrHjalmur"
desc = "A custom Icelandic steel helmet adorned with a baby blue cross. This helmet is padded and really meant for looks than actual combative purposes. Made of the finest materials to grace the wasteland. Which is fine steel, padded interior, and adjustable ballistic silk straps."
icon_state = "germed"
inhand_icon_state = "germed"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/toxbattlehelmet
name = "Holy Void Priestess Hjalmur"
desc = "A custom X99 skull-carapace also knowna as a full plated helmet. The helmet is made to fit the smaller snouts of anthros, mainly feline or flat faced onces. The helmet bears icelandic runes on the interior while the exterior is engraved with Void sigils. The tag on the padded and comfortable inside reads 'Tox Mckit' "
icon_state = "sistertoxhelm"
inhand_icon_state = "sistertoxhelm"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
armor_tokens = list( ARMOR_MODIFIER_UP_DT_T1 , ARMOR_MODIFIER_UP_ENV_T1)
armor = ARMOR_VALUE_LIGHT
dog_fashion = null
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
speechspan = SPAN_ROBOT
//medieval and old helmets
/obj/item/clothing/head/medievalhelmets
name = "Base for old helmets"
desc = "Base for old helmets 2.0 electric boogaloo"
armor_tokens = list(ARMOR_MODIFIER_UP_MELEE_T1 ,ARMOR_MODIFIER_UP_DT_T1 , ARMOR_MODIFIER_UP_ENV_T1, ARMOR_MODIFIER_DOWN_BULLET_T2)
armor = ARMOR_VALUE_LIGHT
dog_fashion = null
slowdown = ARMOR_SLOWDOWN_NONE * ARMOR_SLOWDOWN_GLOBAL_MULT
/obj/item/clothing/head/medievalhelmets/oldgerman
name = "German sallet helmet"
desc = "A German based sallet helmet. Renowned and one of many famous helmet designs during the medieval era. It was a very popular design before being outphased and killed off by the burgonet helmet."
icon_state = "gersallet"
inhand_icon_state = "gersallet"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/medievalhelmets/oldspain
name = "Spainard Morion helmet"
desc = "An extremely popular design from Spain, this is the Morion helmet. It was famously used by Spanish Conquisitidors and made popular in Pre-Fall films and medieval like Pre-Fall video games. Usually comes with a loving plume."
icon_state = "spanishhelm"
inhand_icon_state = "spanishhelm"
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/helmet/merekcustom
name = "salvaged battle helmet"
desc = "A salvaged bullet resistant helmet. It's made of a much weaker material."
icon_state = "helmetalt"
inhand_icon_state = "helmetalt"
armor = ARMOR_VALUE_LIGHT
can_flashlight = FALSE
/obj/item/clothing/head/helmet/old
name = "degrading helmet"
desc = "Standard issue security helmet. Due to degradation the helmet's visor obstructs the users ability to see long distances."
tint = 2
/obj/item/clothing/head/helmet/blueshirt
name = "Vault-Tec security helmet"
desc = "A light, open-faced helmet commonly worn by Vault-Tec security personnel."
icon_state = "blueshift"
inhand_icon_state = "blueshift"
/obj/item/clothing/head/helmet/riot
name = "riot helmet"
desc = "It's a helmet specifically designed to protect against close range attacks."
icon_state = "riot"
inhand_icon_state = "helmet"
toggle_message = "You pull the visor down on"
alt_toggle_message = "You push the visor up on"
can_toggle = 1
armor_tokens = list(ARMOR_MODIFIER_UP_MELEE_T2)
flags_inv = HIDEEARS|HIDEFACE
strip_delay = 80
actions_types = list(/datum/action/item_action/toggle)
visor_flags_inv = HIDEFACE
toggle_cooldown = 0
flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH
visor_flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH
dog_fashion = null
mutantrace_variation = STYLE_MUZZLE
/obj/item/clothing/head/helmet/attack_self(mob/user)
if(can_toggle && !user.incapacitated(allow_crit = TRUE))
if(world.time > cooldown + toggle_cooldown)
cooldown = world.time
up = !up
flags_1 ^= visor_flags
flags_inv ^= visor_flags_inv
flags_cover ^= visor_flags_cover
icon_state = "[initial(icon_state)][up ? "up" : ""]"
to_chat(user, "[up ? alt_toggle_message : toggle_message] \the [src]")
user.update_inv_head()
if(iscarbon(user))
var/mob/living/carbon/C = user
C.head_update(src, forced = 1)
if(active_sound)
while(up)
playsound(src.loc, "[active_sound]", 100, 0, 4)
sleep(15)
/obj/item/clothing/head/helmet/justice
name = "helmet of justice"
desc = "WEEEEOOO. WEEEEEOOO. WEEEEOOOO."
icon_state = "justice"
toggle_message = "You turn off the lights on"
alt_toggle_message = "You turn on the lights on"
actions_types = list(/datum/action/item_action/toggle_helmet_light)
can_toggle = 1
toggle_cooldown = 20
active_sound = 'sound/items/weeoo1.ogg'
dog_fashion = null
/obj/item/clothing/head/helmet/justice/escape
name = "alarm helmet"
desc = "WEEEEOOO. WEEEEEOOO. STOP THAT MONKEY. WEEEOOOO."
icon_state = "justice2"
toggle_message = "You turn off the light on"
alt_toggle_message = "You turn on the light on"
/obj/item/clothing/head/helmet/swat
name = "\improper SWAT helmet"
desc = "An extremely robust, space-worthy helmet in a nefarious red and black stripe pattern."
icon_state = "swatsyndie"
inhand_icon_state = "swatsyndie"
cold_protection = HEAD
min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT
heat_protection = HEAD
max_heat_protection_temperature = SPACE_HELM_MAX_TEMP_PROTECT
clothing_flags = STOPSPRESSUREDAMAGE
strip_delay = 80
dog_fashion = null
/obj/item/clothing/head/helmet/swat/nanotrasen
name = "\improper SWAT helmet"
desc = "An extremely robust, space-worthy helmet with the US Government logo emblazoned on the top."
icon_state = "swat"
inhand_icon_state = "swat"
/obj/item/clothing/head/helmet/thunderdome
name = "\improper Thunderdome helmet"
desc = "<i>'Let the battle commence!'</i>"
flags_inv = HIDEEARS|HIDEHAIR
icon_state = "thunderdome"
inhand_icon_state = "thunderdome"
cold_protection = HEAD
min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT
heat_protection = HEAD
max_heat_protection_temperature = SPACE_HELM_MAX_TEMP_PROTECT
strip_delay = 80
dog_fashion = null
/obj/item/clothing/head/helmet/roman
name = "\improper Roman helmet"
desc = "An ancient helmet made of bronze and leather."
flags_inv = HIDEEARS|HIDEHAIR
flags_cover = HEADCOVERSEYES
resistance_flags = FIRE_PROOF
icon_state = "roman"
inhand_icon_state = "roman"
strip_delay = 100
dog_fashion = null
/obj/item/clothing/head/helmet/roman/fake
desc = "An ancient helmet made of plastic and leather."
armor_tokens = list(ARMOR_MODIFIER_DOWN_BULLET_T2, ARMOR_MODIFIER_DOWN_MELEE_T2)
/obj/item/clothing/head/helmet/roman/legionnaire
name = "\improper Roman legionnaire helmet"
desc = "An ancient helmet made of bronze and leather. Has a red crest on top of it."
icon_state = "roman_c"
inhand_icon_state = "roman_c"
/obj/item/clothing/head/helmet/roman/legionnaire/fake
desc = "An ancient helmet made of plastic and leather. Has a red crest on top of it."
armor_tokens = list(ARMOR_MODIFIER_DOWN_BULLET_T2, ARMOR_MODIFIER_DOWN_MELEE_T2)
/obj/item/clothing/head/helmet/gladiator
name = "gladiator helmet"
desc = "Ave, Imperator, morituri te salutant."
icon_state = "gladiator"
inhand_icon_state = "gladiator"
flags_inv = HIDEMASK|HIDEEARS|HIDEEYES|HIDEHAIR
flags_cover = HEADCOVERSEYES
dog_fashion = null
/obj/item/clothing/head/helmet/redtaghelm
name = "red laser tag helmet"
desc = "They have chosen their own end."
icon_state = "redtaghelm"
flags_cover = HEADCOVERSEYES
inhand_icon_state = "redtaghelm"
// Offer about the same protection as a hardhat.
dog_fashion = null
/obj/item/clothing/head/helmet/nvodst_helm
name = "Futuristic Helmet"
desc = "A jet black full faced helmet that has a red stripe running down the top of it. It seems to have slots on the top of it for antennas."
icon_state = "nvodst_helm"
inhand_icon_state = "nvodst_helm"
flags_inv = HIDEHAIR|HIDEMASK|HIDEEYES
armor = ARMOR_VALUE_MEDIUM
armor_tokens = list (ARMOR_MODIFIER_UP_ENV_T1)
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/helmet/unmchelmet
name = "Standard issue UNMC helmet"
desc = "A standard issued UNMC Helmet. The flashlight mount doesn't work and it has no visor. Despite that, it seems to be in good condition. Don't lose your head now, soldier."
icon_state = "unmch"
inhand_icon_state = "unmch"
flags_inv = HIDEHAIR
armor = ARMOR_VALUE_LIGHT
armor_tokens = list(ARMOR_MODIFIER_UP_BOMB_T1)
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/kevlarhelmet/toxinfil
name = "Gen 3 Leo MIRAGE Helmet"
desc = "A third generation Leo Armaments MIRAGE Helmet. This helmet has no visor due to the fact the visor was not 'anthromorphic' friendly. The area around the eyes allows the installiation of gun-spec, or G.S, eyewear."
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
armor = ARMOR_VALUE_LIGHT
armor_tokens = list(ARMOR_MODIFIER_UP_ENV_T1)
icon_state = "custominfil"
inhand_icon_state = "custominfil"
/obj/item/clothing/head/helmet/unmchelmet/medic
name = "Standard issue UNMC Medical Helmet"
desc = "A standard issued UNMC Helmet, this one seems to be resembling that of a medical personal's color scheme with a white paint and a green cross."
icon_state = "unmcmh"
inhand_icon_state = "unmcmh"
flags_inv = HIDEHAIR
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/helmet/retrohazmathelmet
name = "Old Hazmat helmet"
desc = "A old style hazmat helmet. It's a bit well worn and the visor has a crack on it. But other than that, it seems to still work."
icon_state = "rhazhelm"
inhand_icon_state = "rhazhelm"
flags_inv = HIDEHAIR
armor = ARMOR_VALUE_LIGHT
armor_tokens = list(ARMOR_MODIFIER_UP_ENV_T4)
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/helmet/unmcstealthhelmet
name = "American infiltrator helmet"
desc = "A helmet belonging, albeit dysfunctional, to the American stealth suit. Now when you get to look cool while chanting 'USA' from the shadows"
icon_state = "usainfilhelm"
inhand_icon_state = "usainfilhelm"
flags_inv = HIDEHAIR|HIDESNOUT
armor = ARMOR_VALUE_LIGHT
armor_tokens = list(ARMOR_MODIFIER_UP_ENV_T1)
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/helmet/chinastealthhelm
name = "Chinese Stealth helmet"
desc = "A helmet belonging, albeit dysfunctional, to the Chinese stealth armor. Once belonging to a feared Chinese Crimson Dragoon."
icon_state = "chinastealthhelm"
inhand_icon_state = "chinastealthhelm"
flags_inv = HIDEHAIR|HIDESNOUT
armor = ARMOR_VALUE_LIGHT
armor_tokens = list(ARMOR_MODIFIER_UP_ENV_T1)
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/helmet/unmcwinterhelmet
name = "Winter UNMC Helmet"
desc = "A standard issued UNMC Helmet.This version seems to have white paint all over it, a type of camoflauge. As an added bonus, it seems a bit more sturdy to laser based weaponary. The flashlight mount doesn't work and it has no visor. Despite that, it seems to be in good condition. Don't lose your head now, soldier."
icon_state = "unmcwh"
inhand_icon_state = "unmcwh"
flags_inv = HIDEHAIR
armor = ARMOR_VALUE_LIGHT
armor_tokens = list(ARMOR_MODIFIER_UP_BOMB_T1)
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
/obj/item/clothing/head/helmet/blbandit
name = "bandit mask"
desc = "A modified hockey mask sporting an in-built set of goggles."
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
icon_state = "banditmask"
inhand_icon_state = "banditmask"
flags_inv = HIDESNOUT
armor = ARMOR_VALUE_LIGHT
/obj/item/clothing/head/helmet/blpsycho
name = "psycho mask"
desc = "A hockey mask with an upside down, golden 'V' painted on the front."
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
icon_state = "psychomask"
inhand_icon_state = "psychomask"
flags_inv = HIDESNOUT
armor = ARMOR_VALUE_LIGHT
/obj/item/clothing/head/helmet/borderlandshelm
name = "borderlands helmet template"
desc = "If you're seeing this, something has gone horribly wrong."
mob_overlay_icon = 'icons/fallout/onmob/clothes/helmet.dmi'
icon = 'icons/fallout/clothing/helmets.dmi'
flags_inv = HIDEMASK | HIDEEYES | HIDEHAIR | HIDEFACIALHAIR | HIDEFACE | HIDESNOUT
armor = ARMOR_VALUE_MEDIUM
/obj/item/clothing/head/helmet/borderlandshelm/bandit
name = "bandit helmet"
desc = "A standard helmet that entirely covers the wearer's head. This one comes in a deep red and navy blue."
icon_state = "bandithelm"
inhand_icon_state = "bandithelm"
/obj/item/clothing/head/helmet/borderlandshelm/banditv
name = "looter bandit helmet"
desc = "A red and blue helmet sporting an upside down, silver 'V' on the front."
icon_state = "vbandithelm"
inhand_icon_state = "vbandithelm"
/obj/item/clothing/head/helmet/borderlandshelm/banditstripe
name = "striped bandit helmet"
desc = "A red and blue helmet with a silver stripe running down the center."
icon_state = "stripebandithelm"
inhand_icon_state = "stripebandithelm"
/obj/item/clothing/head/helmet/borderlandshelm/merc
name = "mercenary helmet"
desc = "A professional-looking helmet that completely covers the head."
icon_state = "merchelm"
inhand_icon_state = "merchelm"
/obj/item/clothing/head/helmet/borderlandshelm/promerc
name = "professional mercenary helmet"
desc = "A tactical-looking, matte black helmet -- complete with red visors!"
icon_state = "promerchelm"
inhand_icon_state = "promerchelm"
/obj/item/clothing/head/helmet/bluetaghelm
name = "blue laser tag helmet"
desc = "They'll need more men."
icon_state = "bluetaghelm"
flags_cover = HEADCOVERSEYES
inhand_icon_state = "bluetaghelm"
// Offer about the same protection as a hardhat.
dog_fashion = null
/obj/item/clothing/head/helmet/knight
name = "medieval helmet"
desc = "A classic metal helmet worn by all ranks of knights and horsemen of the Old Era."
icon_state = "knight_green"
inhand_icon_state = "knight_green"
armor_tokens = list(ARMOR_MODIFIER_UP_MELEE_T2)
flags_inv = HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE|HIDEHAIR|HIDESNOUT
flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH
strip_delay = 80
dog_fashion = null
mutantrace_variation = STYLE_MUZZLE
/obj/item/clothing/head/helmet/knight/Initialize(mapload)
. = ..()
var/datum/component = GetComponent(/datum/component/wearertargeting/earprotection)
qdel(component)
/obj/item/clothing/head/helmet/knight/blue
name = "blue medieval helmet"
desc = "A classic metal helmet worn by all ranks of knights and horsemen of the Old Era.<br>This one is painted blue."
icon_state = "knight_blue"
inhand_icon_state = "knight_blue"
/obj/item/clothing/head/helmet/knight/yellow
name = "yellow medieval helmet"
desc = "A classic metal helmet worn by all ranks of knights and horsemen of the Old Era.<br>This one is painted yellow."
icon_state = "knight_yellow"
inhand_icon_state = "knight_yellow"
/obj/item/clothing/head/helmet/knight/templar
name = "crusader helmet"
desc = "Deus Vult."
icon_state = "knight_templar"
inhand_icon_state = "knight_templar"
/obj/item/clothing/head/helmet/knight/greyscale
name = "knight helmet"
desc = "A classic medieval helmet, if you hold it upside down you could see that it's actually a bucket."
icon_state = "knight_greyscale"
inhand_icon_state = "knight_greyscale"
material_flags = MATERIAL_ADD_PREFIX | MATERIAL_COLOR | MATERIAL_AFFECT_STATISTICS //Can change color and add prefix
/obj/item/clothing/head/helmet/skull
name = "skull helmet"
desc = "An intimidating tribal helmet, it doesn't look very comfortable."
flags_inv = HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE
flags_cover = HEADCOVERSEYES
armor_tokens = list(ARMOR_MODIFIER_UP_MELEE_T2)
icon_state = "skull"
inhand_icon_state = "skull"
strip_delay = 100
mutantrace_variation = STYLE_MUZZLE
/obj/item/clothing/head/helmet/infiltrator
name = "insidious helmet"
desc = "An insidious armored combat helmet signed with Syndicate insignia. The visor is coated with a resistant paste guaranteed to withstand bright flashes perfectly."
icon_state = "infiltrator"
inhand_icon_state = "infiltrator"
resistance_flags = FIRE_PROOF | ACID_PROOF
flash_protect = 2
flags_inv = HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE|HIDEHAIR|HIDEFACIALHAIR|HIDESNOUT
flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH
dynamic_hair_suffix = ""
dynamic_fhair_suffix = ""
strip_delay = 80
mutantrace_variation = STYLE_MUZZLE
//LightToggle
/obj/item/clothing/head/helmet/ComponentInitialize()
. = ..()
AddElement(/datum/element/update_icon_updates_onmob)
/obj/item/clothing/head/helmet/update_icon_state()
var/state = "[initial(icon_state)]"
if(attached_light)
if(attached_light.on)
state += "-flight-on" //"helmet-flight-on" // "helmet-cam-flight-on"
else
state += "-flight" //etc.
icon_state = state
return ..()
/obj/item/clothing/head/helmet/ui_action_click(mob/user, action)
if(istype(action, /datum/action/item_action/toggle_helmet_flashlight))
toggle_helmlight()
else
..()
/obj/item/clothing/head/helmet/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/flashlight/seclite))
if(can_flashlight && !attached_light)
var/obj/item/flashlight/seclite/S = I
if(!user.transferItemToLoc(S, src))
return
to_chat(user, span_notice("You click [S] into place on [src]."))
set_attached_light(S)
update_helmlight()
update_icon()
alight = new(src)
if(loc == user)
alight.Grant(user)
return
return ..()
/obj/item/clothing/head/helmet/screwdriver_act(mob/living/user, obj/item/I)
. = ..()
if(can_flashlight && attached_light) //if it has a light but can_flashlight is false, the light is permanently attached.
I.play_tool_sound(src)
to_chat(user, span_notice("You unscrew [attached_light] from [src]."))
attached_light.forceMove(drop_location())