Subversion Repositories nw_plus

Rev

Rev 1 | Rev 8 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 7
Line 190... Line 190...
190
useractor enemy SNOWMAN SNOWMANSTRENGTH ASNOWMANIDLE
190
useractor enemy SNOWMAN SNOWMANSTRENGTH ASNOWMANIDLE
191
   fall
191
  fall
192
192
193
   ifaction ASNOWMANDEAD
193
  ifaction ASNOWMANDEAD
194
     {
194
  {
195
  ifrespawn
-
 
196
    {
-
 
197
    ifcount RESPAWNACTORTIME
-
 
198
      {
-
 
199
      spawn TRANSPORTERSTAR
-
 
200
      cstat 257
-
 
201
      strength SNOWMANSTRENGTH
-
 
202
      ai AISNOWFOLLOW
-
 
203
      }
-
 
204
    }
-
 
205
    else
-
 
206
    {
-
 
207
    strength 0
195
    strength 0
208
    ifhitweapon
196
    ifhitweapon
209
      {
197
    {
210
      ifwasweapon RADIUSEXPLOSION
198
      ifwasweapon RADIUSEXPLOSION
211
        {
199
      {
Line 213... Line 201...
213
     //  debris SCRAP3 40
201
      // debris SCRAP3 40
214
        debris SCRAP3 20
202
        debris SCRAP3 20
215
        killit
203
        killit
216
        }
204
      }
217
      }
205
    }
-
 
206
  
-
 
207
    ifrespawn
-
 
208
    {
-
 
209
      ifcount RESPAWNACTORTIME
-
 
210
      {
-
 
211
        spawn TRANSPORTERSTAR
-
 
212
        cstat 257
-
 
213
        strength SNOWMANSTRENGTH
-
 
214
        ai AISNOWFOLLOW
-
 
215
      }
218
    }
216
    }
219
  break
217
    break
220
  }
218
  }
221
  else
-
 
222
ifaction ASNOWMANFROZEN
219
  else ifaction ASNOWMANFROZEN
223
  {
220
  {
224
  ifcount THAWTIME
221
    ifcount THAWTIME
225
    {
222
    {
226
    ai AISNOWFOLLOW
223
      ai AISNOWFOLLOW
227
    getlastpal
224
      getlastpal
Line 242... Line 239...
242
  lotsofglass 30
239
    lotsofglass 30
243
  ifrnd 84 debris SCRAP3 10
240
    ifrnd 84 debris SCRAP3 10
244
  sound GLASS_BREAKING
241
    sound GLASS_BREAKING
245
  killit
242
    killit
246
  }
243
    }
-
 
244
247
  ifp pfacing
245
    ifp pfacing
248
    ifpdistl FROZENQUICKKICKDIST
246
      ifpdistl FROZENQUICKKICKDIST
249
      pkick
247
        pkick
250
  break
248
    break
251
  }
249
  }
Line 254... Line 252...
254
  {
252
  {
255
  state snowmanshrinkstate
253
    state snowmanshrinkstate
256
  break
254
    break
257
  }
255
  }
258
256
259
-
 
260
ifhitweapon state snowmanhitstate
257
  ifhitweapon state snowmanhitstate
261
258
262
ifp pdead break
259
  ifp pdead break
263
260
264
ifai 0
261
  ifai 0
Line 364... Line 361...
364
361
365
362
366
363
367
state stomphisfreakingass
364
state stomphisfreakingass
368
365
  
-
 
366
  ifp pdead
369
ifp pdead nullop
367
    nullop
370
  else
368
  else
371
  {
-
 
372
  ifpdistl SQUISHABLEDISTANCE
369
    ifpdistl SQUISHABLEDISTANCE
373
    {
370
    {
374
    addphealth -1000
371
      addphealth -1000
375
    sound SQUISH2
372
      sound SQUISH2
376
//    state standard_pjibs
373
     // state standard_pjibs
377
    state standard_pjibs
374
      state standard_pjibs
378
    sound SANTA_TRASH9
375
      sound SANTA_TRASH9
379
    }
376
    }
380
  }
-
 
381
377
  
382
ends
378
ends
383
379
384
380
385
state botchangeweaponstate
381
state botchangeweaponstate
Line 396... Line 392...
396
      spritepal 3
392
        spritepal 3
397
      else
393
      else
398
      spritepal 9
394
        spritepal 9
399
    }
395
    }
400
    else
396
    else
401
    {
-
 
402
    ifrnd 128
397
      ifrnd 128
403
      spritepal 3
398
        spritepal 3
404
    }
399
  }
405
  }
-
 
406
  else
-
 
407
ifspritepal 3
400
  else ifspritepal 3
408
  {
401
  {
409
  ifpdistg 4096
402
    ifpdistg 4096
410
    {
403
    {
411
    ifrnd 128
404
      ifrnd 128
412
      spritepal 0
405
        spritepal 0
Line 417... Line 410...
417
    {
410
    {
418
    ifrnd 128
411
      ifrnd 128
419
      spritepal 9
412
        spritepal 9
420
    }
413
    }
421
  }
414
  }
422
  else
-
 
423
ifspritepal 9
415
  else ifspritepal 9
424
  {
416
  {
425
  ifpdistg 4096
417
    ifpdistg 4096
426
    {
418
    {
427
    ifrnd 128
419
      ifrnd 128
428
      spritepal 0
420
        spritepal 0
429
      else
421
      else
430
      spritepal 3
422
        spritepal 3
431
    }
423
    }
432
    else
424
    else
433
    {
-
 
434
    ifrnd 128
425
      ifrnd 128
435
      spritepal 9
426
        spritepal 9
436
    }
427
  }
437
  }
-
 
438
428
  
439
sound SELECT_WEAPON
429
  sound SELECT_WEAPON
440
430
  
441
ends
431
ends
442
432
Line 447... Line 437...
447
ifp pshrunk break
437
  ifp pshrunk break
448
ifp pdead break
438
  ifp pdead break
449
439
450
ifspritepal 0
440
  ifspritepal 0
451
  {
441
  {
-
 
442
    shoot RPG
452
  shoot RPG sound RPG_SHOOT
443
    sound RPG_SHOOT
453
  }
444
  }
454
  else
-
 
455
ifspritepal 3
445
  else ifspritepal 3
456
  {
446
  {
-
 
447
    shoot CHAINGUN
457
  shoot CHAINGUN sound CHAINGUN_FIRE
448
    sound CHAINGUN_FIRE
458
  }
449
  }
459
  else
-
 
460
ifspritepal 9
450
  else ifspritepal 9
461
  {
451
  {
-
 
452
   // shoot SHRINKER
462
//  shoot SHRINKER sound SHRINKER_FIRE
453
   // sound SHRINKER_FIRE
-
 
454
    shoot SHOTGUN
463
  shoot SHOTGUN sound SHOTGUN_FIRE
455
    sound SHOTGUN_FIRE
464
  }
456
  }
465
457
  
466
ends
458
ends
467
459
468
460
Line 483... Line 475...
483
      shoot RPG
475
        shoot RPG
484
      sound RPG_SHOOT
476
        sound RPG_SHOOT
485
      }
477
      }
486
478
  
487
    ifpdistl 4096
479
    ifpdistl 4096
488
      {
-
 
489
      ifrnd 5
480
      ifrnd 5
490
        state botchangeweaponstate
481
        state botchangeweaponstate
491
      }
482
    }
492
    }
483
  }
493
  }
-
 
494
  else
-
 
495
ifspritepal 3
484
  else ifspritepal 3
496
  {
485
  {
497
  ifcount 5
486
    ifcount 5
498
    {
487
    {
499
    ifactioncount 1
488
      ifactioncount 1
500
      {
489
      {
501
      resetactioncount
490
        resetactioncount
-
 
491
        shoot SHOTSPARK1
-
 
492
        shoot CHAINGUN
-
 
493
        shoot CHAINGUN
502
      shoot SHOTSPARK1 shoot CHAINGUN shoot CHAINGUN shoot CHAINGUN
494
        shoot CHAINGUN
503
      sound CHAINGUN_FIRE
495
        sound CHAINGUN_FIRE
504
      }
496
      }
-
 
497
  
-
 
498
      ifrnd 1
505
    ifrnd 1 state botchangeweaponstate
499
        state botchangeweaponstate
506
    }
500
    }
507
  }
501
  }
508
  else
-
 
509
ifspritepal 9
502
  else ifspritepal 9
510
  {
503
  {
511
  ifcount 5
504
    ifcount 5
512
    {
505
    {
513
    ifactioncount 5
506
      ifactioncount 5
514
      {
507
      {
Line 517... Line 510...
517
//      sound SHRINKER_FIRE
510
       // sound SHRINKER_FIRE
518
      shoot SHOTGUN
511
        shoot SHOTGUN
519
      sound SHOTGUN_FIRE
512
        sound SHOTGUN_FIRE
520
      }
513
      }
521
    ifp ponsteroids
514
      ifp ponsteroids
522
      {
-
 
523
      ifrnd 64
515
        ifrnd 64
524
        state botchangeweaponstate
516
          state botchangeweaponstate
-
 
517
  
525
      }
518
      ifrnd 1
526
    ifrnd 1 state botchangeweaponstate
519
        state botchangeweaponstate
527
    }
520
    }
528
  }
521
  }
529
522
  
530
-
 
531
-
 
532
ends
523
ends
533
524
534
state dudehurt
525
state dudehurt
535
-
 
