-
Notifications
You must be signed in to change notification settings - Fork 0
/
bms.fgd
1098 lines (915 loc) · 41.3 KB
/
bms.fgd
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
@include "base.fgd"
@include "halflife2.fgd"
@BaseClass base(Targetname, Parentname, RenderFields, Global, PlatSounds, Origin) = Trackchange
[
height(integer) : "Travel Altitude" : 0 : "The vertical height above the track that the train moves. Negative values moves the train below."
spawnflags(flags) =
[
1: "Auto Activate train" : 0
2: "Relink track" : 0
8: "Start at Bottom" : 0
16: "Rotate Only" : 0
64: "X Axis" : 0
128: "Y Axis" : 0
]
rotation(integer) : "Spin amount" : 0 : "The amount this platform should rotate as it moves, in degrees."
train(target_destination) : "Train to Switch" // NEEDHELP
toptrack(target_destination) : "Top Track" // NEEDHELP
bottomtrack(target_destination) : "Bottom Track" // NEEDHELP
speed(integer) : "Move/Rotate Speed" : 0 // NEEDHELP
]
@PointClass base(EnvGlobal) size(-8 -8 -8, 8 8 8) = env_global : "An entity to control a game-specific global states."
[
globalstate(choices) : "Global State to Set" =
[
"predisaster" : "predisaster"
"friendly_encounter" : "Friendly encounter sequence (lower weapons, etc.)"
"gordon_invulnerable" : "Gordon is invulnerable"
]
]
@BaseClass base(Targetname, Angles, BaseFadeProp) = BaseCharger
[
input Enable(void) : "Enable"
input Disable(void) : "Disable"
output OnEmpty(void) : "Empty"
output OnFull(void) : "Recharged to full."
output OnHalfEmpty(void) : "Half-Empty"
output OnUse(void) : "Fired when the player +USEs the charger."
]
@PointClass base(BaseCharger) studio( "models/props_blackmesa/health_charger.mdl" ) = item_healthcharger : "Health Charger"
[
charge(float) : "Charge" : 50 : "How full the charger should be (0 - 100)"
skintype(choices) : "Force Skin" : "0" =
[
"0" : "None"
"1" : "Clean"
"2" : "Dirty"
]
]
@PointClass base(BaseCharger) studio( "models/props_blackmesa/hev_charger.mdl" ) = item_suitcharger : "HEV Charger"
[
charge(float) : "Charge" : 75 : "How full the charger should be (0 - 100)"
skintype(choices) : "Force Skin" : "0" =
[
"0" : "None"
"1" : "Clean"
"2" : "Dirty"
]
]
@BaseClass base(Targetname, Angles, Shadow, BaseFadeProp) = BasePickup
[
output OnPlayerPickup(void) : "Fires when the player picks up this object."
output OnPlayerDenied(void) : "Fires when the player attempts to pick up this object but is denied."
spawnflags(flags) =
[
1 : "Start Asleep" : 0
2 : "Motion Disabled" : 0
]
]
@PointClass base(BasePickup) studio("models/weapons/w_357.mdl") = item_weapon_357 : "357 Revolver" []
@PointClass base(BasePickup) studio("models/weapons/w_crowbar.mdl") = item_weapon_crowbar : "Crowbar" []
@PointClass base(BasePickup) studio("models/weapons/w_crossbow.mdl") = item_weapon_crossbow : "Crossbow" []
@PointClass base(BasePickup) studio("models/weapons/w_grenade.mdl") = item_weapon_frag : "Frag Grenade" []
@PointClass base(BasePickup) studio("models/weapons/w_glock.mdl") = item_weapon_glock : "Glock-18 Handgun" []
@PointClass base(BasePickup) studio("models/weapons/w_egon_pickup.mdl") = item_weapon_gluon : "Gluon Gun" []
@PointClass base(BasePickup) studio("models/weapons/w_hgun.mdl") = item_weapon_hivehand : "Hivearm" []
@PointClass base(BasePickup) studio("models/weapons/w_mp5.mdl") = item_weapon_mp5 : "MP5 Submachinegun" []
@PointClass base(BasePickup) studio("models/weapons/w_shotgun.mdl") = item_weapon_shotgun : "SPAS-12 Shotgun" []
@PointClass base(BasePickup) studio("models/weapons/w_rpg.mdl") = item_weapon_rpg : "RPG" []
@PointClass base(BasePickup) studio("models/weapons/w_satchel.mdl") = item_weapon_satchel : "Satchel Charge" []
@PointClass base(BasePickup) studio("models/xenians/snarknest.mdl") = item_weapon_snark : "Snarks" []
@PointClass base(BasePickup) studio("models/weapons/w_gauss.mdl") = item_weapon_tau : "Tau Cannon" []
@PointClass base(BasePickup) studio("models/weapons/w_tripmine.mdl") = item_weapon_tripmine : "Tripmine" []
@PointClass base(BasePickup) studio("models/weapons/w_357ammobox.mdl") = item_ammo_357 : "357 Rounds" []
@PointClass base(BasePickup) studio("models/weapons/w_crossbow_clip.mdl") = item_ammo_crossbow : "Crossbow Bolts" []
@PointClass base(BasePickup) studio("models/weapons/w_9mmclip.mdl") = item_ammo_glock : "Glock Clip" []
@PointClass base(BasePickup) studio("models/weapons/w_gaussammo.mdl") = item_ammo_energy : "Uranium" []
@PointClass base(BasePickup) studio("models/weapons/w_9mmARclip.mdl") = item_ammo_mp5 : "MP5 Clip" []
@PointClass base(BasePickup) studio("models/weapons/w_shotbox.mdl") = item_ammo_shotgun : "Shotgun Shells" []
@PointClass base(BasePickup) studio("models/weapons/w_argrenade.mdl") = item_grenade_mp5 : "MP5 Grenades" []
@PointClass base(BasePickup) studio("models/weapons/w_rpgammo.mdl") = item_grenade_rpg : "RPG Round" []
@PointClass base(Targetname, Angles, BaseFadeProp) studio("models/items/ammocrate_rockets.mdl") = item_ammo_crate : "Ammo Crate"
[
model(studio) : "Model" : "models/items/ammocrate_rockets.mdl" : "Model to use for the medkit"
AmmoType(choices) : "Ammo Type" : "grenade_rpg" =
[
"9mm" : "9mm Rounds"
"357" : ".357 Rounds"
"bolt" : "Bolts"
"buckshot" : "Buckshot"
"energy" : "Energy"
"grenade_mp5" : "Mp5 Grenade"
"grenade_rpg" : "RPG"
"grenade_frag" : "Frag Grenades"
"grenade_satchel" : "Satchels"
"grenade_tripmine" : "Tripmines"
]
AmmoCount(integer) : "Ammo Count" : 1 : "Ammo Count"
// Inputs
input Kill(void) : "Remove the ammo crate"
output OnUsed(void) : "Fires when +used by the player."
]
@PointClass base(BasePickup) studio("models/props_am/hev_suit.mdl") = item_suit : "HEV Suit"
[
spawnflags(Flags) =
[
131072 : "Boot Sequence" : 0
]
]
@PointClass base(BasePickup) studio("models/weapons/w_battery.mdl") = item_battery : "HEV Battery" []
@PointClass base(BasePickup) studioprop() = item_healthkit : "Health Kit"
[
model(studio) : "Model" : "models/weapons/w_medkit.mdl" : "Model to use for the medkit"
]
@PointClass base(BasePickup) studio("models/weapons/w_longjump.mdl") = item_longjump : "Longjump Module" []
@BaseClass base(Targetname, Angles, Shadow) = BaseGrenade
[
input Detonate(void) : "Fire to make the grenade explode."
output OnDetonate(void) : "Grenade has just exploded."
]
@PointClass base(BaseGrenade) studio("models/weapons/w_satchel.mdl") = grenade_satchel : "Satchel" []
@PointClass base(BaseGrenade) studio("models/weapons/w_tripmine.mdl") = grenade_tripmine : "Tripmine" []
@BaseClass base(BaseNPC) = BaseSentry
[
input Retire(void) : "If deployed, retire."
input Deploy(void) : "If retired, deploy."
input Toggle(void) : "Toggle - If deployed, retire. If retired, deploy."
input DisableShooting(void) : "Disable shooting."
input EnableShooting(void) : "Enable shooting."
output OnDeploy(void) : "Sentry is becoming deployed and dangerous."
output OnRetire(void) : "Sentry is becoming retired and harmless."
spawnflags(Flags) =
[
65536 : "Start retired" : 0
131072 : "Never close while deployed" : 0
262144 : "Don't shoot" : 0
]
]
@NPCClass base(BaseSentry) studio( "models/npcs/sentry_ceiling.mdl" ) = npc_sentry_ceiling : "Ceiling Sentry" []
@NPCClass base(BaseSentry) studio( "models/npcs/sentry_ground.mdl" ) = npc_sentry_ground : "Ground Sentry" []
@NPCClass base(BaseNPC) studio("models/vortigaunt_slave.mdl") = npc_alien_slave : "Vortigaunt" []
@NPCClass base(BaseNPC, Parentname) studio("models/headcrabclassic.mdl") = npc_headcrab : "Headcrab"
[
startburrowed(choices) : "Start burrowed" : "No" =
[
0 : "No"
1 : "Yes"
]
spawnflags(flags) =
[
65536 : "Start hidden" : 0
]
]
@NPCClass base(BaseNPC) studio("models/barnacle.mdl") = npc_barnacle : "Barnacle"
[
spawnflags(Flags) =
[
65536 : "Cheap death" : 0
262144 : "Tongue will not penetate water" : 0
]
RestDist(float) : "Rest Distance" : 16 : "Distance above the ground that the tongue should lie when the barnacle is at rest"
]
@NPCClass base(BaseNPC) studio("models/xenians/bullsquid.mdl") = npc_bullsquid : "Bullsquid" []
@NPCClass base(BaseNPC) studio("models/xenians/houndeye.mdl") = npc_houndeye : "Houndeye" []
@NPCClass base(BaseNPC) studio("models/humans/hassassin.mdl") = npc_human_assassin : "Human Assassin" []
@BaseClass base(BaseNPC, RappelNPC) = BaseMarine
[
input Assault(string) : "Start an assault. Parameter passed in should be the name of the rally point."
NumGrenades(choices) : "Number of Grenades" : "5" =
[
"0" : "None"
"1" : "1"
"2" : "2"
"3" : "3"
"4" : "4"
"5" : "5"
"-1" : "Unlimited"
]
additionalequipment(choices) : "Weapons" : "weapon_mp5" =
[
"weapon_glock" : "weapon_glock"
"weapon_mp5" : "weapon_mp5"
"weapon_shotgun" : "weapon_shotgun"
"0" : "Random"
]
spawnflags(Flags) =
[
32768 : "No Weapon" : 0
262144 : "Disable Freeman Lines" : 0
524288 : "Disable Muzzle DLight" : 0
]
]
@NPCClass base(BaseMarine) studio("models/humans/marine.mdl") = npc_human_commander : "Human Commander" []
@NPCClass base(BaseMarine) studiO("models/humans/marine.mdl") = npc_human_grenadier : "Human Grenadier" []
@NPCClass base(BaseMarine) studio("models/humans/marine.mdl") = npc_human_grunt : "Human Grunt" []
@NPCClass base(BaseMarine) studiO("models/humans/marine.mdl") = npc_human_medic : "Human Medic" []
@NPCClass base(BaseNPC) studio("models/xenians/controller.mdl") = npc_alien_controller : "Controller" []
@NPCClass base(BaseNPC) studio("models/xenians/agrunt_unarmored.mdl") = npc_alien_grunt_unarmored : "Unarmored Alien Grunt" []
@NPCClass base(BaseNPC) studio("models/xenians/agrunt.mdl") = npc_alien_grunt : "Alien Grunt" []
@NPCClass base(BaseNPC) studio("models/xenians/babyheadcrab.mdl") = npc_babycrab : "Baby Headcrab" []
@NPCClass base(BaseNPC) studio("models/fauna/roach.mdl") = npc_cockroach : "Cockroach" []
@NPCClass base(Parentname, BaseNPC) size(-16 -16 -16, 16 16 16) color(255 150 0) = npc_enemyfinder : "EnemyFinder" []
@NPCClass base(BaseNPC) studio("models/xenians/flock.mdl") = npc_flyer_flock : "Flying Flock" []
@NPCClass base(BaseNPC) studio("models/xenians/garg.mdl") = npc_gargantua : "Gargantua"
[
input chaseplayer(void) : "Chase the player."
input chaseend(void) : "Like the player so did not call you....so like you should like stop following him...like ok....yep"
input GargantuaExplode(void) : "Chase the player."
output OnWishToDie(void) : "Empty"
]
@NPCClass base(BaseNPC) studio("models/xenians/gonarch.mdl") = npc_gonarch : "Gonarch" []
@NPCClass base(BaseNPC) studio("models/gman.mdl") = npc_generic : "Generic Actor" []
@NPCClass base(BaseNPC) studio("models/gman.mdl") = npc_gman : "G-Man" []
@NPCClass base(BaseNPC) studio("models/xenians/gonarch.mdl") = npc_gonarch : "Gonarch" []
@NPCClass base(BaseNPC) studio("models/ichthyosaur.mdl") = npc_ichthyosaur : "Ichthyosaur" []
@NPCClass base(BaseNPC) studio("models/humans/maintenance/maintenance_1.mdl") = npc_maintenance : "Maintenance Guy" []
@NPCClass base(BaseNPC) studio("models/xenians/nihilanth.mdl") = npc_nihilanth : "Nihilanth" []
@BaseClass base(BaseNPC) = BMBaseHelicopter
[
InitialSpeed(string) : "Initial Speed" : "0" : "Sets the helicopter's desired speed that it should try to reach as soon as it's spawned."
target(target_destination) : "Target path_track" : : "(Optional) The name of a path_track entity that this NPC will fly to after spawning."
// Inputs
input MoveTopSpeed(void) : "The helicopter will immediately move at top speed toward its current goal, or in its current orientation if it's on top of its goal."
input MoveSpecifiedSpeed(float): "The helicopter will immediately move at the specified speed (you provide this as parameter override in units per second) towards its current goal."
input ChangePathCorner(target_destination) : "Tell the helicopter to move to a path corner on a new path."
input Activate(void) : "Activate. Use to wake up a helicopter that spawned with the 'Await Input' spawnflag on."
input SetTrack(target_destination) : "Set a track for the helicopter to adhere to. The helicopter will do nothing if he's on the same path, and will move to the closest point on the specified track if he's on a different path."
input FlyToSpecificTrackViaPath(target_destination) : "The helicopter will first fly to the closest point on the path if he's on a different path. Then he'll fly along the path to the specified track point."
input SelfDestruct(void) : "Self Destruct."
input EnableRotorWash(void) : "Enable Rotor Wash."
input DisableRotorWash(void) : "Disable Rotor Wash."
input EnableRotorSound(void) : "Enable Rotor Wash Sound."
input DisableRotorSound(void) : "Disable Rotor Wash Sound."
input StartPatrol(void) : "Start patrolling back and forth along the current track."
input StopPatrol(void) : "Stop patrolling back and forth along the track. This will cause the helicopter to come to rest at the track which he's currently flying toward."
input ChooseFarthestPathPoint(void) : "When tracking an enemy, choose the point on the path furthest from the enemy, but still in firing range."
input ChooseNearestPathPoint(void) : "When tracking an enemy, choose the point on the path nearest from the enemy."
input StartBreakableMovement(void) : "The helicopter is now allowed to disobey direct commands to go to particular points if he senses an enemy. He will move to the closest point (or farthest point, if ChooseFarthestPathPoint is used), on the path if he senses an enemy."
input StopBreakableMovement(void) : "The helicopter can not disobey direct commands. He will continue to fly along his patrol path or to his specified target even if he senses an enemy."
//Outputs
output OnKilled(void) : ""
spawnflags(Flags) =
[
32768 : "Await Input" : 0
65536 : "Disable Noise" : 0
131072 : "No Rotor Wash" : 0
1048576 : "Disable Rotor Sounds on Startup" : 0
]
]
@NPCClass base(BMBaseHelicopter) studio("models/xenians/manta_jet.mdl") = npc_manta : "Manta"
[
]
@NPCClass base(BMBaseHelicopter) studio("models/props_vehicles/apache.mdl") = npc_apache : "Apache"
[
input SetRocketTarget(target_destination) : ""
input EnableRockets(void) : ""
input DisableRockets(void) : ""
input EnableMiniGun(void) : ""
input DisableMiniGun(void) : ""
input EnableRocketBarrage(void) : ""
input DisableRocketBarrage(void) : ""
input ForceIncrementDamageEffectLevel(integer) : ""
input OmniscientOn(void) : ""
input OmniscientOff(void) : ""
input BlindfireOn(void) : ""
input BlindfireOff(void) : ""
output OnWishToDie(void) : "Empty"
output m_OnBossStage0(void) : "Empty"
output m_OnBossStage1(void) : "Empty"
output m_OnBossStage2(void) : "Empty"
output m_OnBossStage3(void) : "Empty"
spawnflags(Flags) =
[
262144 : "disable dmg roll" : 0
524288 : "disable transition dmg" : 0
1048576 : "Enable Boss Stage Outputs" : 0
]
]
@NPCClass base(BMBaseHelicopter) studio("models/props_vehicles/osprey.mdl") = npc_osprey : "Osprey"
[
// Inputs
input BeginRappellingGrunts(void) : "The Osprey should rappel grunts at the current path node"
input RemoveGrunts(void) : "Removes all grunts on the map that belong to the osprey"
input WaitHereTillReady(void) : "The Osprey will wait at this path node until it is ready to deploy new grunts"
input RappelToTarget(string) : "Grunts rappeled from osprey will rappel down within range of the target"
input RemoveGrunts(void) : "Removes all the grunts the osprey owns on the map"
input KillRappelingGrunts(void) : "Kills the grunts which are currently rappeling down"
//Outputs
output OnReadyToMoveDeployZone(void) : "The Osprey has enough grunts to deploy therefor should move on to the next path node"
output OnReadyToRetreat(void) : "The Osprey has finished deploying grunts therefor should move on to the next path node"
NPCTemplate1(target_destination) : "Name of Template NPC 1"
NPCTemplate2(target_destination) : "Name of Template NPC 2"
NPCTemplate3(target_destination) : "Name of Template NPC 3"
NPCTemplate4(target_destination) : "Name of Template NPC 4"
NPCTemplate5(target_destination) : "Name of Template NPC 5"
NPCTemplate6(target_destination) : "Name of Template NPC 6"
NPCTemplate7(target_destination) : "Name of Template NPC 7"
NPCTemplate8(target_destination) : "Name of Template NPC 8"
]
@NPCClass base(BaseNPC) studio("models/fauna/rat.mdl") = npc_rat : "Rat" []
@BaseClass base(BaseNPC) = BaseColleague
[
input OutsideTransition(void) : "Use this input to teleport the NPC to a hintnode with the Player Squad Transition Point hint type."
input EnableAlwaysTransition(void) : "Enable the 'always transition' behavior"
input DisableAlwaysTransition(void) : "Disable the 'always transition' behavior"
input EnableSpeakWhileScripting(void) : "Allow this NPC to speak responses while in a scripted sequence or while StartScripting is active."
input DisableSpeakWhileScripting(void) : "Cancels this NPC's ability to speak responses while in a scripted sequence or while StartScripting is active if it was previously enabled by EnableSpeakWhileScripting."
expressiontype(choices) : "Expression Type" : "Random" =
[
0 : "Random"
1 : "Scared"
2 : "Normal"
3 : "Angry"
]
CanSpeakWhileScripting(choices) : "Speak while scripting?" : "No" : "" =
[
0 : "No"
1 : "Yes"
]
AlwaysTransition(choices) : "Always transition" : "No" : "If yes, this NPC will always teleport to a Player Squad Transition Point if they're not within the trigger_transition volume." =
[
0 : "No"
1 : "Yes"
]
GameEndAlly(choices) : "Is this a vital ally?" : "No" : "If yes, this NPC will cause the game to end if killed." =
[
0 : "No"
1 : "Yes"
]
input MakeGameEndAlly(void) : "Make this NPC a game end ally."
input MakeRegularAlly(void) : "Make this NPC a regular ally."
input ClearAllOutputs(void) : "Obliterate every output that this NPC has."
input SetReadinessPanic(void) : "Set readiness to panic state (Special)"
input SetReadinessLow(void) : "Set readiness to calmest state (Bored)"
input SetReadinessMedium(void) : "Set readiness to moderate (Alert)"
input SetReadinessHigh(void) : "Set readiness to highest. (Combat imminent)"
input LockReadiness(float) : "Lock readiness at current setting for x seconds -1 = forever, 0 = unlock now"
output OnPlayerUse(void) : "Fired when player instigates +USE."
input EnableFollow( void ) : ""
input DisableFollow( void ) : ""
input CeaseFollowing( void ) : ""
input ForceFollowUntilToldNotTo( void ) : ""
input EnableGeneralIdles( void ) : ""
input DisableGeneralIdles( void ) : ""
spawnflags(Flags) =
[
65536 : "Do not follow player" : 0
131072 : "Do not greet the player" : 0
1048576 : "Do not use fallback idle and questions" : 0
]
]
@NPCClass base(Parentname, TalkNPC, BaseColleague) studio("models/humans/guard.mdl") = npc_human_security : "Security Guard"
[
input EnableWeaponPickup(void) : "Enable Weapon Pickup"
input DisableWeaponPickup(void) : "Disable Weapon Pickup"
input GiveWeapon(string) : "Gives the NPC a weapon of the specified entity name."
output OnWeaponPickup(void) : "Fires when this NPC picks a weapon off the ground or a gun rack."
spawnflags(flags) =
[
32768: "Do not unholster weapon automatically" : 0
524288 : "Disable Muzzle DLight" : 0
]
additionalequipment(choices) : "Equipped Weapon" : "Default" =
[
"0" : "Default"
"weapon_glock" : "weapon_glock"
"weapon_357" : "weapon_357"
"weapon_shotgun" : "weapon_shotgun"
]
]
@NPCClass base(Parentname, TalkNPC, BaseColleague) studio("models/humans/scientist_kliener.mdl") = npc_human_scientist_kleiner : "Kleiner" [ ]
@NPCClass base(Parentname, TalkNPC, BaseColleague) studio("models/humans/scientist_eli.mdl") = npc_human_scientist_eli : "Eli" [ ]
@NPCClass base(Parentname, TalkNPC, BaseColleague) studio("models/humans/scientist.mdl") = npc_human_scientist : "Scientist" [ ]
@NPCClass base(Parentname, TalkNPC, BaseColleague) studio("models/humans/scientist_female.mdl") = npc_human_scientist_female : "Female Scientist"
[
]
@NPCClass base(BaseNPC) studio("models/xenians/tentacle.mdl") = npc_tentacle : "Tentacle" []
@NPCClass base(BaseNPC) studio("models/w_squeak.mdl") = npc_snark : "Armed Snark" []
@NPCClass base(BaseNPC) studio("models/ichthyosaur.mdl") = npc_ichthyosaur : "Ichthyosaur"[]
@NPCClass base(BaseNPC) studio("models/combine_soldier.mdl") = npc_sniper : "Sniper"
[
radius(integer) : "Patience Radius" : 0 : "Sniper will hold fire until the target is within this radius. After that, sniper will always attack, even if the target retreats outside of this radius"
misses(integer) : "Initial Misses" : 0 : "How many times to miss a target on purpose before beginning to fire accurately."
beambrightness(integer) : "Beam Brightness (0 to 255)" : 100 : "How bright the laser sight beam should be. (0 - 255)"
shootZombiesInChest(choices) : "Shoot zombies in chest" : 0 : "If true, aim for chest instead of headcrab. Useful when at great distance and height." =
[
0 : "No"
1 : "Yes"
]
shielddistance(float) : "Bullet shield distance" : 64 : "Obsolete"
shieldradius(float) : "Bullet shield radius" : 48 : "Obsolete"
PaintInterval(float): "Paint interval" : 1 : "Sniper will keep a target painted for this many seconds before shooting. 'Faster Shooting' sniper flag multiplies this by 0.75."
PaintIntervalVariance(float): "Paint interval variance" : "0.75" : "When shooting at NPCs, a random number between 0 and this is added to PaintInterval for every shot."
// Inputs
input EnableSniper(void) : "Enable Shooting"
input DisableSniper(void) : "Disable Shooting"
input SetDecoyRadius(integer) : "Set Decoy Radius"
input SweepTarget(string) : "Sweep a Target"
input SweepTargetHighestPriority(string) : "Drop everything and sweep this target!"
input SweepGroupRandomly(string) : "Randomly Sweep a Group"
input StopSweeping(void) : "Stop any target sweeping operation started by entity I/O"
input ProtectTarget(target_destination) : "Protect the specified enemy. The sniper will attempt to shoot the enemy nearest the protect target at all times."
input SetPaintInterval(float) : "Set PaintInterval field."
input SetPaintIntervalVariance(float) : "Set PaintIntervalVariance field."
output OnShotFired(void) : "Fires when sniper fires a shot"
spawnflags(Flags) =
[
65536 : "Hidden" : 0
131072 : "Laser Viewcone" : 0
262144 : "No Corpse" : 0
524288 : "Start Disabled" : 0
1048576 : "Faster shooting (Episodic)" : 0
2097152 : "No sweep away from target (Episodic)" : 0
]
]
@PointClass base(Targetname, Parentname) iconsprite("editor/info_target.vmt") = info_target_helicoptercrash : "Helicopter Crash Target"
[
output OnCrashed(void) : "Triggered when helicopter has crashed"
]
@PointClass base(Targetname, Parentname) iconsprite("editor/info_target.vmt") = info_dlightmap_update : ""
[
input enable(void) : ""
input disable(void) : ""
]
@PointClass base(Targetname, Parentname) iconsprite("editor/info_target.vmt") = info_stopallsounds : "stop them spinnaz"
[
input activate(void) : "Stops all sounds"
]
@PointClass base(Targetname, Parentname) iconsprite("editor/info_target.vmt") = material_timer : "Helicopter Crash Target"
[
length(float) : "Length" : 30 : "Length"
input start(float) : "Start"
input stop(float) : "Stop"
output OnStart(void) : ""
output OnStop(void) : ""
output OnFinish(void) : ""
]
@PointClass = xen_portal
[
output OnStartPortal(void) : "Portal FX is started"
output OnFinishPortal(void) : "Portal FX is finished"
size(choices) : "Portal Size" : "Default" =
[
80 : "Default"
20 : "Small HeadCrab"
40 : "HeadCrab"
80 : "Alien Slave"
90 : "Houndeye"
100 : "Alien Grunt"
110 : "Bullsquid"
]
sound(sound) : "Sound Name" : "XenPortal.Sound" : "Name of the GameSound entry for the sound to play. Also supports direct .wav filenames."
jump_distance(float) : "Leap Distance" : "0"
jump_hmaxspeed(float) : "Leap Max Horizontal Speed" : "200"
min_delay(float) : "Minimum spawn delay" : "0"
max_delay(float) : "Maximum spawn delay" : "0"
spawnflags(Flags) =
[
// Only in npc__maker, npc_template_maker uses flag from template NPC
16 : "Fade Corpse" : 0
32 : "Infinite Children" : 0
128 : "Don't Spawn While Visible" : 0
256 : "Always use radius spawn" : 0
512 : "Don't preload template models" : 0
32768 : "No DLight" : 0
65536 : "Remove after portal fx has finished" : 0
131072 : "No sound" : 0
262144 : "Jump out (Houndeye Only)" : 0
524288 : "No Warp FX" : 0
]
]
@PointClass base( Targetname ) size(-4 -4 -4, 4 4 4) = env_introcredits : ""
[
startactive(choices) : "Start Active" : "Off" =
[
0 : "Off"
1 : "On"
]
input activate(void) : "Activate"
]
@PointClass base(Targetname, Parentname) size(-4 -4 -4, 4 4 4) = env_particle_beam : ""
[
particlebeam(choices) : "Particle Beam Name" : "Lc Beam" =
[
"lc_beam" : "Lc Beam"
]
target(target_destination) : "Beam Target" : ""
damage(float) : "Damage" : "1"
damagetick(float) : "Damage Tick" : "0.1"
burntrail(material) : "Burn Trail Material" : "effects/gluon_burn_trail.vmt"
burntrail_life(float) : "Burn Trail Life" : "4"
burntrail_size(float) : "Burn Trail Size" : "16"
burntrail_text(float) : "Burn Trail Textile" : "0.01"
burntrail_flags(choices) : "Burn Trail Flags" : "Shrink + Fade" =
[
-1 : "Disabled"
0 : "None"
1 : "Shrink"
2 : "Fade"
3 : "Shrink + Fade"
]
input TurnOn(void) : "TurnOn"
input TurnOff(void) : "TurnOff"
spawnflags(flags) =
[
1 : "Start On" : 0
]
]
@PointClass base(Targetname, Parentname) size(-4 -4 -4, 4 4 4) = env_particle_tesla : ""
[
particletesla(string) : "Particle Tesla Name" : "tesla_lc_core" : ""
frequency(float) : "Spawn Frequency" : "0.1"
mincount(integer) : "Min Spawn Count" : 2
maxcount(integer) : "Max Spawn Count" : 4
range(integer) : "Range" : 2048
life(float) : "System Life" : "-1" : "infinite = -1"
min(vector) : "Mins" : "-1 -1 -1"
max(vector) : "Maxs" : "1 1 1"
decalname(string) : "Decal Name" : "ZapScorch" : "Decal to be applied at the end of the beam"
input TurnOn(void) : "TurnOn"
input TurnOff(void) : "TurnOff"
output OnTurnOn(void) : "Turned On"
output OnTurnOff(void) : "Turned Off"
spawnflags(flags) =
[
1 : "Start On" : 0
2 : "Normalize Mins & Max" : 1
]
]
@PointClass base(npc_maker, xen_portal) iconsprite("Editor/Xen_Portal") = env_xen_portal : "" []
@PointClass base(npc_template_maker, xen_portal) iconsprite("Editor/Xen_Portal") = env_xen_portal_template : "" []
@PointClass base(Targetname, Parentname) size(-4 -4 -4, 4 4 4) = env_pinch : "Pinch FX"
[
timer(float) : "Lifetime" : "1.8"
startsize(float) : "Start Size" : "10"
endsize(float) : "End Size" : "30"
spawnflags(Flags) =
[
65536 : "Remove after pinch fx is finished" : 1
]
input start(void) : "Dispatch the pinch fx"
input stop(void) : "Stop the pinch fx"
output OnFinish(void) : "Pinch FX is finished"
]
@PointClass base(Targetname, Parentname) size(-4 -4 -4, 4 4 4) = env_dispenser : "Dispenser (replaces env_beverage)"
[
spawnmodel(studio) : "Model to spawn" : "models/props_junk/popcan01a.mdl" : "Model to spawn when activated."
spawnangles(angle) : "Spawn angles" : "Orientation of the model at spawn (Y Z X)"
capacity(integer) : "Capacity" : 15 : "Number of models to spawn."
skinmin(integer) : "Minimum skin" : 0 : "Minimum skin number."
skinmax(integer) : "Maximum skin" : 0 : "Maximum skin number."
input Activate(void) : "Spawn prop_physics item with the specified model and skin."
input Break(void) : "Rapidy spawn all the items remaining in the dispenser."
output OnBreak(void) : "Break"
output OnEmpty(void) : "Empty"
]
@PointClass base(BasePropPhysics, Targetname, Angles, DamageFilter, BaseFadeProp) studioprop() = item_crate : "Item Crate"
[
model(studio) : "Model" : "models/items/item_item_crate.mdl" : "Model to use for the crate."
scriptpreset(choices) : "Script preset" : "" : "Spawn entities using a section from /scripts/proplist.txt" =
[
"canteen" : "canteen"
"joke" : "joke"
"junk" : "junk"
"lab" : "lab"
"lab2" : "lab2"
"military" : "military"
"military_big" : "military_big"
"office" : "office"
"tech" : "tech"
"tech2" : "tech2"
"cleaning_products" : "cleaning_products"
"paint_supplies" : "paint_supplies"
"books_small" : "books_small"
"books_large" : "books_large"
"snacks" : "snacks"
"computer_supplies" : "computer_supplies"
"tools" : "tools"
]
spawnonbreak(string) : "Spawn on break" : "" : "Spawn entities using a comma separated list."
]
@SolidClass base(BaseTank) = func_50cal : ".50 Caliber Machine Gun"
[
]
@SolidClass base(BaseTank) = func_tow : "TOW Missile System"
[
]
@SolidClass base(Targetname, Parentname, RenderFields, Shadow) = func_conveyor_bms :
"BMS Conveyor Belt"
[
direction(angle) : "Move Direction (Pitch Yaw Roll)" : "0 0 0" : "The direction conveyor moves."
spawnflags(flags) =
[
1 : "Push" : 1
]
speed(string) : "Conveyor Speed" : "150"
]
@PointClass base(BasePropPhysics, Targetname, Angles, DamageFilter, BaseFadeProp) studio("models/props_marines/tow_missile_projectile.mdl") = item_tow_missile : "TOW Missile"
[
]
@PointClass base( Targetname ) iconsprite("editor/info_target.vmt") = env_mortar_launcher : "Mortar Launcher"
[
firedelay(integer) : "Fire Delay" : 1
rateoffire(float) : "Rate of Fire" : 10
radius(float) : "Launcher Spread" : "128"
target(target_destination) : "Impact Target" : ""
grenadeentityname(choices) : "Mortar Type" : "Small" =
[
"grenade_mortar_small" : "Small"
"grenade_mortar_large" : "Large"
]
apexheightratio(float) : "Apex Height Ratio" : "1"
pathoption(choices) : "Path Start" : "Apex" =
[
"0" : "Origin"
"1" : "Apex"
"2" : "Free Fall"
]
fireshellscount(integer) : "Default Shell Count" : 1
override_damage(float) : "Override Shell Damage" : -1
override_damageradius(float) : "Override Shell Damage Radius" : -1
input LaunchDefault(void) : "Launch default count of shells mortars toward the target within the impact radius"
input Launch(integer) : "Launch n mortars toward the target within the impact radius"
]
@PointClass base(Targetname, Angles) studio("models/props_st/airstrike_map.mdl") = env_mortar_controller : "Mortar Controller"
[
MortarLauncher(target_destination) : "Mortar Launcher"
]
@NPCClass base(BaseNPC) studio("models/props_vehicles/abrams.mdl") = npc_abrams : "M1A1 Abrams Tank"
[
input ForcePathCorner(string) : "Path_Corner Move"
enableminiguns(choices) : "Enable Miniguns" : 1 =
[
0: "No"
1: "Yes"
]
enablebodyrotation(choices) : "Enable Body Rotation" : 1 =
[
0: "No"
1: "Yes"
]
input DisableBodyRotation(void) : ""
input EnableBodyRotation(void) : ""
input DisableMiniGuns(void) : ""
input EnableMiniGuns(void) : ""
]
@NPCClass base(BaseNPC) studio("models/props_vehicles/lav.mdl") = npc_lav : "LAV-25 Infantry Vehicle"
[
input ForcePathCorner(string) : "Path_Corner Move"
]
@PointClass base( Targetname, Origin, Angles) iconsprite("editor/info_target.vmt") = env_tram_screen : ""
[
panelname(string) : "Panel Name" : : "TramScreen"
functrainname(target_destination) : "Func Train To Trigger" : : ""
propname(target_destination) : "Prop To Attach" : : ""
]
@PointClass base(prop_dynamic_base) studioprop() = prop_retinalscanner : ""
[
model(studio) : "World model" : "models/props_lab/retinalscanner.mdl"
input Lock(void) : "Lock the scanner"
input Unlock(void) : "Unlock the scanner"
input LockSilent(void) : "Silent Lock the scanner"
input UnlockSilent(void) : "Silent Unlock the scanner"
input Press(void) : "Use the scanner"
output OnLocked(void) : "Called when locked"
output OnUnlocked(void) : "Called when unlocked"
output OnUseLocked(void) : "Called when used but locked"
output OnUseUnlocked(void) : "Called when used but unlocked"
locked(choices) : "Start Locked" : 0 =
[
0: "Yes"
1: "No"
]
nextlockeduse(float) : "Next Locked Use" : 4 : "Ammount in seconds this scanner will reset after it was used when locked."
nextunlockeduse(float) : "Next Unlocked Use" : 4 : "Ammount in seconds this scanner will reset after it was used when unlocked."
lockedsound(sound) : "Locked Sound" : "" : "Sound to play when locked."
unlockedsound(sound) : "Unlocked Sound" : "" : "Sound to play when unlocked."
lockedusesound(sound) : "Locked Primary Use Sound" : "" : "Primary sound to play when used but locked."
unlockedusesound(sound) : "Unlocked Primary Use Sound" : "" : "Primary sound to play when used but unlocked."
lockedusevox(sound) : "Locked Secondary Use Sound" : "" : "Secondary sound to play when used but locked."
unlockedusevox(sound) : "Unlocked Secondary Use Sound" : "" : "Secondary sound to play when used but unlocked."
delaylockedvox(float) : "Delay Locked Secondary Sound" : 0 : "Secondary locked sound delay."
delayunlockedvox(float) : "Delay Unlocked Secondary Sound" : 0 : "Secondary unlocked sound delay."
]
@PointClass base(prop_physics) studioprop() sphere(fademindist) sphere(fademaxdist) = prop_physics_respawnable :
"This class is the same as prop_physics, except it respawns after it breaks"
[
RespawnTime(float) : "Respawn Time" : 60 : "Ammount in seconds this prop will respawn after it breaks."
input InputRespawn(void) : "Force respawn"
output OnMaterialize(void) : "The prop has Materialized"
]
@PointClass base(prop_dynamic_base,EnableDisable) studioprop() = prop_scalable : "Scalable Prop"
[
input SetScaleX(vector) : "Scales the prop in one Axis. Params: <New Size> <Time>"
input SetScaleY(vector) : "Scales the prop in one Axis. Params: <New Size> <Time>"
input SetScaleZ(vector) : "Scales the prop in one Axis. Params: <New Size> <Time>"
]
@PointClass base(Targetname) iconsprite("editor/logic_auto.vmt") = logic_parent : ""
[
spawnflags(Flags) =
[
1 : "Remove on fire" : 1
2 : "Teleport child to parent" : 1
]
input ParentEntities(string) : "ParentName ChildName"
output OnFired(void) : ""
]
@PointClass base(Targetname) studio( "models/xenians/jump_pad.mdl" ) = env_xen_pushpad : ""
[
target(target_destination) : "Jump target name" : : ""
height(float) : "Height Offset" : 512 : ""
output OnTrigger(void) : ""
]
@SolidClass base(Trigger, Targetname) = trigger_gargantua_shake : ""
[
]
@SolidClass base(Trigger, Targetname) = trigger_lift : ""
[
liftaccel(float) : "Lift Acceleration" : 100 : "Lift Acceleration"
clampspeed(float) : "Clamp Speed" : 512 : "Clamp Speed"
]
@SolidClass base(trigger_multiple) = trigger_weaponfire :
"A trigger volume that can be triggered multiple times."
[
]
@SolidClass base(Trigger, Targetname) = func_minefield : ""
[
minecount(integer) : "Mine Count" : 25 : "Mine Count"
ranx(float) : "Uniform Random Spread X" : 35 : ""
rany(float) : "Uniform Random Spread Y" : 35 : ""
spawnflags(Flags) =
[
4096 : "Uniform displacement" : 0
8192 : "Quick Placement" : 0
]
]
@SolidClass base(Trigger) = func_friction
[
modifier(float) : "Friction Percent" : 100 : "Set the friction to this percent of the regular friction"
]
@PointClass base(Parentname, Global, Targetname, Shadow, Angles, DXLevelChoice, BaseFadeProp, RenderFields) studio( "models/props_vehicles/oar_awesome_tram.mdl" ) = prop_train_awesome : ""
[
solid(choices) : "Collisions" : 6 =
[
0: "Not Solid"
2: "Use Bounding Box"
6: "Use VPhysics"
]
spawnflags(flags) =
[
64 : "Use Hitboxes for Renderbox" : 0
256 : "Start with collision disabled" : 0
]
input EnableCollision(void) : "Enable collision on the prop."
input DisableCollision(void) : "Disable collision on the prop."
lightingorigin(target_destination) : "Lighting Origin" : "" : "Select a path_corner entity to specify a location to sample lighting from, instead of using this entity's origin."
]
@PointClass base(Parentname, Global, Targetname, Shadow, Angles, DXLevelChoice, BaseFadeProp, RenderFields) studio( "models/props_vehicles/oar_tram.mdl" ) = prop_train_apprehension : ""
[
solid(choices) : "Collisions" : 6 =
[
0: "Not Solid"
2: "Use Bounding Box"
6: "Use VPhysics"
]
spawnflags(flags) =
[
64 : "Use Hitboxes for Renderbox" : 0
256 : "Start with collision disabled" : 0
]
input KillScreen(void) : "KillScreen"
input RestoreScreen(void) : "RestoreScreen"
input EnableCollision(void) : "Enable collision on the prop."
input DisableCollision(void) : "Disable collision on the prop."
lightingorigin(target_destination) : "Lighting Origin" : "" : "Select a path_corner entity to specify a location to sample lighting from, instead of using this entity's origin."
]
@BaseClass base(BaseNPC) = BaseZombie
[
spawnflags(Flags) =
[
65536 : "Never spawn headcrab" : 0
]
input BecomeTorso(void) : "BecomeTorso"
]
@NPCClass base(BaseZombie) studio("models/zombies/zombie_sci.mdl") = npc_zombie_scientist : "Zombie Scientist"[]
@NPCClass base(BaseZombie) studio("models/zombies/zombie_sci_torso.mdl") = npc_zombie_scientist_torso : "Zombie Scientist_Torso"[]
@NPCClass base(BaseZombie) studio("models/zombies/zombie_guard.mdl") = npc_zombie_security : "Zombie Security"[]
@NPCClass base(BaseZombie) studio("models/zombies/zombie_grunt.mdl") = npc_zombie_grunt : "Zombie Grunt"[]
@FilterClass base(BaseFilter) = filter_damage_class :
"A damage filter that filters by the class name of the attacker or inflicter. This can only be used as a damage filter, not as an activator filter."
[
filterclass(string) : "Filter Classname" : : "The class name to filter by. If the filter mode is Allow, only entities whose "+
"class name matches the given string will pass the filter. If the filter mode is Disallow, "+
"all entities EXCEPT those whose class name matches the given string will pass the filter."
spawnflags(Flags) =
[
1 : "check against attacker" : 1
2 : "checks against inflicter" : 0
]
]
@FilterClass base(BaseFilter) = filter_activator_flag :
"Filters by the entity flags of the activator"
[
flag(choices) : "Flag" : 0 =
[
0 : "None"
1 : "On ground"
2 : "Crouching"
1048576 : "Grenade"
134217728 : "On fire"
]
]
@PointClass base(BasePropPhysics, Targetname, Angles, DamageFilter, BaseFadeProp) studioprop() = prop_flare : "Flare Prop"
[
model(studio) : "Model" : "models/props_junk/flare.mdl" : "Model to use for the flare."
input TurnOff(void) : "Extinguish flare"
input TurnOn(void) : "Ignite flare"
output OnPlayerUse(void) : "Fired when player instigates +USE."
]
@PointClass base(Targetname, Angles) studioprop( "models/props_questionableethics/qe_surgery_bot_main.mdl" ) = prop_surgerybot : "Surgery Bot"
[
startactive(choices) : "Start Active" : 1 =
[
0: "True"