536
/*
526
/*
537
        ifstrength YELLHURTSOUNDSTRENGTHMP
527
        ifstrength YELLHURTSOUNDSTRENGTHMP
538
        {
528
        {
539
          ifrnd 64
529
          ifrnd 64
540
            sound SANTA_GOTHIT
530
            sound SANTA_GOTHIT
Line 606... Line 596...
606
596
  
607
// spawn BLOOD
597
  // spawn BLOOD
608
598
  
609
ifdead
599
  ifdead
610
  {
600
  {
-
 
601
    ifspritepal 21
-
 
602
    {
-
 
603
      state miniboss
-
 
604
      break
-
 
605
    }
-
 
606
    else
611
  ifspritepal 21 { state miniboss break } else soundonce SANTA_DEAD
607
      soundonce SANTA_DEAD
612
608
613
  ifwasweapon FREEZEBLAST
609
    ifwasweapon FREEZEBLAST
614
    {
610
    {
615
      spritepal 1
611
      spritepal 1
616
      strength 0
612
      strength 0
617
      move 0
613
      move 0
618
      action ABOTWALKFROZEN
614
      action ABOTWALKFROZEN
619
      sound SOMETHINGFROZE
615
      sound SOMETHINGFROZE
620
      break
616
      break
621
    }
617
    }
622
    else
-
 
623
  ifwasweapon GROWSPARK
618
    else ifwasweapon GROWSPARK
624
    {
619
    {
625
      cstat 0
620
      cstat 0
626
      sound ACTOR_GROWING
621
      sound ACTOR_GROWING
627
      ai AIBOTWALKGROW
622
      ai AIBOTWALKGROW
628
      break
623
      break
629
    }
624
    }
630
    else
-
 
631
  ifwasweapon RADIUSEXPLOSION
625
    else ifwasweapon RADIUSEXPLOSION
632
    {
626
    {
633
//      state standard_pjibs
627
     // state standard_pjibs
634
//      state standard_pjibs
628
     // state standard_pjibs
635
//      state standard_pjibs
629
     // state standard_pjibs
636
      state standard_pjibs
630
      state standard_pjibs
637
      sound SQUISH2
631
      sound SQUISH2
638
      addkills 1
632
      addkills 1
639
      endofgame 52
633
      endofgame 52
640
      killit
634
      killit
641
    }
635
    }
642
    else
-
 
643
  ifwasweapon RPG
636
    else ifwasweapon RPG
644
    {
637
    {
645
//      state standard_pjibs
638
     // state standard_pjibs
646
//      state standard_pjibs
639
     // state standard_pjibs
647
//      state standard_pjibs
640
     // state standard_pjibs
648
      state standard_pjibs
641
      state standard_pjibs
Line 661... Line 654...
661
  {
654
  {
662
  state dudehurt
655
    state dudehurt
663
656
  
664
  ifwasweapon SHRINKSPARK
657
    ifwasweapon SHRINKSPARK
665
    {
658
    {
666
      ifai AIBOTWALKSTEROIDS nullop else
659
      ifai AIBOTWALKSTEROIDS
-
 
660
        nullop
-
 
661
      else
667
       {
662
      {
668
         ai AIBOTWALKSHRINK
663
        ai AIBOTWALKSHRINK
669
         break
664
        break
670
       }
665
      }
671
    }
666
    }
Line 692... Line 687...
692
    ai AIBOTWALKHUNT
687
    ai AIBOTWALKHUNT
693
    break
688
    break
694
  }
689
  }
695
690
  
696
ifgapzl 100
691
  ifgapzl 100
697
  {
-
 
698
  }
692
    nullop
699
  else
693
  else
700
  {
694
  {
701
  ifnotmoving
695
    ifnotmoving
702
    {
696
    {
-
 
697
      ifrnd 4
703
    ifrnd 4 operate
698
        operate
704
    ifpdistl 8000
699
      ifpdistl 8000
705
      {
700
      {
706
      ai AIFLYUPMOMENT
701
        ai AIFLYUPMOMENT
707
      cactor SOBBOTFLY
702
        cactor SOBBOTFLY
708
      break
703
        break
709
      }
704
      }
710
      else
705
      else
711
      ai AIBOTWALKJUMP1
706
        ai AIBOTWALKJUMP1
-
 
707
  
712
    break
708
      break
713
    }
709
    }
714
  }
710
  }
715
711
  
716
ends
712
ends
Line 720... Line 716...
720
ifrnd 4
716
  ifrnd 4
721
  ifpdistl 6000
717
    ifpdistl 6000
722
    state botquickshootstate
718
      state botquickshootstate
723
719
  
724
ifai AIBOTWALKJUMP1
720
  ifai AIBOTWALKJUMP1
725
  {
-
 
726
  ifactioncount 2
721
    ifactioncount 2
727
    {
722
    {
728
    ai AIBOTWALKJUMP2
723
      ai AIBOTWALKJUMP2
729
    break
724
      break
730
    }
725
    }
731
  }
-
 
732
726
  
733
ifai AIBOTWALKJUMP2
727
  ifai AIBOTWALKJUMP2
734
  {
-
 
735
  ifactioncount 1
728
    ifactioncount 1
736
    {
729
    {
737
    state botshootstate
730
      state botshootstate
738
    iffloordistl 16
731
      iffloordistl 16
739
      {
732
      {
740
      sound DUKE_LAND
733
        sound DUKE_LAND
741
      operate
734
        operate
742
      ai AIBOTWALKHUNT
735
        ai AIBOTWALKHUNT
743
      }
736
      }
744
    }
737
    }
745
  }
-
 
746
738
  
747
ends
739
ends
748
740
749
state botwalkhuntstate
741
state botwalkhuntstate
750
742
  
Line 757... Line 749...
757
  }
749
  }
758
750
  
759
ifcansee
751
  ifcansee
760
  {
752
  {
761
  ifpdistl 1024
753
    ifpdistl 1024
762
    {
-
 
763
    ifrnd 24
754
      ifrnd 24
764
      {
755
      {
765
      ifp pdead
756
        ifp pdead
766
        nullop
757
          nullop
767
        else
758
        else
768
        ai AIBOTWALKKICK
759
          ai AIBOTWALKKICK
769
      break
760
        break
770
      }
761
      }
771
    }
762
  }
772
  }
-
 
773
  else
763
  else
774
  {
764
  {
775
  ifphealthl 50
765
    ifphealthl 50
776
    ifrnd 64
766
      ifrnd 64
777
      ifpdistl 8000
767
        ifpdistl 8000
778
        {
-
 
779
          ifrnd 80
768
          ifrnd 80
780
            sound SANTA_TRASH1
769
            sound SANTA_TRASH1
781
        }
-
 
782
770
  
783
  ifrnd 128
771
    ifrnd 128
784
    {
772
    {
785
    ifp phigher
773
      ifp phigher
786
      {
774
      {
Line 826... Line 814...
826
      ai AIBOTWALKHUNT
814
        ai AIBOTWALKHUNT
827
      break
815
        break
828
      }
816
      }
829
    ifp pfacing
817
      ifp pfacing
830
      ifrnd 16
818
        ifrnd 16
831
        {
-
 
832
          globalsound SANTA_TRASH8
819
          globalsound SANTA_TRASH8
833
        }
820
834
    sound KICK_HIT
821
      sound KICK_HIT
835
822
  
-
 
823
      ifspritepal 21
-
 
824
        addphealth -1
-
 
825
      else
836
    ifspritepal 21 addphealth -1 else addphealth -6
826
        addphealth -6
837
      
827
  
838
    state dukehurt
828
      state dukehurt
839
    }
829
    }
840
    else
830
    else
841
    {
831
    {
Line 860... Line 850...
860
    {
850
    {
861
    ai AIBOTWALKSTRJUMP2
851
    ai AIBOTWALKSTRJUMP2
862
    break
852
    break
863
    }
853
    }
864
  }
854
  }
865
  else
-
 
866
ifai AIBOTWALKSTRJUMP2
855
  else ifai AIBOTWALKSTRJUMP2
867
  {
856
  {
868
  ifcount 18
857
    ifcount 18
869
    {
858
    {
870
    iffloordistl 16
859
      iffloordistl 16
871
      {
860
      {
Line 893... Line 882...
893
    ai AIBOTWALKSTRJUMP2S
882
      ai AIBOTWALKSTRJUMP2S
894
    resetactioncount
883
      resetactioncount
895
    count 10
884
      count 10
896
    break
885
      break
897
    }
886
    }
898
-
 
899
  }
887
  }
900
  else
-
 
901
ifai AIBOTWALKSTRJUMP2S
888
  else ifai AIBOTWALKSTRJUMP2S
902
  {
889
  {
903
  ifcount 18
890
    ifcount 18
904
    {
891
    {
905
    iffloordistl 16
892
      iffloordistl 16
906
      {
893
      {
Line 910... Line 897...
910
      count 10
897
        count 10
911
      }
898
      }
912
    }
899
    }
913
  }
900
  }
914
901
  
915
-
 
916
ends
902
ends
917
903
918
904
919
state botwalkstraightstate
905
state botwalkstraightstate
920
906
  
Line 926... Line 912...
926
  ifnotmoving
912
    ifnotmoving
927
    {
913
    {
928
    ai AIBOTWALKSTRJUMP1
914
      ai AIBOTWALKSTRJUMP1
929
    break
915
      break
930
    }
916
    }
-
 
917
  
931
  ifrnd 64
918
    ifrnd 64
932
    ai AIBOTWALKHUNT
919
      ai AIBOTWALKHUNT
933
  }
920
  }
934
  else
921
  else
935
  {
-
 
936
  ifrnd 128
922
    ifrnd 128
937
    ifnotmoving
923
      ifnotmoving
938
      ai AIBOTWALKSTRJUMP1
924
        ai AIBOTWALKSTRJUMP1
939
  }
-
 
940
925
  
941
ends
926
ends
942
927
943
state steroidswalk
928
state steroidswalk
944
929
  
Line 950... Line 935...
950
  state botwalkhitstate
935
    state botwalkhitstate
951
  break
936
    break
952
  }
937
  }
953
938
  
954
ifcount 150
939
  ifcount 150
955
  {
-
 
956
  ai AIBOTWALKHUNT
940
    ai AIBOTWALKHUNT
957
  }
-
 
958
941
959
ifcount 34
942
  ifcount 34
960
  {
-
 
961
  }
943
    nullop
962
  else
944
  else
963
  {
-
 
964
  sizeto 42 36
945
    sizeto 42 36
965
  }
-
 
966
946
  
967
ends
947
ends
968
948
969
state botletfallstate
949
state botletfallstate
970
950
  
971
ifactioncount 5
951
  ifactioncount 5
972
  {
-
 
973
  }
-
 
974
  else
952
    nullop
975
  ifactioncount 6
953
  else ifactioncount 6
976
    {
-
 
977
    soundonce SANTA_TRASH7
954
    soundonce SANTA_TRASH7
978
    }
-
 
979
955
  
980
ifcansee
956
  ifcansee
981
  {
957
  {
982
  ai AIFLYWAIT
958
    ai AIFLYWAIT
983
  cactor SOBBOTFLY
959
    cactor SOBBOTFLY
Line 998... Line 974...
998
useractor enemy SOBBOTWALK SOBBOTSTRENGTH ABOTWALK
974
useractor enemy SOBBOTWALK SOBBOTSTRENGTH ABOTWALK
999
   state checksquished
975
  state checksquished
1000
976
1001
  ifai 0
977
  ifai 0
1002
    {
978
    {
1003
-
 
1004
      ifspawnedby RECON
979
      ifspawnedby RECON
1005
        {
980
        {
1006
          spawn PIGCOP
981
          spawn PIGCOP
1007
          killit
982
          killit
1008
        }
983
        }
Line 1015... Line 990...
1015
  ai AIBOTWALKSEEK
990
    ai AIBOTWALKSEEK
1016
991
1017
  ifspritepal 21
992
    ifspritepal 21
1018
    {
993
    {
1019
      strength MINIBOSSSTRENGTH
994
      strength MINIBOSSSTRENGTH
-
 
995
      ifrnd 64
1020
      ifrnd 64 soundonce SANTA_TRASH9
996
        soundonce SANTA_TRASH9
1021
    }
997
    }
-
 
998
    else
1022
    else spritepal 0
999
      spritepal 0
1023
1000
  
1024
  sound INSERT_CLIP
1001
    sound INSERT_CLIP
1025
  break
1002
    break
1026
  }
1003
  }
1027
1004
1028
-
 
1029
   fall
1005
   fall
1030
   sleeptime 300
1006
   sleeptime 300
1031
1007
1032
ifaction ABOTWDEAD break
1008
  ifaction ABOTWDEAD
1033
  else
1009
    break
1034
ifaction ABOTWALKFROZEN
1010
  else ifaction ABOTWALKFROZEN
1035
  {
1011
  {
1036
-
 
1037
  ifcount THAWTIME
1012
    ifcount THAWTIME
1038
    {
1013
    {
1039
    ai AIBOTWALKHUNT
1014
      ai AIBOTWALKHUNT
1040
    getlastpal
1015
      getlastpal
1041
    }
1016
    }
1042
    else
-
 
1043
    ifcount FROZENDRIPTIME
1017
    else ifcount FROZENDRIPTIME
1044
      {
-
 
1045
      ifactioncount 26
1018
      ifactioncount 26
1046
        {
1019
      {
1047
        spawn WATERDRIP
1020
        spawn WATERDRIP
1048
        resetactioncount
1021
        resetactioncount
1049
        }
1022
      }
1050
      }
1023
  
1051
  ifhitweapon
1024
    ifhitweapon
1052
    {
1025
    {
1053
    ifwasweapon FREEZEBLAST
1026
      ifwasweapon FREEZEBLAST
1054
      {
1027
      {
1055
      strength 0
1028
        strength 0
Line 1065... Line 1038...
1065
    ifspritepal 21
1038
      ifspritepal 21
1066
      {
1039
      {
1067
        state miniboss
1040
        state miniboss
1068
        break
1041
        break
1069
      }
1042
      }
-
 
1043
      else
-
 
1044
      {
1070
    endofgame 52
1045
        endofgame 52
1071
    killit
1046
        killit
1072
    }
1047
      }
-
 
1048
    }
-
 
1049
  
1073
  ifp pfacing
1050
    ifp pfacing
1074
    ifpdistl FROZENQUICKKICKDIST
1051
      ifpdistl FROZENQUICKKICKDIST
1075
      pkick
1052
        pkick
-
 
1053
  
1076
  break
1054
     break
1077
  }
1055
  }
1078
  else
-
 
1079
ifai AIBOTWALKSTEROIDS
1056
  else ifai AIBOTWALKSTEROIDS
1080
  {
1057
  {
1081
    state steroidswalk
1058
    state steroidswalk
1082
    break
1059
    break
1083
  }
1060
  }
1084
  else
-
 
1085
ifai AIBOTWALKGROW
1061
  else ifai AIBOTWALKGROW
1086
  {
1062
  {
1087
  ifcount 32
1063
    ifcount 32
1088
    {
1064
    {
1089
    guts JIBS4 24
1065
      guts JIBS4 24
1090
    guts JIBS6 28
1066
      guts JIBS6 28
Line 1097... Line 1073...
1097
    ifspritepal 21
1073
      ifspritepal 21
1098
      {
1074
      {
1099
        state miniboss
1075
        state miniboss
1100
        break
1076
        break
1101
      }
1077
      }
-
 
1078
      else
-
 
1079
      {
1102
    endofgame 52
1080
        endofgame 52
1103
    killit
1081
        killit
1104
    }
1082
      }
-
 
1083
    }
1105
    else
1084
    else
1106
    {
1085
    {
1107
    sizeto MAXXSTRETCH MAXYSTRETCH
1086
      sizeto MAXXSTRETCH MAXYSTRETCH
1108
    break
1087
      break
1109
    }
1088
    }
1110
  break
1089
    break
1111
  }
1090
  }
1112
  else
-
 
1113
ifai AIBOTWALKSHRINK
1091
  else ifai AIBOTWALKSHRINK
1114
  {
1092
  {
1115
-
 
1116
  ifcount SHRUNKDONECOUNT
1093
    ifcount SHRUNKDONECOUNT
1117
    ai AIBOTWALKHUNT
1094
      ai AIBOTWALKHUNT
1118
    else
1095
    else
-
 
1096
      {
1119
    ifcount SHRUNKCOUNT
1097
        ifcount SHRUNKCOUNT
1120
      {
1098
        {
1121
      spawn FRAMEEFFECT1
1099
          spawn FRAMEEFFECT1
1122
      sizeto 42 36
1100
          sizeto 42 36
1123
      }
1101
        }
1124
      else
-
 
1125
      {
-
 
1126
      ifcount 31
1102
        else ifcount 31
1127
        nullop
1103
          nullop
1128
        else
-
 
1129
        {
-
 
1130
        ifcount 30
1104
        else ifcount 30
1131
          {
1105
        {
1132
          ifrnd 255
1106
          ifrnd 255
1133
            {
1107
          {
1134
            sound DUKE_TAKEPILLS
1108
            sound DUKE_TAKEPILLS
1135
            ai AIBOTWALKSTEROIDS
1109
            ai AIBOTWALKSTEROIDS
1136
            break
1110
            break
1137
            }
1111
          }
1138
          }
1112
        }
1139
        }
-
 
1140
      ifcount 32
1113
        ifcount 32
1141
        {
1114
        {
1142
        ifpdistl SQUISHABLEDISTANCE
1115
          ifpdistl SQUISHABLEDISTANCE
1143
          {
1116
          {
1144
          state standard_pjibs
1117
            state standard_pjibs
1145
          sound SQUISH2
1118
            sound SQUISH2
1146
          spawn BLOODPOOL
1119
            spawn BLOODPOOL
1147
          pkick
1120
            pstomp
1148
//          state headhitstate
-
 
1149
//          state headhitstate
-
 
1150
//          state headhitstate
-
 
1151
          state headhitstate
-
 
1152
    ifspritepal 21
1121
            ifspritepal 21
1153
      {
1122
            {
1154
        state miniboss
1123
              state miniboss
1155
        break
1124
              break
1156
      }
1125
            }
Line 1158... Line 1127...
1158
      {
1127
            {
1159
          ifrnd 128
1128
              ifrnd 128
1160
              sound SANTA_DEAD
1129
                sound SANTA_DEAD
1161
              else
1130
              else
1162
              sound SANTA_TRASH9
1131
                sound SANTA_TRASH9
1163
      }
1132
  
1164
          endofgame 52
1133
              endofgame 52
1165
          killit
1134
              killit
1166
          }
1135
            }
1167
        }
1136
          }
-
 
1137
        }
1168
        else
1138
        else
1169
        {
1139
        {
1170
        sizeto MINXSTRETCH MINYSTRETCH
1140
          sizeto MINXSTRETCH MINYSTRETCH
1171
        spawn FRAMEEFFECT1
1141
          spawn FRAMEEFFECT1
1172
        }
1142
        }
1173
      }
1143
      }
1174
-
 
1175
  break
1144
    break
1176
  }
1145
  }
1177
  else
-
 
1178
ifai AIBOTWALKDYING
1146
  else ifai AIBOTWALKDYING
1179
  {
1147
  {
1180
  state botwalkdyingstate
1148
    state botwalkdyingstate
1181
  break
1149
    break
1182
  }
1150
  }
1183
  else
1151
  else
Line 1187... Line 1155...
1187
ifhitweapon
1155
  ifhitweapon
1188
  {
1156
  {
1189
  state botwalkhitstate
1157
    state botwalkhitstate
1190
  break
1158
    break
1191
  }
1159
  }
1192
  else
-
 
1193
ifai AIWALKFALLHARD
1160
  else ifai AIWALKFALLHARD
1194
  {
1161
  {
1195
  iffloordistl 16
1162
    iffloordistl 16
1196
    {
-
 
1197
    ai AIBOTWALKHUNT
1163
      ai AIBOTWALKHUNT
1198
    }
-
 
1199
    else
1164
    else
1200
    {
-
 
1201
    break
1165
      break
1202
    }
1166
  }
1203
  }
-
 
1204
  else
1167
  else
1205
  {
1168
  {
1206
  ifai AIWALKFALL
1169
    ifai AIWALKFALL
1207
    {
1170
    {
1208
    state botshootstate
1171
      state botshootstate
1209
    iffloordistl 16
1172
      iffloordistl 16
1210
      {
-
 
1211
      ai AIBOTWALKHUNT
1173
        ai AIBOTWALKHUNT
1212
      }
-
 
1213
      else
1174
      else
1214
      {
-
 
1215
      break
1175
        break
1216
      }
1176
    }
1217
    }
1177
  }
1218
  }
-
 
1219
1178
  
1220
ifp pshrunk
1179
  ifp pshrunk
1221
  state stomphisfreakingass
1180
    state stomphisfreakingass
1222
1181
  
1223
iffloordistl 550
1182
  iffloordistl 550
Line 1227... Line 1186...
1227
  ai AIFLYWAIT
1186
    ai AIFLYWAIT
1228
  cactor SOBBOTFLY
1187
    cactor SOBBOTFLY
1229
  }
1188
  }
1230
1189
1231
ifonwater
1190
  ifonwater
1232
  {
-
 
1233
  }
1191
    nullop
1234
  else
1192
  else
1235
  {
1193
  {
1236
  ifp pjetpack
1194
    ifp pjetpack
1237
    ifp phigher
1195
      ifp phigher
1238
      ifcansee
1196
        ifcansee
Line 1243... Line 1201...
1243
  }
1201
  }
1244
1202
1245
ifp phigher
1203
  ifp phigher
1246
  {
1204
  {
1247
  ifrnd 1
1205
    ifrnd 1
1248
    {
-
 
1249
    ifrnd 196
1206
      ifrnd 196
1250
      {
1207
      {
1251
      ai AIFLYWAIT
1208
        ai AIFLYWAIT
1252
      cactor SOBBOTFLY
1209
        cactor SOBBOTFLY
1253
      }
1210
      }
1254
    }
1211
  }
1255
  }
-
 
1256
1212
1257
ifai AIWALKWAIT
1213
  ifai AIWALKWAIT
1258
  {
1214
  {
1259
  ai AIBOTWALKSEEK
1215
    ai AIBOTWALKSEEK
1260
  break
1216
    break
1261
  }
1217
  }
1262
  else
-
 
1263
ifai AIBOTWALKSEEK
-
 
1264
  state botwalkseekstate
1218
  else ifai AIBOTWALKSEEK state botwalkseekstate
1265
    else
-
 
1266
ifai AIBOTWALKHUNT
-
 
1267
  state botwalkhuntstate
1219
  else ifai AIBOTWALKHUNT state botwalkhuntstate
1268
    else
-
 
1269
ifai AIBOTWALKJUMP1
-
 
1270
  state botwalkjumpstate
1220
  else ifai AIBOTWALKJUMP1 state botwalkjumpstate
1271
    else
-
 
1272
ifai AIBOTWALKJUMP2
-
 
1273
  state botwalkjumpstate
1221
  else ifai AIBOTWALKJUMP2 state botwalkjumpstate
1274
    else
-
 
1275
ifai AIBOTWALKKICK
-
 
1276
  state botwalkkickstate
1222
  else ifai AIBOTWALKKICK state botwalkkickstate
1277
    else
-
 
1278
ifai AIBOTWALKSTRAIGHT
-
 
1279
  state botwalkstraightstate
1223
  else ifai AIBOTWALKSTRAIGHT state botwalkstraightstate
1280
    else
-
 
1281
ifai AIBOTWALKSTRJUMP1
-
 
1282
  state botwalkstraightjumpstate
1224
  else ifai AIBOTWALKSTRJUMP1 state botwalkstraightjumpstate
1283
    else
-
 
1284
ifai AIBOTWALKSTRJUMP2
-
 
1285
  state botwalkstraightjumpstate
1225
  else ifai AIBOTWALKSTRJUMP2 state botwalkstraightjumpstate
1286
    else
-
 
1287
ifai AIBOTLETFALL
-
 
1288
  state botletfallstate
1226
  else ifai AIBOTLETFALL state botletfallstate
1289
    else
-
 
1290
ifai AIBOTWALKSTRJUMP1S
-
 
1291
  state botjumpshootstate
1227
  else ifai AIBOTWALKSTRJUMP1S state botjumpshootstate
1292
    else
-
 
1293
ifai AIBOTWALKSTRJUMP2S
-
 
1294
  state botjumpshootstate
1228
  else ifai AIBOTWALKSTRJUMP2S state botjumpshootstate
1295
-
 
1296
-
 
1297
enda
1229
enda
1298
1230
1299
state botflydyingstate
1231
state botflydyingstate
1300
1232
  
1301
fall
1233
  fall
Line 1304... Line 1236...
1304
cstat 0
1236
  cstat 0
1305
1237
  
1306
ifactioncount 5
1238
  ifactioncount 5
1307
  {
1239
  {
1308
  action ABOTFLYDEAD
1240
    action ABOTFLYDEAD
-
 
1241
1309
    ifspritepal 21
1242
    ifspritepal 21
1310
      {
1243
    {
1311
        state miniboss
1244
      state miniboss
1312
        break
1245
      break
1313
      }
1246
    }
-
 
1247
    else
1314
  endofgame 52
1248
      endofgame 52
1315
  }
1249
  }
1316
1250
  
1317
ends
1251
ends
1318
1252
Line 1350... Line 1284...
1350
      else
1284
      else
1351
      ai AIBOTFLYDODGEUP
1285
        ai AIBOTFLYDODGEUP
1352
    }
1286
      }
1353
  }
1287
    }
1354
  else
1288
    else
1355
  {
-
 
1356
  ai AIBOTFLYSEEKUP
1289
      ai AIBOTFLYSEEKUP
1357
  }
-
 
1358
1290
  
1359
ifcount 10
1291
  ifcount 10
1360
  ai AIBOTFLYDOWN
1292
    ai AIBOTFLYDOWN
1361
1293
  
1362
ends
1294
ends
Line 1367... Line 1299...
1367
1299
  
1368
// spawn BLOOD
1300
  // spawn BLOOD
1369
1301
  
1370
ifdead
1302
  ifdead
1371
  {
1303
    {
-
 
1304
      ifspritepal 21
-
 
1305
      {
-
 
1306
        state miniboss
-
 
1307
        break
-
 
1308
      }
-
 
1309
      else
1372
  ifspritepal 21 { state miniboss break } else sound SANTA_DEAD
1310
        sound SANTA_DEAD
1373
1311
  
1374
  ifwasweapon FREEZEBLAST
1312
      ifwasweapon FREEZEBLAST
1375
    {
1313
      {
1376
    spritepal 1
1314
        spritepal 1
1377
    strength 0
1315
        strength 0
1378
    move 0
1316
        move 0
1379
    action ABOTFLYFROZEN
1317
        action ABOTFLYFROZEN
1380
    sound SOMETHINGFROZE
1318
        sound SOMETHINGFROZE
1381
    break
1319
        break
1382
    }
1320
      }
1383
    else
-
 
1384
  ifwasweapon GROWSPARK
1321
      else ifwasweapon GROWSPARK
1385
    {
1322
      {
1386
    cstat 0
1323
        cstat 0
1387
    sound ACTOR_GROWING
1324
        sound ACTOR_GROWING
1388
    ai AIBOTFLYGROW
1325
        ai AIBOTFLYGROW
1389
    break
1326
        break
1390
    }
1327
      }
1391
    else
-
 
1392
  ifwasweapon RADIUSEXPLOSION
1328
      else ifwasweapon RADIUSEXPLOSION
1393
    {
1329
      {
1394
//    state standard_pjibs
1330
       // state standard_pjibs
1395
//    state standard_pjibs
1331
       // state standard_pjibs
1396
//    state standard_pjibs
1332
       // state standard_pjibs
1397
    state standard_pjibs
1333
        state standard_pjibs
1398
    sound SQUISH2
1334
        sound SQUISH2
1399
    addkills 1
1335
        addkills 1
1400
    endofgame 52
1336
        endofgame 52
1401
    killit
1337
        killit
1402
    }
1338
      }
1403
    else
-
 
1404
  ifwasweapon RPG
1339
      else ifwasweapon RPG
1405
    {
1340
      {
1406
//    state standard_pjibs
1341
       // state standard_pjibs
1407
//    state standard_pjibs
1342
       // state standard_pjibs
1408
//    state standard_pjibs
1343
       // state standard_pjibs
1409
    state standard_pjibs
1344
        state standard_pjibs
Line 1411... Line 1346...
1411
    addkills 1
1346
        addkills 1
1412
    endofgame 52
1347
        endofgame 52
1413
    killit
1348
        killit
1414
    }
1349
      }
1415
    else
1350
      else
1416
    {
-
 
1417
    ai AIBOTFLYDYING
1351
       ai AIBOTFLYDYING
1418
    }
1352
   }
1419
-
 
1420
  }
-
 
1421
  else
1353
   else
1422
  {
1354
   {
1423
  state dudehurt
1355
     state dudehurt
1424
1356
   
1425
  ifwasweapon SHRINKSPARK
1357
     ifwasweapon SHRINKSPARK
1426
    {
1358
     {
1427
    ifai AIBOTFLYSTEROIDS
1359
       ifai AIBOTFLYSTEROIDS
1428
       {
-
 
1429
       }
1360
         nullop
1430
       else
1361
       else
1431
       {
1362
       {
1432
       ai AIBOTFLYSHRINK
1363
         ai AIBOTFLYSHRINK
1433
       break
1364
         break
1434
       }
1365
       }
Line 1444... Line 1375...
1444
  ai AIBOTFLYUP
1375
    ai AIBOTFLYUP
1445
  break
1376
    break
1446
  }
1377
  }
1447
1378
  
1448
ifp phigher
1379
  ifp phigher
1449
  {
-
 
1450
  }
1380
    nullop
1451
  else
1381
  else
1452
  {
1382
  {
1453
  ai AIBOTFLYSEEKDOWN
1383
    ai AIBOTFLYSEEKDOWN
1454
  break
1384
    break
1455
  }
1385
  }
Line 1464... Line 1394...
1464
  break
1394
    break
1465
  }
1395
  }
1466
  else
1396
  else
1467
  {
1397
  {
1468
  ifp phigher
1398
    ifp phigher
1469
    {
-
 
1470
    }
1399
      nullop
1471
    else
1400
    else
1472
    {
1401
    {
1473
    ai AIBOTLETFALL
1402
      ai AIBOTLETFALL
1474
    cactor SOBBOTWALK
1403
      cactor SOBBOTWALK
1475
    }
1404
    }
Line 1486... Line 1415...
1486
state botflydownstate
1415
state botflydownstate
1487
1416
  
1488
state botshootstate
1417
  state botshootstate
1489
1418
  
1490
ifrnd 16
1419
  ifrnd 16
1491
  {
-
 
1492
  ifp phigher
1420
    ifp phigher
1493
    {
1421
      {
1494
    ai AIBOTFLYUP
1422
      ai AIBOTFLYUP
1495
    break
1423
      break
1496
    }
1424
      }
1497
  }
-
 
1498
1425
  
1499
ifcansee
1426
  ifcansee
1500
  {
-
 
1501
  }
1427
    nullop
1502
  else
1428
  else
1503
  {
1429
  {
1504
  ai AIBOTFLYSTRAIGHT
1430
    ai AIBOTFLYSTRAIGHT
1505
  break
1431
    break
1506
  }
1432
  }
Line 1521... Line 1447...
1521
    break
1447
      break
1522
    }
1448
    }
1523
  }
1449
  }
1524
1450
1525
ifcansee
1451
  ifcansee
1526
  {
-
 
1527
  }
1452
    nullop
1528
  else
1453
  else
1529
  {
-
 
1530
  ai AIBOTFLYSTRAIGHT
1454
    ai AIBOTFLYSTRAIGHT
1531
  }
-
 
1532
1455
  
1533
ends
1456
ends
1534
1457
1535
state botflyupmomentstate
1458
state botflyupmomentstate
1536
1459
  
Line 1553... Line 1476...
1553
state botflyholdstate
1476
state botflyholdstate
1554
1477
  
1555
state botshootstate
1478
  state botshootstate
1556
1479
  
1557
ifcount 50
1480
  ifcount 50
1558
  {
-
 
1559
  ai AIBOTFLYUP
1481
    ai AIBOTFLYUP
1560
  }
-
 
1561
1482
  
1562
ends
1483
ends
1563
1484
1564
state botflystraightstate
1485
state botflystraightstate
1565
1486
  
1566
ifpdistg 20000
1487
  ifpdistg 20000
1567
  ai AIBOTFLYSEEKDOWN
1488
    ai AIBOTFLYSEEKDOWN
1568
1489
1569
ifcansee
1490
  ifcansee
1570
  {
-
 
1571
  ai AIBOTFLYDOWN
1491
    ai AIBOTFLYDOWN
1572
  }
-
 
1573
  else
1492
  else
1574
  {
1493
  {
1575
  ifrnd 128
1494
  ifrnd 128
1576
    ifnotmoving
1495
    ifnotmoving
1577
      ai AIFLYUPMOMENT
1496
      ai AIFLYUPMOMENT
Line 1583... Line 1502...
1583
1502
  
1584
soundonce DUKE_HARTBEAT
1503
  soundonce DUKE_HARTBEAT
1585
spawn FRAMEEFFECT1
1504
  spawn FRAMEEFFECT1
1586
1505
  
1587
ifcount 100
1506
  ifcount 100
1588
  {
-
 
1589
  ai AIBOTFLYUP
1507
    ai AIBOTFLYUP
1590
  }
-
 
1591
1508
  
1592
ifcount 34
1509
  ifcount 34
1593
  {
-
 
1594
  }
1510
    nullop
1595
  else
1511
  else
1596
  {
-
 
1597
  sizeto 42 36
1512
    sizeto 42 36
1598
  }
-
 
1599
1513
  
1600
ifhitweapon
1514
  ifhitweapon
1601
  {
1515
  {
1602
  state botflyhitstate
1516
    state botflyhitstate
1603
  break
1517
    break
Line 1610... Line 1524...
1610
useractor enemy SOBBOTFLY SOBBOTSTRENGTH ABOTFLY
1524
useractor enemy SOBBOTFLY SOBBOTSTRENGTH ABOTFLY
1611
state checksquished
1525
  state checksquished
1612
1526
  
1613
ifai 0
1527
  ifai 0
1614
  {
1528
  {
-
 
1529
    ifcansee
-
 
1530
      nullop
-
 
1531
    else
1615
  ifcansee nullop else { break }
1532
      break
-
 
1533
    ifspritepal 21
1616
  ifspritepal 21 strength MINIBOSSSTRENGTH
1534
      strength MINIBOSSSTRENGTH
1617
  sizeat 42 36
1535
    sizeat 42 36
1618
  cstat 257
1536
    cstat 257
1619
  sound INSERT_CLIP
1537
    sound INSERT_CLIP
1620
  ai AIBOTFLYSEEKDOWN
1538
    ai AIBOTFLYSEEKDOWN
1621
  spritepal 0
1539
    spritepal 0
1622
  break
1540
    break
1623
  }
1541
  }
1624
1542
1625
-
 
1626
fall
1543
  fall
1627
-
 
1628
sleeptime 300
1544
  sleeptime 300
1629
1545
  
1630
ifaction ABOTFLYDEAD
1546
  ifaction ABOTFLYDEAD
1631
  break
1547
    break
1632
  else
-
 
1633
ifaction ABOTFLYFROZEN
1548
  else ifaction ABOTFLYFROZEN
1634
  {
1549
  {
1635
  ifcount THAWTIME
1550
    ifcount THAWTIME
1636
    {
1551
    {
1637
    ai AIBOTFLYUP
1552
      ai AIBOTFLYUP
1638
    getlastpal
1553
      getlastpal
1639
    }
1554
    }
1640
    else
-
 
1641
    ifcount FROZENDRIPTIME
1555
    else ifcount FROZENDRIPTIME
1642
      {
1556
    {
1643
      ifactioncount 26
1557
      ifactioncount 26
1644
        {
1558
      {
1645
        spawn WATERDRIP
1559
        spawn WATERDRIP
1646
        resetactioncount
1560
        resetactioncount
Line 1664... Line 1578...
1664
    ifspritepal 21
1578
      ifspritepal 21
1665
      {
1579
      {
1666
        state miniboss
1580
        state miniboss
1667
        break
1581
        break
1668
      }
1582
      }
-
 
1583
      else
-
 
1584
      {
1669
    endofgame 52
1585
        endofgame 52
1670
    killit
1586
        killit
1671
    }
1587
      }
-
 
1588
    }
1672
1589
  
1673
  ifp pfacing
1590
    ifp pfacing
1674
    ifpdistl FROZENQUICKKICKDIST
1591
      ifpdistl FROZENQUICKKICKDIST
1675
      pkick
1592
        pkick
1676
  break
1593
     break
1677
  }
1594
  }
1678
  else
-
 
1679
ifai AIBOTFLYSTEROIDS
1595
  else ifai AIBOTFLYSTEROIDS
1680
  {
1596
  {
1681
  soundonce DUKE_JETPACK_IDLE
1597
    soundonce DUKE_JETPACK_IDLE
1682
  state steroidsfly
1598
    state steroidsfly
1683
  break
1599
    break
1684
  }
1600
  }
1685
  else
-
 
1686
ifai AIBOTFLYGROW
1601
  else ifai AIBOTFLYGROW
1687
  {
1602
  {
1688
  ifcount 32
1603
    ifcount 32
1689
    {
1604
    {
1690
    guts JIBS4 24
1605
      guts JIBS4 24
1691
    guts JIBS6 28
1606
      guts JIBS6 28
Line 1698... Line 1613...
1698
    ifspritepal 21
1613
      ifspritepal 21
1699
      {
1614
      {
1700
        state miniboss
1615
        state miniboss
1701
        break
1616
        break
1702
      }
1617
      }
-
 
1618
      else
-
 
1619
      {
1703
    endofgame 52
1620
        endofgame 52
1704
    killit
1621
        killit
1705
    }
1622
      }
-
 
1623
    }
1706
    else
1624
    else
1707
    {
1625
    {
1708
    sizeto MAXXSTRETCH MAXYSTRETCH
1626
      sizeto MAXXSTRETCH MAXYSTRETCH
1709
    break
1627
      break
1710
    }
1628
    }
1711
  break
1629
    break
1712
  }
1630
  }
1713
  else
-
 
1714
ifai AIBOTFLYSHRINK
1631
  else ifai AIBOTFLYSHRINK
1715
  {
1632
  {
1716
  ifcount SHRUNKDONECOUNT
1633
    ifcount SHRUNKDONECOUNT
1717
    ai AIBOTFLYUP
1634
      ai AIBOTFLYUP
1718
    else
-
 
1719
    ifcount SHRUNKCOUNT
1635
    else ifcount SHRUNKCOUNT
1720
      {
1636
    {
1721
      spawn FRAMEEFFECT1
1637
      spawn FRAMEEFFECT1
1722
      sizeto 42 36
1638
      sizeto 42 36
1723
      }
1639
    }
1724
      else
1640
    else
1725
      {
1641
    {
1726
      ifcount 31
1642
      ifcount 31
1727
        nullop
1643
        nullop
1728
        else
-
 
1729
        {
-
 
1730
        ifcount 30
1644
      else ifcount 30
1731
          {
-
 
1732
          ifrnd 255
1645
        ifrnd 255
1733
            {
1646
          {
1734
            sound DUKE_TAKEPILLS
1647
            sound DUKE_TAKEPILLS
1735
            ai AIBOTFLYSTEROIDS
1648
            ai AIBOTFLYSTEROIDS
1736
            break
1649
            break
1737
            }
1650
          }
1738
          }
-
 
1739
        }
1651
  
1740
      ifcount 32
1652
      ifcount 32
1741
        {
1653
      {
1742
-
 
1743
        ifpdistl SQUISHABLEDISTANCE
1654
        ifpdistl SQUISHABLEDISTANCE
1744
          {
1655
        {
1745
//          state standard_pjibs
1656
         // state standard_pjibs
1746
//          state standard_pjibs
1657
         // state standard_pjibs
1747
//          state standard_pjibs
1658
         // state standard_pjibs
1748
          state standard_pjibs
1659
          state standard_pjibs
1749
          sound SQUISH2
1660
          sound SQUISH2
1750
          spawn BLOODPOOL
1661
          spawn BLOODPOOL
1751
          pkick
1662
          pstomp
1752
//          state headhitstate
-
 
1753
//          state headhitstate
-
 
1754
//          state headhitstate
-
 
1755
          state headhitstate
-
 
1756
    ifspritepal 21
1663
          ifspritepal 21
1757
      {
1664
          {
1758
        state miniboss
1665
            state miniboss
1759
        break
1666
            break
1760
      }
1667
          }
Line 1762... Line 1669...
1762
      {
1669
          {
1763
          ifrnd 128
1670
            ifrnd 128
1764
              sound SANTA_DEAD
1671
              sound SANTA_DEAD
1765
              else
1672
            else
1766
              sound SANTA_TRASH9
1673
              sound SANTA_TRASH9
1767
      }
1674
     
1768
          endofgame 52
1675
            endofgame 52
1769
          killit
1676
            killit
1770
          }
1677
          }
1771
        }
1678
        }
-
 
1679
      }
1772
        else
1680
      else
1773
        {
1681
      {
1774
        sizeto MINXSTRETCH MINYSTRETCH
1682
        sizeto MINXSTRETCH MINYSTRETCH
1775
        spawn FRAMEEFFECT1
1683
        spawn FRAMEEFFECT1
1776
        }
1684
      }
Line 1790... Line 1698...
1790
  state botflyhitstate
1698
    state botflyhitstate
1791
1699
  
1792
ifrnd 2 operate
1700
  ifrnd 2 operate
1793
1701
  
1794
ifp pshrunk
1702
  ifp pshrunk
1795
  {
-
 
1796
  state stomphisfreakingass
1703
    state stomphisfreakingass
1797
  }
-
 
1798
1704
  
1799
ifrnd 25
1705
  ifrnd 25
1800
  {
1706
  {
1801
  ifp phigher
1707
    ifp phigher
1802
    {
-
 
1803
    }
-
 
1804
    else
1708
      nullop
1805
    {
-
 
1806
    ifp ponground
1709
    else ifp ponground
1807
      {
-
 
1808
      iffloordistl 200
1710
      iffloordistl 200
1809
        {
1711
      {
1810
        sound DUKE_JETPACK_OFF
1712
        sound DUKE_JETPACK_OFF
-
 
1713
        iffloordistl 100
-
 
1714
          ai AIWALKFALL
-
 
1715
        else
1811
        iffloordistl 100 ai AIWALKFALL else ai AIWALKFALLHARD
1716
          ai AIWALKFALLHARD
1812
        cactor SOBBOTWALK
1717
        cactor SOBBOTWALK
1813
        }
1718
      }
1814
      }
1719
  }
1815
    }
-
 
1816
  }
-
 
1817
1720
  
1818
ifai AIFLYWAIT
1721
  ifai AIFLYWAIT
1819
  {
1722
  {
1820
  move 0
1723
    move 0
1821
  sound DUKE_JETPACK_ON
1724
    sound DUKE_JETPACK_ON
1822
  ai AIBOTFLYSEEKDOWN
1725
    ai AIBOTFLYSEEKDOWN
1823
  }
1726
  }
1824
1727
  
1825
ifai AIBOTFLYSEEKUP
-
 
1826
  state botflyseekupstate
1728
       ifai AIBOTFLYSEEKUP state botflyseekupstate
1827
    else
-
 
1828
ifai AIBOTFLYSEEKDOWN
-
 
1829
  state botflyseekdownstate
1729
  else ifai AIBOTFLYSEEKDOWN state botflyseekdownstate
1830
    else
-
 
1831
ifai AIBOTFLYDOWN
-
 
1832
  state botflydownstate
1730
  else ifai AIBOTFLYDOWN state botflydownstate
1833
    else
-
 
1834
ifai AIBOTFLYUP
-
 
1835
  state botflyupstate
1731
  else ifai AIBOTFLYUP state botflyupstate
1836
    else
-
 
1837
ifai AIBOTFLYDODGEUP
-
 
1838
  state botflydodgestate
1732
  else ifai AIBOTFLYDODGEUP state botflydodgestate
1839
    else
-
 
1840
ifai AIBOTFLYDODGEDOWN
-
 
1841
  state botflydodgestate
1733
  else ifai AIBOTFLYDODGEDOWN state botflydodgestate
1842
    else
-
 
1843
ifai AIFLYUPMOMENT
-
 
1844
  state botflyupmomentstate
1734
  else ifai AIFLYUPMOMENT state botflyupmomentstate
1845
    else
-
 
1846
ifai AIFLYUPHOLD
-
 
1847
  state botflyholdstate
1735
  else ifai AIFLYUPHOLD state botflyholdstate
1848
    else
-
 
1849
ifai AIBOTFLYSTRAIGHT
-
 
1850
  state botflystraightstate
1736
  else ifai AIBOTFLYSTRAIGHT state botflystraightstate
1851
-
 
1852
break
-
 
1853
enda
1737
enda
1854
1738
1855
1739
1856
1740
1857
action  AELFUZIWALK    0 4 5 1 30
1741
action  AELFUZIWALK    0 4 5 1 30
Line 1886... Line 1770...
1886
ifcansee
1770
  ifcansee
1887
  {
1771
  {
1888
  ifp pdead break
1772
    ifp pdead break
1889
1773
  
1890
  ifpdistl 15000
1774
    ifpdistl 15000
1891
    {
-
 
1892
    ifrnd 16
1775
      ifrnd 16
1893
      {
-
 
1894
      ai AIELFUZIHUNTING
1776
        ai AIELFUZIHUNTING
1895
      }
1777
  }
1896
    }
-
 
1897
  }
-
 
1898
1778
  
1899
ends
1779
ends
1900
1780
1901
state elfuzihuntstate
1781
state elfuzihuntstate
1902
1782
  
1903
ifp pdead ai AIELFUZISEEKING
1783
  ifp pdead ai AIELFUZISEEKING
1904
1784
  
1905
-
 
1906
ifcansee
1785
  ifcansee
1907
  {
1786
  {
1908
  ifpdistl 2000
1787
    ifpdistl 2000
1909
    {
1788
    {
1910
    ai AIELFUZISHOOTING
1789
      ai AIELFUZISHOOTING
1911
    break
1790
      break
1912
    }
1791
    }
-
 
1792
    ifrnd 64
1913
  ifrnd 64 ifnotmoving
1793
      ifnotmoving
1914
    {
1794
      {
1915
    ai AIELFUZIJUMPING
1795
        ai AIELFUZIJUMPING
1916
    break
1796
        break
1917
    }
1797
      }
1918
1798
1919
  ifrnd 7
1799
    ifrnd 7
1920
    ifpdistl 8192
1800
      ifpdistl 8192
1921
      {
-
 
1922
      ai AIELFUZISHOOTING
1801
        ai AIELFUZISHOOTING
1923
      }
1802
  }
1924
  }
-
 
1925
  else
1803
  else
1926
  {
1804
    ifrnd 64
1927
  ifrnd 64 ai AIELFUZIIQ
1805
      ai AIELFUZIIQ
1928
  }
-
 
1929
1806
  
1930
ends
1807
ends
1931
1808
1932
state elfuziiqstate
1809
state elfuziiqstate
1933
1810
  
1934
ifcansee
1811
  ifcansee
1935
  {
-
 
1936
  ai AIELFUZIHUNTING
1812
    ai AIELFUZIHUNTING
1937
  }
-
 
1938
  else
1813
  else
1939
  {
1814
  {
1940
  ifrnd 16
1815
    ifrnd 16
1941
    ifnotmoving
1816
      ifnotmoving
1942
      {
-
 
1943
      ai AIELFUZISEEKING
1817
        ai AIELFUZISEEKING
1944
      }
1818
  }
1945
  }
-
 
1946
1819
  
1947
ends
1820
ends
1948
1821
1949
state elfuzishootstate
1822
state elfuzishootstate
1950
1823
  
Line 1957... Line 1830...
1957
    ifspritepal 0
1830
      ifspritepal 0
1958
    {
1831
      {
1959
    sound CHAINGUN_FIRE
1832
        sound CHAINGUN_FIRE
1960
    shoot CHAINGUN
1833
        shoot CHAINGUN
1961
    }
1834
      }
1962
    else {
-
 
1963
    ifrnd 80
1835
      else ifrnd 80
1964
      {
1836
      {
1965
      sound SHRINKER_FIRE
1837
        sound SHRINKER_FIRE
1966
      shoot SHRINKER
1838
        shoot SHRINKER
1967
      } }
1839
      }
1968
    resetactioncount
1840
      resetactioncount
1969
    }
1841
    }
1970
  ifrnd 4
1842
  ifrnd 4
1971
    ai AIELFUZIHUNTING
1843
    ai AIELFUZIHUNTING
1972
  }
1844
  }
1973
  else
1845
  else 
1974
  {
-
 
1975
  ai AIELFUZIIQ
1846
    ai AIELFUZIIQ
1976
  }
-
 
1977
1847
  
1978
ends
1848
ends
1979
1849
1980
state elfuzijumpingstate
1850
state elfuzijumpingstate
1981
1851
  
Line 1994... Line 1864...
1994
action NONEACTION 0 1 1 1 1
1864
action NONEACTION 0 1 1 1 1
1995
1865
1996
move forwardspeed 1500
1866
move forwardspeed 1500
1997
// ai AIMOVEFORWARD NONEACTION forwardspeed faceplayer
1867
// ai AIMOVEFORWARD NONEACTION forwardspeed faceplayer
1998
1868
1999
useractor notenemy SPECBLOOD 0 // Hendricks266 fixed this actor. Before this fix, this line said "useractor SPECBLOOD 0", and the code was all messed up.
1869
useractor notenemy SPECBLOOD 0 // Hendricks266 fixed this actor. Before this fix, this line said "useractor SPECBLOOD 0", and the code was shit.
2000
  cstat 32768
1870
  cstat 32768
2001
  // sizeat 42 36
1871
  // sizeat 42 36
2002
  // sizeat 32 27
1872
  // sizeat 32 27
2003
  sizeat 1 1
1873
  sizeat 1 1
2004
  // ai AIMOVEFORWARD
1874
  // ai AIMOVEFORWARD
Line 2013... Line 1883...
2013
state random_wall_jibs
1883
  state random_wall_jibs
2014
1884
  
2015
ifdead
1885
  ifdead
2016
  {
1886
  {
2017
  ifrnd 128
1887
    ifrnd 128
2018
    {
-
 
2019
    spawn XMASPRESENT2
1888
      spawn XMASPRESENT2
2020
    }
-
 
2021
  ifwasweapon GROWSPARK
1889
    ifwasweapon GROWSPARK
2022
    {
1890
    {
2023
    sound ACTOR_GROWING
1891
      sound ACTOR_GROWING
2024
    ai AIELFUZIGROW
1892
      ai AIELFUZIGROW
2025
    break
1893
      break
Line 2043... Line 1911...
2043
//    state standard_jibs
1911
     // state standard_jibs
2044
//    state standard_jibs
1912
     // state standard_jibs
2045
    state standard_jibs
1913
      state standard_jibs
2046
    killit
1914
      killit
2047
    }
1915
    }
2048
    else
-
 
2049
  ifwasweapon RPG
1916
    else ifwasweapon RPG
2050
    {
1917
    {
2051
    sound SQUISH2
1918
      sound SQUISH2
2052
//    state standard_jibs
1919
     // state standard_jibs
2053
//    state standard_jibs
1920
     // state standard_jibs
2054
    state standard_jibs
1921
      state standard_jibs
2055
    killit
1922
      killit
2056
    }
1923
    }
2057
    else
1924
    else
2058
    ai AIELFUZIDYING
1925
      ai AIELFUZIDYING
2059
-
 
2060
  }
1926
  }
2061
  else
1927
  else
2062
  {
1928
  {
2063
//  state random_wall_jibs
1929
   // state random_wall_jibs
2064
  ifwasweapon SHRINKSPARK
1930
    ifwasweapon SHRINKSPARK
2065
    {
1931
    {
2066
    sound ACTOR_SHRINKING
1932
      sound ACTOR_SHRINKING
2067
    ai AIELFUZISHRINKING
1933
      ai AIELFUZISHRINKING
2068
    }
1934
    }
2069
    else
-
 
2070
    ifwasweapon GROWSPARK
1935
    else ifwasweapon GROWSPARK
2071
      sound EXPANDERHIT
1936
      sound EXPANDERHIT
2072
      else
1937
    else
2073
      ifrnd 32
1938
      ifrnd 32
2074
        ai AIELFUZISHOOTING
1939
        ai AIELFUZISHOOTING
2075
  }
1940
  }
Line 2079... Line 1944...
2079
1944
  
2080
ifcount SHRUNKDONECOUNT
1945
  ifcount SHRUNKDONECOUNT
2081
  ai AIELFUZISEEKING
1946
    ai AIELFUZISEEKING
2082
  else
1947
  else
2083
  ifcount SHRUNKCOUNT
1948
  ifcount SHRUNKCOUNT
2084
//    sizeto 48 40
1949
    sizeto 32 27 // sizeto 48 40
2085
      sizeto 32 27
-
 
2086
    else
1950
  else
2087
    state genericshrunkcode
1951
    state genericshrunkcode
2088
1952
  
2089
ends
1953
ends
2090
1954
Line 2109... Line 1973...
2109
1973
  
2110
state checksquished
1974
  state checksquished
2111
1975
  
2112
ifaction AELFUZIDEAD
1976
  ifaction AELFUZIDEAD
2113
  {
1977
  {
2114
  ifrespawn
-
 
2115
    ifcount RESPAWNACTORTIME
-
 
2116
      {
-
 
2117
      spawn TRANSPORTERSTAR
-
 
2118
      cstat 257
-
 
2119
      strength ELFUZISTRENGTH
-
 
2120
      ai AIELFUZISEEKING
-
 
2121
      }
-
 
2122
      else
-
 
2123
      {
-
 
2124
      strength 0
1978
    strength 0
2125
      ifhitweapon
1979
    ifhitweapon
2126
        ifwasweapon RADIUSEXPLOSION
1980
      ifwasweapon RADIUSEXPLOSION
2127
          {
1981
      {
2128
          sound SQUISH2
1982
        sound SQUISH2
2129
//          state standard_jibs
1983
       // state standard_jibs
2130
//          state standard_jibs
1984
       // state standard_jibs
2131
          state standard_jibs
1985
        state standard_jibs
2132
          killit
1986
        killit
2133
          }
1987
      }
-
 
1988
  
-
 
1989
    ifrespawn
-
 
1990
      ifcount RESPAWNACTORTIME
2134
      break
1991
      {
-
 
1992
        spawn TRANSPORTERSTAR
-
 
1993
        cstat 257
-
 
1994
        strength ELFUZISTRENGTH
-
 
1995
        ai AIELFUZISEEKING
2135
      }
1996
      }
2136
  break
1997
    break
2137
  }
1998
  }
2138
  else
-
 
2139
ifaction AELFUZIFROZEN
1999
  else ifaction AELFUZIFROZEN
2140
  {
2000
  {
2141
  ifcount THAWTIME
2001
    ifcount THAWTIME
2142
    {
2002
    {
2143
    ai AIELFUZISEEKING
2003
      ai AIELFUZISEEKING
2144
    getlastpal
2004
      getlastpal
2145
    }
2005
    }
2146
    else
-
 
2147
    ifcount FROZENDRIPTIME
2006
    else ifcount FROZENDRIPTIME
2148
      ifrnd 8
2007
      ifrnd 8
2149
        spawn WATERDRIP
2008
        spawn WATERDRIP
2150
2009
  
2151
  ifhitweapon
2010
    ifhitweapon
2152
    {
2011
    {
Line 2164... Line 2023...
2164
  ifp pfacing
2023
    ifp pfacing
2165
    ifpdistl FROZENQUICKKICKDIST
2024
      ifpdistl FROZENQUICKKICKDIST
2166
      pkick
2025
        pkick
2167
  break
2026
    break
2168
  }
2027
  }
2169
  else
-
 
2170
  ifai AIELFUZIDYING
2028
  else ifai AIELFUZIDYING
2171
    state elfuzidyingstate
2029
    state elfuzidyingstate
2172
2030
-
 
2031
  ifai AIELFUZISHRINKING
-
 
2032
    nullop
-
 
2033
  else ifai AIELFUZIGROW
-
 
2034
    nullop
-
 
2035
  else ifhitweapon
2173
ifai AIELFUZISHRINKING nullop else { ifai AIELFUZIGROW nullop else { ifhitweapon state elfuzihitstate } }
2036
    state elfuzihitstate
2174
2037
2175
ifai 0
2038
  ifai 0
2176
  {
2039
  {
2177
  ai AIELFUZISEEKING
2040
    ai AIELFUZISEEKING
2178
  cstat 257
2041
    cstat 257
2179
  // clipdist 32
2042
  // clipdist 32
2180
//  sizeat 42 36
2043
    sizeat 32 27 // sizeat 42 36
2181
  sizeat 32 27
2044
    ifspritepal 0
2182
  ifspritepal 0 nullop else
2045
      nullop
-
 
2046
    else
2183
    {
2047
    {
2184
  ifrnd 72
2048
      ifrnd 72
2185
    strength ELFUZIALTSTR
2049
        strength ELFUZIALTSTR
2186
  else
2050
      else
2187
    strength ELFUZISTRENGTH
2051
        strength ELFUZISTRENGTH
2188
    }
2052
    }
2189
  }
2053
  }
2190
  else
-
 
2191
-
 
2192
      ifai AIELFUZISEEKING state elfuziseekstate
2054
 else ifai AIELFUZISEEKING state elfuziseekstate
2193
 else ifai AIELFUZIHUNTING state elfuzihuntstate
2055
 else ifai AIELFUZIHUNTING state elfuzihuntstate
2194
 else ifai AIELFUZIIQ state elfuziiqstate
2056
 else ifai AIELFUZIIQ state elfuziiqstate
2195
 else ifai AIELFUZISHOOTING state elfuzishootstate
2057
 else ifai AIELFUZISHOOTING state elfuzishootstate
2196
 else ifai AIELFUZIJUMPING state elfuzijumpingstate
2058
 else ifai AIELFUZIJUMPING state elfuzijumpingstate
2197
 else ifai AIELFUZIFALLING state elfuzifallingstate
2059
 else ifai AIELFUZIFALLING state elfuzifallingstate
2198
 else ifai AIELFUZIGROW state genericgrowcode
2060
 else ifai AIELFUZIGROW state genericgrowcode
-
 
2061
2199
      ifai AIELFUZISHRINKING state elfuzishrinkstate
2062
      ifai AIELFUZISHRINKING state elfuzishrinkstate
2200
enda
2063
enda
2201
2064
2202
useractor enemystayput ELFUZISTAYPUT ELFUZISTRENGTH
2065
useractor enemystayput ELFUZISTAYPUT ELFUZISTRENGTH
2203
   cstat 257
2066
  cstat 257
Line 2232... Line 2095...
2232
ifcansee
2095
  ifcansee
2233
  {
2096
  {
2234
  ifp pdead break
2097
    ifp pdead break
2235
2098
  
2236
  ifpdistl 15000
2099
    ifpdistl 15000
2237
    {
-
 
2238
    ifrnd 16
2100
      ifrnd 16
2239
      {
-
 
2240
      ai AIELFGUNHUNTING
2101
        ai AIELFGUNHUNTING
2241
      }
2102
  }
2242
    }
-
 
2243
  }
-
 
2244
2103
  
2245
ends
2104
ends
2246
2105
2247
state elfgunhuntstate
2106
state elfgunhuntstate
2248
   ifp pdead ai AIELFGUNSEEKING
2107
   ifp pdead ai AIELFGUNSEEKING
Line 2256... Line 2115...
2256
         }
2115
     }
2257
     }
2116
   }
2258
2117
2259
  ifrnd 7 
2118
  ifrnd 7 
2260
    {
2119
    {
-
 
2120
      ifpdistl 8192
2261
      ifpdistl 8192 ai AIELFGUNSHOOTING
2121
        ai AIELFGUNSHOOTING
2262
    }
2122
    }
-
 
2123
  else ifrnd 48
2263
  else ifrnd 48 ai AIELFGUNIQ
2124
    ai AIELFGUNIQ
2264
ends
2125
ends
2265
2126
2266
state elfguniqstate
2127
state elfguniqstate
-
 
2128
  ifcansee
2267
   ifcansee ai AIELFGUNHUNTING
2129
    ai AIELFGUNHUNTING
2268
  else
2130
  else
2269
  {
-
 
2270
  ifrnd 16
2131
    ifrnd 16
2271
    ifnotmoving
2132
      ifnotmoving
2272
      ai AIELFGUNSEEKING
2133
        ai AIELFGUNSEEKING
2273
  }
-
 
2274
ends
2134
ends
2275
2135
2276
state elfgunshootstate
2136
state elfgunshootstate
2277
2137
  
-
 
2138
  ifp pdead
-
 
2139
    ai AIELFGUNSEEKING
-
 
2140
  
2278
ifcansee
2141
  ifcansee
2279
  {
2142
  {
2280
  ifp pdead ai AIELFGUNSEEKING
-
 
2281
-
 
2282
  ifcount 20
2143
    ifcanshoottarget
2283
    {
2144
    {
2284
    ifcount 29
2145
      ifcount 29
2285
      nullop
2146
        nullop
2286
      else
-
 
2287
      {
-
 
2288
      ifcount 28
2147
      else ifcount 28
2289
        {
-
 
2290
        sound SHOTGUN_COCK
2148
        sound SHOTGUN_COCK
2291
        }
2149
      else ifcount 20
2292
      }
2150
        nullop
2293
    }
-
 
2294
    else
-
 
2295
    {
-
 
2296
    ifcount 19
2151
      else ifcount 19
2297
      {
2152
      {
2298
      sound SHOTGUN_FIRE
2153
        sound SHOTGUN_FIRE
2299
      shoot SHOTGUN
2154
        shoot SHOTGUN
2300
      shoot SHOTGUN
2155
        shoot SHOTGUN
2301
      shoot SHOTGUN
2156
        shoot SHOTGUN
2302
      shoot SHOTGUN
2157
        shoot SHOTGUN
2303
      shoot SHOTGUN
2158
        shoot SHOTGUN
2304
      }
2159
      }
2305
    }
2160
    }
-
 
2161
  }
-
 
2162
  else
-
 
2163
    ai AIELFGUNIQ
2306
2164
   
2307
  ifactioncount 3
2165
  ifactioncount 3
2308
    {
2166
  {
2309
    resetcount
2167
    resetcount
2310
    resetactioncount
2168
    resetactioncount
2311
    ifrnd 64
2169
    ifrnd 64
2312
      ai AIELFGUNHUNTING
2170
      ai AIELFGUNHUNTING
2313
    }
2171
  }
2314
  }
-
 
2315
  else ai AIELFGUNIQ
-
 
2316
2172
  
2317
ends
2173
ends
2318
2174
2319
state elfgunhitstate
2175
state elfgunhitstate
2320
   spawn BLOOD
2176
  spawn BLOOD
2321
2177
  
2322
state random_wall_jibs
2178
  state random_wall_jibs
2323
2179
  
2324
ifdead
2180
  ifdead
2325
  {
2181
  {
2326
  state random_wall_jibs
-
 
2327
  ifrnd 128
2182
    ifrnd 128
2328
    {
-
 
2329
    spawn XMASPRESENT
2183
      spawn XMASPRESENT
2330
    }
-
 
2331
  ifwasweapon GROWSPARK
2184
    ifwasweapon GROWSPARK
2332
    {
2185
    {
2333
    sound ACTOR_GROWING
2186
      sound ACTOR_GROWING
2334
    ai AIELFGUNGROW
2187
      ai AIELFGUNGROW
2335
    break
2188
      break
Line 2352... Line 2205...
2352
//    state standard_jibs
2205
     // state standard_jibs
2353
//    state standard_jibs
2206
     // state standard_jibs
2354
    state standard_jibs
2207
      state standard_jibs
2355
    killit
2208
      killit
2356
    }
2209
    }
2357
    else
-
 
2358
  ifwasweapon RPG
2210
    else ifwasweapon RPG
2359
    {
2211
    {
2360
    sound SQUISH2
2212
      sound SQUISH2
2361
//    state standard_jibs
2213
     // state standard_jibs
2362
//    state standard_jibs
2214
     // state standard_jibs
2363
    state standard_jibs
2215
      state standard_jibs
Line 2373... Line 2225...
2373
  ifwasweapon SHRINKSPARK
2225
    ifwasweapon SHRINKSPARK
2374
    {
2226
    {
2375
    sound ACTOR_SHRINKING
2227
      sound ACTOR_SHRINKING
2376
    ai AIELFGUNSHRINKING
2228
      ai AIELFGUNSHRINKING
2377
    }
2229
    }
2378
    else
-
 
2379
    ifwasweapon GROWSPARK
2230
    else ifwasweapon GROWSPARK
2380
      sound EXPANDERHIT
2231
      sound EXPANDERHIT
2381
      else
2232
    else
2382
      ifrnd 32
2233
      ifrnd 32
2383
        ai AIELFGUNSHOOTING
2234
        ai AIELFGUNSHOOTING
2384
  }
2235
  }
Line 2386... Line 2237...
2386
2237
2387
state elfgunshrinkstate
2238
state elfgunshrinkstate
2388
2239
  
2389
ifcount SHRUNKDONECOUNT
2240
  ifcount SHRUNKDONECOUNT
2390
  ai AIELFGUNSEEKING
2241
    ai AIELFGUNSEEKING
2391
  else
-
 
2392
  ifcount SHRUNKCOUNT
2242
  else ifcount SHRUNKCOUNT
2393
//    sizeto 48 40
2243
    sizeto 32 27 // sizeto 48 40
2394
    sizeto 32 27
-
 
2395
    else
2244
  else
2396
    state genericshrunkcode
2245
    state genericshrunkcode
2397
2246
  
2398
ends
2247
ends
2399
2248
Line 2441... Line 2290...
2441
          }
2290
          }
2442
      break
2291
        break
2443
      }
2292
      }
2444
  break
2293
    break
2445
  }
2294
  }
2446
  else
-
 
2447
ifaction AELFGUNFROZEN
2295
  else ifaction AELFGUNFROZEN
2448
  {
2296
  {
2449
  ifcount THAWTIME
2297
    ifcount THAWTIME
2450
    {
2298
    {
2451
    ai AIELFGUNSEEKING
2299
      ai AIELFGUNSEEKING
2452
    getlastpal
2300
      getlastpal
Line 2463... Line 2311...
2463
      strength 0
2311
        strength 0
2464
      break
2312
        break
2465
      }
2313
      }
2466
    addkills 1
2314
      addkills 1
2467
    lotsofglass 30
2315
      lotsofglass 30
-
 
2316
      ifrnd 84
2468
    ifrnd 84 spawn BLOODPOOL
2317
        spawn BLOODPOOL
2469
    sound GLASS_BREAKING
2318
      sound GLASS_BREAKING
2470
    killit
2319
      killit
2471
    }
2320
    }
2472
  ifp pfacing
2321
    ifp pfacing
2473
    ifpdistl FROZENQUICKKICKDIST
2322
      ifpdistl FROZENQUICKKICKDIST
Line 2476... Line 2325...
2476
  }
2325
  }
2477
  else
2326
  else
2478
  ifai AIELFGUNDYING
2327
    ifai AIELFGUNDYING
2479
    state elfgundyingstate
2328
      state elfgundyingstate
2480
2329
-
 
2330
  ifai AIELFGUNSHRINKING
-
 
2331
    nullop
-
 
2332
  else ifai AIELFGUNGROW
-
 
2333
    nullop
-
 
2334
  else ifhitweapon
2481
ifai AIELFGUNSHRINKING nullop else { ifai AIELFGUNGROW nullop else { ifhitweapon { state elfgunhitstate } } }
2335
    state elfgunhitstate
2482
2336
2483
ifai 0
2337
  ifai 0
2484
  {
2338
  {
2485
  ai AIELFGUNSEEKING
2339
    ai AIELFGUNSEEKING
2486
  cstat 257
2340
    cstat 257
2487
  // clipdist 32
2341
   // clipdist 32
2488
//  sizeat 42 36
2342
    sizeat 32 27 // sizeat 42 36
2489
  sizeat 32 27
-
 
2490
  strength ELFGUNSTRENGTH
2343
    strength ELFGUNSTRENGTH
2491
  }
2344
  }
-
 
2345
  else ifai AIELFGUNSEEKING state elfgunseekstate
-
 
2346
  else ifai AIELFGUNHUNTING state elfgunhuntstate
2492
  else
2347
  else ifai AIELFGUNIQ state elfguniqstate
-
 
2348
  else ifai AIELFGUNSHOOTING state elfgunshootstate
-
 
2349
  else ifai AIELFGUNGROW state genericgrowcode
2493
2350
2494
ifai AIELFGUNSEEKING { state elfgunseekstate } else
-
 
2495
ifai AIELFGUNHUNTING { state elfgunhuntstate } else
-
 
2496
ifai AIELFGUNIQ { state elfguniqstate } else
-
 
2497
ifai AIELFGUNSHOOTING { state elfgunshootstate } else
-
 
2498
ifai AIELFGUNGROW { state genericgrowcode }
-
 
2499
ifai AIELFGUNSHRINKING { state elfgunshrinkstate }
2351
  ifai AIELFGUNSHRINKING state elfgunshrinkstate
2500
2352
  
2501
break
-
 
2502
enda
2353
enda
2503
2354
2504
useractor enemystayput ELFGUNSTAYPUT ELFGUNSTRENGTH
2355
useractor enemystayput ELFGUNSTAYPUT ELFGUNSTRENGTH
2505
ai AIELFGUNSEEKING
2356
  ai AIELFGUNSEEKING
2506
cstat 257
2357
  cstat 257
Line 2522... Line 2373...
2522
    ifcount 6
2373
    ifcount 6
2523
      ifpdistl RETRIEVEDISTANCE
2374
      ifpdistl RETRIEVEDISTANCE
2524
        ifcanseetarget
2375
        ifcanseetarget
2525
          {
2376
          {
2526
            sound RIP_PAPER
2377
            sound RIP_PAPER
-
 
2378
            ifvarl temp 1
-
 
2379
            {
-
 
2380
              ifrnd 128
-
 
2381
                spawn SHIELD
-
 
2382
              else
-
 
2383
                spawn SIXPAK
-
 
2384
            }
-
 
2385
            else
2527
            ifvarl temp 1 { ifrnd 128 spawn SHIELD else spawn SIXPAK } else espawnvar temp
2386
              espawnvar temp // spawnvar // spawns the lotag, collected during EVENT_LOADACTOR
2528
            killit
2387
            killit
2529
          }
2388
          }
2530
ends
2389
ends
2531
2390
2532
state present2
2391
state present2
Line 2535... Line 2394...
2535
    ifcount 6
2394
    ifcount 6
2536
      ifpdistl RETRIEVEDISTANCE
2395
      ifpdistl RETRIEVEDISTANCE
2537
        ifcanseetarget
2396
        ifcanseetarget
2538
          {
2397
          {
2539
            sound RIP_PAPER
2398
            sound RIP_PAPER
-
 
2399
            ifvarl temp 1
-
 
2400
            {
-
 
2401
              ifrnd 128
-
 
2402
                spawn CHAINGUNSPRITE
-
 
2403
              else
-
 
2404
                spawn SHOTGUNSPRITE
-
 
2405
            }
-
 
2406
            else
2540
            ifvarl temp 1 { ifrnd 128 spawn CHAINGUNSPRITE else spawn SHOTGUNSPRITE } else espawnvar temp
2407
              espawnvar temp // spawnvar // spawns the lotag, collected during EVENT_LOADACTOR
2541
            killit
2408
            killit
2542
          }
2409
          }
2543
ends
2410
ends
2544
2411
2545
2412
Line 2566... Line 2433...
2566
  ifai 0 ai MAKENOISE
2433
  ifai 0 ai MAKENOISE
2567
2434
2568
  ifspritepal 21
2435
  ifspritepal 21
2569
    {
2436
    {
2570
      ifhitweapon
2437
      ifhitweapon
2571
        {
-
 
2572
          ifcount 24
2438
        ifcount 24
2573
            {
2439
        {
2574
              strength 999
2440
          strength 999
-
 
2441
          ifrnd 128
-
 
2442
            sound MOVIE2
-
 
2443
          else
2575
              ifrnd 128 sound MOVIE2 else sound MOVIE3
2444
            sound MOVIE3
2576
              resetcount
2445
          resetcount
2577
            }
2446
        }
2578
        }
2447
    }
2579
    }
-
 
2580
  else
2448
  else
2581
   {
-
 
2582
     hitradius 4096 1 1 1 1
2449
    hitradius 4096 1 1 1 1
2583
   }
-
 
2584
enda
2450
enda
2585
2451
2586
useractor notenemy MALEGEEK 20
2452
useractor notenemy MALEGEEK 20
2587
 ifhitweapon
2453
  ifhitweapon
2588
   {
2454
  {
Line 2597... Line 2463...
2597
         sound MALECAROL_DEAD
2463
      sound MALECAROL_DEAD
2598
         globalsound MOUSEANNOY
2464
      globalsound MOUSEANNOY
2599
         killit
2465
      killit
2600
       }
2466
    }
2601
   }
2467
  }
-
 
2468
  
2602
 ifcount 225
2469
  ifcount 225
2603
   {
2470
  {
2604
     sound MALECAROL
2471
    sound MALECAROL
2605
     resetcount
2472
    resetcount
2606
   }
2473
  }
Line 2619... Line 2486...
2619
         guts JIBS6 4
2486
      guts JIBS6 4
2620
         sound FEMALECAROL_DEAD
2487
      sound FEMALECAROL_DEAD
2621
         killit
2488
      killit
2622
       }
2489
    }
2623
   }
2490
  }
-
 
2491
  
2624
 ifcount 225
2492
  ifcount 225
2625
   {
2493
  {
2626
     sound FEMALECAROL
2494
    sound FEMALECAROL
2627
     resetcount
2495
    resetcount
2628
   }
2496
  }