Subversion Repositories nw_plus

Rev

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

Rev 1 Rev 7
Line 22... Line 22...
22
    debris SCRAP3 40
22
    debris SCRAP3 40
23
    killit
23
    killit
24
  }
24
  }
25
  else
25
  else
26
  {
26
  {
27
      sizeto MAXXSTRETCH MAXYSTRETCH
27
    sizeto MAXXSTRETCH MAXYSTRETCH
28
    break
28
    break
29
  }
29
  }
30
ends
30
ends
31
31
32
move SNOWBALLSPEED1 750 100
32
move SNOWBALLSPEED1 750 100
Line 186... Line 186...
186
  }
186
  }
187
ends
187
ends
188
188
189
189
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
    strength 0
195
  ifrespawn
196
    ifhitweapon
196
    {
197
    {
197
    ifcount RESPAWNACTORTIME
198
      ifwasweapon RADIUSEXPLOSION
198
      {
199
      {
199
      spawn TRANSPORTERSTAR
200
      // debris SCRAP3 40
200
      cstat 257
201
      // debris SCRAP3 40
201
      strength SNOWMANSTRENGTH
202
        debris SCRAP3 20
202
      ai AISNOWFOLLOW
203
        killit
203
      }
204
      }
204
    }
205
    }
-
 
206
  
205
    else
207
    ifrespawn
206
    {
208
    {
207
    strength 0
-
 
208
    ifhitweapon
209
      ifcount RESPAWNACTORTIME
209
      {
210
      {
210
      ifwasweapon RADIUSEXPLOSION
211
        spawn TRANSPORTERSTAR
211
        {
212
        cstat 257
212
     //  debris SCRAP3 40
-
 
213
     //  debris SCRAP3 40
213
        strength SNOWMANSTRENGTH
214
        debris SCRAP3 20
214
        ai AISNOWFOLLOW
215
        killit
-
 
216
        }
-
 
217
      }
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
228
    }
225
    }
229
    else
226
    else
230
    ifcount FROZENDRIPTIME
227
      ifcount FROZENDRIPTIME
231
      ifrnd 8
228
        ifrnd 8
232
       spawn WATERDRIP
229
          spawn WATERDRIP
233
230
234
  ifhitweapon
231
    ifhitweapon
235
    {
232
    {
236
    ifwasweapon FREEZEBLAST
233
      ifwasweapon FREEZEBLAST
237
      {
234
      {
238
      strength 0
235
        strength 0
239
      break
236
        break
240
      }
237
      }
241
  addkills 1
238
    addkills 1
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
  }
252
250
253
ifai AISNOWMANSHRINK
251
  ifai AISNOWMANSHRINK
254
  {
252
  {
255
  state snowmanshrinkstate
253
    state snowmanshrinkstate
256
  break
254
    break
257
  }
255
  }
258
256
-
 
257
  ifhitweapon state snowmanhitstate
259
258
260
ifhitweapon state snowmanhitstate
-
 
261
-
 
262
ifp pdead break
259
  ifp pdead break
263
260
264
ifai 0
261
  ifai 0
265
  {
262
  {
266
  ai AISNOWFOLLOW
263
    ai AISNOWFOLLOW
267
  sizeat 42 36
264
    sizeat 42 36
268
  clipdist 32
265
    clipdist 32
269
  cstat 257
266
    cstat 257
270
  }
267
  }
271
268
272
      ifai AISNOWMANDYING state snowmandyingstate
269
      ifai AISNOWMANDYING state snowmandyingstate
273
 else ifai AISNOWMANGROW state genericgrowcode
270
 else ifai AISNOWMANGROW state genericgrowcode
274
 else ifai AISNOWFOLLOW state snowmanidlestate
271
 else ifai AISNOWFOLLOW state snowmanidlestate
Line 350... Line 347...
350
ai AIBOTLETFALL ABOTFALL botfallspeed getv geth
347
ai AIBOTLETFALL ABOTFALL botfallspeed getv geth
351
ai AIBOTWALKNOTMOVING
348
ai AIBOTWALKNOTMOVING
352
ai AIWALKWAIT ABOTWALK botstopped faceplayer
349
ai AIWALKWAIT ABOTWALK botstopped faceplayer
353
350
354
state miniboss
351
state miniboss
355
352
  
356
   sound SANTA_TRASH1
353
  sound SANTA_TRASH1
357
354
  
358
   spawn EXPLOSION2
355
  spawn EXPLOSION2
359
   spawn EXPLOSION2
356
  spawn EXPLOSION2
360
   spawn PIGCOP
357
  spawn PIGCOP
361
   spawn PIGCOP
358
  spawn PIGCOP
362
359
  
363
ends
360
ends
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
386
382
  
387
ifspritepal 0 nullop else break
383
  ifspritepal 0 nullop else break
388
384
  
389
resetcount
385
  resetcount
390
386
  
391
ifspritepal 0
387
  ifspritepal 0
392
  {
388
  {
393
  ifpdistl 4096
389
    ifpdistl 4096
394
    {
390
    {
395
    ifrnd 128
391
      ifrnd 128
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
    }
-
 
405
  }
399
  }
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
413
      else
406
      else
414
      spritepal 9
407
        spritepal 9
415
    }
408
    }
416
    else
409
    else
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
    }
-
 
437
  }
427
  }
438
428
  
439
sound SELECT_WEAPON
429
  sound SELECT_WEAPON
440
430
  
441
ends
431
ends
442
432
443
state botquickshootstate
433
state botquickshootstate
-
 
434
  
-
 
435
  ifspritepal 0 nullop else break
-
 
436
  
-
 
437
  ifp pshrunk break
-
 
438
  ifp pdead break
444
439
445
ifspritepal 0 nullop else break
-
 
446
-
 
447
ifp pshrunk break
-
 
448
ifp pdead break
-
 
449
-
 
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
469
state botshootstate
461
state botshootstate
470
462
  
471
ifspritepal 0 nullop else break // ifcanshoottarget nullop // ifcanseetarget nullop
463
  ifspritepal 0 nullop else break // ifcanshoottarget nullop // ifcanseetarget nullop
472
464
  
473
ifp pdead break
465
  ifp pdead break
474
ifp pshrunk break
466
  ifp pshrunk break
475
467
  
476
ifspritepal 0
468
  ifspritepal 0
477
  {
469
  {
478
  ifcount 5
470
    ifcount 5
479
    {
471
    {
480
    ifactioncount 5
472
      ifactioncount 5
481
      {
473
      {
482
      resetactioncount
474
        resetactioncount
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
      }
-
 
492
    }
482
    }
493
  }
483
  }
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
      {
-
 
515
      resetactioncount
-
 
516
//      shoot SHRINKER
-
 
517
//      sound SHRINKER_FIRE
-
 
518
      shoot SHOTGUN
-
 
519
      sound SHOTGUN_FIRE
-
 
520
      }
-
 
521
    ifp ponsteroids
-
 
522
      {
507
      {
-
 
508
        resetactioncount
-
 
509
       // shoot SHRINKER
-
 
510
       // sound SHRINKER_FIRE
-
 
511
        shoot SHOTGUN
-
 
512
        sound SHOTGUN_FIRE
-
 
513
      }
-
 
514
      ifp ponsteroids
523
      ifrnd 64
515
        ifrnd 64
-
 
516
          state botchangeweaponstate
-
 
517
  
-
 
518
      ifrnd 1
524
        state botchangeweaponstate
519
        state botchangeweaponstate
525
      }
-
 
526
    ifrnd 1 state botchangeweaponstate
-
 
527
    }
520
    }
528
  }
521
  }
529
-
 
530
522
  
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 557... Line 547...
557
            sound SANTA_TRASH6
547
            sound SANTA_TRASH6
558
          else
548
          else
559
            sound SANTA_TRASH8
549
            sound SANTA_TRASH8
560
        }
550
        }
561
*/
551
*/
562
552
  
563
        ifrnd 80
553
        ifrnd 80
564
          sound SANTA_GOTHIT
554
          sound SANTA_GOTHIT
565
ends
555
ends
566
556
567
state dukehurt
557
state dukehurt
568
558
  
569
        ifrnd 80
559
        ifrnd 80
570
          sound SANTA_GOTHIT
560
          sound SANTA_GOTHIT
571
/*
561
/*
572
562
573
        ifphealthl YELLHURTSOUNDSTRENGTHMP
563
        ifphealthl YELLHURTSOUNDSTRENGTHMP
Line 599... Line 589...
599
589
600
590
601
// WALK STATES
591
// WALK STATES
602
592
603
state botwalkhitstate
593
state botwalkhitstate
604
594
  
605
state botshootstate
595
  state botshootstate
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
649
      sound SQUISH2
642
      sound SQUISH2
650
      addkills 1
643
      addkills 1
651
      endofgame 52
644
      endofgame 52
652
      killit
645
      killit
Line 654... Line 647...
654
    else
647
    else
655
    {
648
    {
656
      ai AIBOTWALKDYING
649
      ai AIBOTWALKDYING
657
      break
650
      break
658
    }
651
    }
659
   }
652
  }
660
  else
653
  else
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
    }
672
  }
667
  }
673
668
674
ends
669
ends
675
670
Line 684... Line 679...
684
      killit
679
      killit
685
    }
680
    }
686
ends
681
ends
687
682
688
state botwalkseekstate
683
state botwalkseekstate
689
684
  
690
ifcansee
685
  ifcansee
691
  {
686
  {
692
    ai AIBOTWALKHUNT
687
    ai AIBOTWALKHUNT
693
    break
688
    break
694
  }
689
  }
695
690
  
696
ifgapzl 100
691
  ifgapzl 100
697
  {
692
    nullop
698
  }
-
 
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
717
713
718
state botwalkjumpstate
714
state botwalkjumpstate
719
715
  
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
  
751
state botshootstate
743
  state botshootstate
752
744
  
753
ifrnd 3
745
  ifrnd 3
754
  {
746
  {
755
  ai AIBOTWALKSTRJUMP1S
747
    ai AIBOTWALKSTRJUMP1S
756
  count 10
748
    count 10
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
    }
-
 
772
  }
762
  }
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
      {
787
      ai AIFLYUPMOMENT
775
        ai AIFLYUPMOMENT
788
      cactor SOBBOTFLY
776
        cactor SOBBOTFLY
789
      break
777
        break
790
      }
778
      }
791
      else
779
      else
792
      {
780
      {
793
      ai AIBOTWALKSTRAIGHT
781
        ai AIBOTWALKSTRAIGHT
794
      break
782
        break
795
      }
783
      }
796
    }
784
    }
797
    else
785
    else
798
    {
786
    {
799
    ai AIBOTWALKSTRAIGHT
787
      ai AIBOTWALKSTRAIGHT
800
    break
788
      break
801
    }
789
    }
802
  ai AIBOTWALKSEEK
790
  ai AIBOTWALKSEEK
803
  break
791
  break
804
  }
792
  }
805
793
  
806
ifrnd 128
794
  ifrnd 128
807
  ifnotmoving
795
    ifnotmoving
808
    {
796
    {
809
    ifrnd 8
797
      ifrnd 8
810
      operate
798
        operate
811
    ai AIBOTWALKJUMP1
799
      ai AIBOTWALKJUMP1
812
    break
800
      break
813
    }
801
    }
814
802
  
815
ends
803
ends
816
804
817
state botwalkkickstate
805
state botwalkkickstate
818
806
  
819
ifactioncount 2
807
  ifactioncount 2
820
  {
808
  {
821
  resetactioncount
809
    resetactioncount
822
  ifpdistl 1024
810
    ifpdistl 1024
823
    {
811
    {
824
    ifp pdead
812
      ifp pdead
825
      {
813
      {
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
        }
-
 
834
    sound KICK_HIT
-
 
835
820
-
 
821
      sound KICK_HIT
-
 
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
    {
842
    ai AIBOTWALKHUNT
832
      ai AIBOTWALKHUNT
843
    break
833
      break
844
    }
834
    }
845
835
846
  ifrnd 50
836
  ifrnd 50
847
    {
837
    {
848
    ai AIBOTWALKHUNT
838
      ai AIBOTWALKHUNT
849
    break
839
      break
850
    }
840
    }
851
  }
841
  }
852
842
853
ends
843
ends
854
844
855
state botwalkstraightjumpstate
845
state botwalkstraightjumpstate
856
846
  
857
ifai AIBOTWALKSTRJUMP1
847
  ifai AIBOTWALKSTRJUMP1
858
  {
848
  {
859
  ifcount 20
849
    ifcount 20
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
      {
872
      operate
861
        operate
873
      ifrnd 128
862
        ifrnd 128
874
      sound DUKE_LAND
863
          sound DUKE_LAND
875
      ifrnd 200
864
        ifrnd 200
876
        ai AIBOTWALKSTRAIGHT
865
          ai AIBOTWALKSTRAIGHT
877
        else
866
        else
878
        ai AIBOTWALKSEEK
867
          ai AIBOTWALKSEEK
879
      }
868
      }
880
    }
869
    }
881
  }
870
  }
882
871
  
883
ends
872
ends
884
873
885
state botjumpshootstate
874
state botjumpshootstate
886
875
  
887
ifai AIBOTWALKSTRJUMP1S
876
  ifai AIBOTWALKSTRJUMP1S
888
  {
877
  {
889
  state botshootstate
878
    state botshootstate
890
879
  
891
  ifcount 20
880
    ifcount 20
892
    {
881
    {
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
      {
907
      operate
894
        operate
908
      sound DUKE_LAND
895
        sound DUKE_LAND
909
      ai AIBOTWALKHUNT
896
        ai AIBOTWALKHUNT
910
      count 10
897
        count 10
911
      }
898
      }
912
    }
899
    }
913
  }
900
  }
914
-
 
915
901
  
916
ends
902
ends
917
903
918
904
919
state botwalkstraightstate
905
state botwalkstraightstate
920
906
  
921
ifpdistg 20000
907
  ifpdistg 20000
922
  ai AIBOTWALKSEEK
908
    ai AIBOTWALKSEEK
923
909
  
924
ifcansee
910
  ifcansee
925
  {
911
  {
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
  
945
soundonce DUKE_HARTBEAT
930
  soundonce DUKE_HARTBEAT
946
spawn FRAMEEFFECT1
931
  spawn FRAMEEFFECT1
947
932
  
948
ifhitweapon
933
  ifhitweapon
949
  {
-
 
950
  state botwalkhitstate
-
 
951
  break
-
 
952
  }
-
 
953
-
 
954
ifcount 150
-
 
955
  {
934
  {
956
  ai AIBOTWALKHUNT
935
    state botwalkhitstate
-
 
936
    break
957
  }
937
  }
-
 
938
  
-
 
939
  ifcount 150
-
 
940
    ai AIBOTWALKHUNT
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
984
  break
960
    break
985
  }
961
  }
986
  else
962
  else
987
  {
963
  {
988
  iffloordistl 50
964
    iffloordistl 50
989
    {
965
    {
990
    ai AIFLYWAIT
966
      ai AIFLYWAIT
991
    cactor SOBBOTFLY
967
      cactor SOBBOTFLY
992
    break
968
      break
993
    }
969
    }
994
  }
970
  }
995
971
  
996
ends
972
ends
997
973
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
        }
1009
-
 
1010
  ifcansee nullop else break
-
 
1011
  
984
  
-
 
985
    ifcansee nullop else break
-
 
986
  
1012
  sizeat 42 36
987
    sizeat 42 36
1013
  cstat 257
988
    cstat 257
1014
989
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
        }
-
 
1050
      }
1022
      }
-
 
1023
  
1051
  ifhitweapon
1024
    ifhitweapon
1052
    {
1025
    {
1053
    ifwasweapon FREEZEBLAST
1026
      ifwasweapon FREEZEBLAST
1054
      {
1027
      {
1055
      strength 0
1028
        strength 0
1056
      break
1029
        break
1057
      }
1030
      }
1058
    addkills 1
1031
      addkills 1
1059
1032
  
1060
    ifrnd 84
1033
      ifrnd 84
1061
      spawn BLOODPOOL
1034
        spawn BLOODPOOL
1062
    lotsofglass 30
1035
      lotsofglass 30
1063
    spawn ATOMICHEALTH
1036
      spawn ATOMICHEALTH
1064
    sound GLASS_BREAKING
1037
      sound GLASS_BREAKING
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
-
 
1047
      }
1072
    }
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
1091
    addkills 1
1067
      addkills 1
1092
    sound SQUISH2
1068
      sound SQUISH2
1093
    sound PIPEBOMB_EXPLODE
1069
      sound PIPEBOMB_EXPLODE
1094
    hitradius 2048 60 70 80 90
1070
      hitradius 2048 60 70 80 90
1095
    spawn BLOODPOOL
1071
      spawn BLOODPOOL
1096
    spawn EXPLOSION2
1072
      spawn EXPLOSION2
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
-
 
1082
      }
1104
    }
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
1119
    ifcount SHRUNKCOUNT
-
 
1120
      {
1096
      {
1121
      spawn FRAMEEFFECT1
1097
        ifcount SHRUNKCOUNT
1122
      sizeto 42 36
1098
        {
1123
      }
1099
          spawn FRAMEEFFECT1
1124
      else
1100
          sizeto 42 36
1125
      {
1101
        }
1126
      ifcount 31
1102
        else ifcount 31
1127
        nullop
1103
          nullop
1128
        else
1104
        else ifcount 30
1129
        {
1105
        {
1130
        ifcount 30
-
 
1131
          {
-
 
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
            }
-
 
1138
          }
1111
          }
1139
        }
1112
        }
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
            }
1157
    else
1126
            else
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
-
 
1135
            }
1166
          }
1136
          }
1167
        }
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
1184
  ifrnd 1
1152
    ifrnd 1
1185
    operate
1153
      operate
1186
1154
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
    }
-
 
1203
  }
1166
  }
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
      }
-
 
1217
    }
1176
    }
1218
  }
1177
  }
1219
1178
  
1220
ifp pshrunk
1179
  ifp pshrunk
1221
  state stomphisfreakingass
1180
    state stomphisfreakingass
1222
1181
  
1223
iffloordistl 550
1182
  iffloordistl 550
1224
  nullop
1183
    nullop
1225
  else
1184
  else
1226
  {
1185
  {
1227
  ai AIFLYWAIT
1186
    ai AIFLYWAIT
1228
  cactor SOBBOTFLY
1187
    cactor SOBBOTFLY
1229
  }
1188
  }
1230
1189
1231
ifonwater
1190
  ifonwater
1232
  {
1191
    nullop
1233
  }
-
 
1234
  else
1192
  else
1235
  {
1193
  {
1236
  ifp pjetpack
1194
    ifp pjetpack
1237
    ifp phigher
1195
      ifp phigher
1238
      ifcansee
1196
        ifcansee
1239
        {
1197
        {
1240
        ai AIFLYWAIT
1198
          ai AIFLYWAIT
1241
        cactor SOBBOTFLY
1199
          cactor SOBBOTFLY
1242
        }
1200
        }
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
    }
-
 
1255
  }
1211
  }
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
1302
1234
  
1303
strength 0
1235
  strength 0
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
1319
state choosedodgefly
1253
state choosedodgefly
1320
1254
  
1321
ifceilingdistl 100
1255
  ifceilingdistl 100
1322
  {
1256
  {
1323
  ifai AIBOTFLYDODGEDOWN
1257
    ifai AIBOTFLYDODGEDOWN
1324
    nullop
1258
      nullop
1325
    else
1259
    else
1326
    ai AIBOTFLYDODGEDOWN
1260
      ai AIBOTFLYDODGEDOWN
1327
  }
1261
  }
1328
  else
1262
  else
1329
  {
1263
  {
1330
  ifai AIBOTFLYDODGEUP
1264
    ifai AIBOTFLYDODGEUP
1331
    nullop
1265
      nullop
1332
    else
1266
    else
1333
    ai AIBOTFLYDODGEUP
1267
      ai AIBOTFLYDODGEUP
1334
  }
1268
  }
1335
1269
  
1336
ends
1270
ends
1337
1271
1338
1272
1339
state botflydodgestate
1273
state botflydodgestate
1340
1274
  
1341
ifcanshoottarget
1275
  ifcanshoottarget
1342
  state botshootstate
1276
    state botshootstate
1343
1277
  
1344
ifcansee
1278
  ifcansee
1345
  {
-
 
1346
  ifrnd 2
-
 
1347
    {
1279
    {
-
 
1280
    ifrnd 2
-
 
1281
      {
1348
    ifceilingdistl 100
1282
      ifceilingdistl 100
1349
      ai AIBOTFLYDODGEDOWN
1283
        ai AIBOTFLYDODGEDOWN
1350
      else
1284
      else
1351
      ai AIBOTFLYDODGEUP
1285
        ai AIBOTFLYDODGEUP
-
 
1286
      }
1352
    }
1287
    }
1353
  }
-
 
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
1363
1295
1364
state botflyhitstate
1296
state botflyhitstate
1365
1297
  
1366
state botshootstate
1298
  state botshootstate
1367
1299
  
1368
// spawn BLOOD
1300
  // spawn BLOOD
1369
1301
  
1370
ifdead
1302
  ifdead
1371
  {
-
 
1372
  ifspritepal 21 { state miniboss break } else sound SANTA_DEAD
-
 
1373
-
 
1374
  ifwasweapon FREEZEBLAST
-
 
1375
    {
-
 
1376
    spritepal 1
-
 
1377
    strength 0
-
 
1378
    move 0
-
 
1379
    action ABOTFLYFROZEN
-
 
1380
    sound SOMETHINGFROZE
-
 
1381
    break
-
 
1382
    }
-
 
1383
    else
-
 
1384
  ifwasweapon GROWSPARK
-
 
1385
    {
-
 
1386
    cstat 0
-
 
1387
    sound ACTOR_GROWING
-
 
1388
    ai AIBOTFLYGROW
-
 
1389
    break
-
 
1390
    }
-
 
1391
    else
-
 
1392
  ifwasweapon RADIUSEXPLOSION
-
 
1393
    {
-
 
1394
//    state standard_pjibs
-
 
1395
//    state standard_pjibs
-
 
1396
//    state standard_pjibs
-
 
1397
    state standard_pjibs
-
 
1398
    sound SQUISH2
-
 
1399
    addkills 1
-
 
1400
    endofgame 52
-
 
1401
    killit
-
 
1402
    }
-
 
1403
    else
-
 
1404
  ifwasweapon RPG
-
 
1405
    {
-
 
1406
//    state standard_pjibs
-
 
1407
//    state standard_pjibs
-
 
1408
//    state standard_pjibs
-
 
1409
    state standard_pjibs
-
 
1410
    sound SQUISH2
-
 
1411
    addkills 1
-
 
1412
    endofgame 52
-
 
1413
    killit
-
 
1414
    }
-
 
1415
    else
-
 
1416
    {
-
 
1417
    ai AIBOTFLYDYING
-
 
1418
    }
-
 
1419
-
 
1420
  }
-
 
1421
  else
-
 
1422
  {
-
 
1423
  state dudehurt
-
 
1424
-
 
1425
  ifwasweapon SHRINKSPARK
-
 
1426
    {
1303
    {
-
 
1304
      ifspritepal 21
-
 
1305
      {
-
 
1306
        state miniboss
-
 
1307
        break
-
 
1308
      }
-
 
1309
      else
-
 
1310
        sound SANTA_DEAD
-
 
1311
  
-
 
1312
      ifwasweapon FREEZEBLAST
-
 
1313
      {
-
 
1314
        spritepal 1
-
 
1315
        strength 0
-
 
1316
        move 0
-
 
1317
        action ABOTFLYFROZEN
-
 
1318
        sound SOMETHINGFROZE
-
 
1319
        break
-
 
1320
      }
-
 
1321
      else ifwasweapon GROWSPARK
-
 
1322
      {
-
 
1323
        cstat 0
-
 
1324
        sound ACTOR_GROWING
1427
    ifai AIBOTFLYSTEROIDS
1325
        ai AIBOTFLYGROW
-
 
1326
        break
-
 
1327
      }
-
 
1328
      else ifwasweapon RADIUSEXPLOSION
-
 
1329
      {
-
 
1330
       // state standard_pjibs
-
 
1331
       // state standard_pjibs
-
 
1332
       // state standard_pjibs
-
 
1333
        state standard_pjibs
-
 
1334
        sound SQUISH2
-
 
1335
        addkills 1
-
 
1336
        endofgame 52
-
 
1337
        killit
-
 
1338
      }
-
 
1339
      else ifwasweapon RPG
1428
       {
1340
      {
-
 
1341
       // state standard_pjibs
-
 
1342
       // state standard_pjibs
-
 
1343
       // state standard_pjibs
-
 
1344
        state standard_pjibs
-
 
1345
        sound SQUISH2
-
 
1346
        addkills 1
-
 
1347
        endofgame 52
-
 
1348
        killit
1429
       }
1349
      }
-
 
1350
      else
-
 
1351
       ai AIBOTFLYDYING
-
 
1352
   }
-
 
1353
   else
-
 
1354
   {
-
 
1355
     state dudehurt
-
 
1356
   
-
 
1357
     ifwasweapon SHRINKSPARK
-
 
1358
     {
-
 
1359
       ifai AIBOTFLYSTEROIDS
-
 
1360
         nullop
1430
       else
1361
       else
1431
       {
1362
       {
1432
       ai AIBOTFLYSHRINK
1363
         ai AIBOTFLYSHRINK
1433
       break
1364
         break
1434
       }
1365
       }
1435
    }
1366
     }
1436
  }
1367
   }
1437
1368
  
1438
ends
1369
ends
1439
1370
1440
state botflyseekupstate
1371
state botflyseekupstate
1441
1372
  
1442
ifcansee
1373
  ifcansee
1443
  {
-
 
1444
  ai AIBOTFLYUP
-
 
1445
  break
-
 
1446
  }
-
 
1447
-
 
1448
ifp phigher
-
 
1449
  {
1374
  {
-
 
1375
    ai AIBOTFLYUP
-
 
1376
    break
1450
  }
1377
  }
-
 
1378
  
-
 
1379
  ifp phigher
-
 
1380
    nullop
1451
  else
1381
  else
1452
  {
1382
  {
1453
  ai AIBOTFLYSEEKDOWN
1383
    ai AIBOTFLYSEEKDOWN
1454
  break
1384
    break
1455
  }
1385
  }
1456
1386
  
1457
ends
1387
ends
1458
1388
1459
state botflyseekdownstate
1389
state botflyseekdownstate
1460
1390
  
1461
ifcansee
1391
  ifcansee
1462
  {
1392
  {
1463
  ai AIBOTFLYDOWN
1393
    ai AIBOTFLYDOWN
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
    }
1476
  }
1405
  }
1477
1406
  
1478
ifp phigher
1407
  ifp phigher
1479
  {
1408
  {
1480
  ai AIBOTFLYSEEKUP
1409
    ai AIBOTFLYSEEKUP
1481
  break
1410
    break
1482
  }
1411
  }
1483
1412
  
1484
ends
1413
ends
1485
1414
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
  }
1507
1433
  
1508
ends
1434
ends
1509
1435
1510
state botflyupstate
1436
state botflyupstate
1511
1437
1512
state botshootstate
1438
  state botshootstate
1513
1439
1514
ifrnd 16
1440
  ifrnd 16
1515
  {
1441
  {
1516
  ifp phigher
1442
    ifp phigher
1517
    nullop
1443
      nullop
1518
    else
1444
    else
1519
    {
1445
    {
1520
    ai AIBOTFLYDOWN
1446
      ai AIBOTFLYDOWN
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
  
1537
ifcansee
1460
  ifcansee
1538
  {
1461
  {
1539
  ifcount 10 ai AIBOTFLYUP
1462
    ifcount 10 ai AIBOTFLYUP
1540
  break
1463
    break
1541
  }
1464
  }
1542
  else
1465
  else
1543
  {
1466
  {
1544
  ifcount 50
1467
    ifcount 50
1545
    {
1468
    {
1546
    ai AIBOTLETFALL
1469
      ai AIBOTLETFALL
1547
    cactor SOBBOTWALK
1470
      cactor SOBBOTWALK
1548
    }
1471
    }
1549
  }
1472
  }
1550
1473
  
1551
ends
1474
ends
1552
1475
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
-
 
1486
  
-
 
1487
  ifpdistg 20000
-
 
1488
    ai AIBOTFLYSEEKDOWN
1565
1489
1566
ifpdistg 20000
-
 
1567
  ai AIBOTFLYSEEKDOWN
-
 
1568
-
 
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
1578
  }
1497
  }
1579
1498
  
1580
ends
1499
ends
1581
1500
1582
state steroidsfly
1501
state steroidsfly
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
-
 
1512
    sizeto 42 36
-
 
1513
  
-
 
1514
  ifhitweapon
1596
  {
1515
  {
1597
  sizeto 42 36
-
 
1598
  }
-
 
1599
-
 
1600
ifhitweapon
-
 
1601
  {
-
 
1602
  state botflyhitstate
1516
    state botflyhitstate
1603
  break
1517
    break
1604
  }
1518
  }
1605
1519
  
1606
ends
1520
ends
1607
1521
1608
// FLY ACTOR
1522
// FLY ACTOR
1609
1523
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
1647
        }
-
 
1648
      }
1561
      }
-
 
1562
    }
1649
  ifhitweapon
1563
    ifhitweapon
1650
    {
1564
    {
1651
    ifwasweapon FREEZEBLAST
1565
      ifwasweapon FREEZEBLAST
1652
      {
1566
      {
1653
      strength 0
1567
        strength 0
1654
      break
1568
        break
1655
      }
1569
      }
1656
    addkills 1
1570
      addkills 1
1657
-
 
1658
    ifrnd 84
-
 
1659
      spawn BLOODPOOL
-
 
1660
1571
-
 
1572
      ifrnd 84
-
 
1573
        spawn BLOODPOOL
-
 
1574
  
1661
    lotsofglass 30
1575
      lotsofglass 30
1662
    spawn ATOMICHEALTH
1576
      spawn ATOMICHEALTH
1663
    sound GLASS_BREAKING
1577
      sound GLASS_BREAKING
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
-
 
1587
      }
1671
    }
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
1692
    addkills 1
1607
      addkills 1
1693
    sound SQUISH2
1608
      sound SQUISH2
1694
    sound PIPEBOMB_EXPLODE
1609
      sound PIPEBOMB_EXPLODE
1695
    hitradius 2048 60 70 80 90
1610
      hitradius 2048 60 70 80 90
1696
    spawn BLOODPOOL
1611
      spawn BLOODPOOL
1697
    spawn EXPLOSION2
1612
      spawn EXPLOSION2
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
-
 
1622
      }
1705
    }
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
1644
      else ifcount 30
1729
        {
-
 
1730
        ifcount 30
1645
        ifrnd 255
1731
          {
1646
          {
1732
          ifrnd 255
-
 
1733
            {
-
 
1734
            sound DUKE_TAKEPILLS
1647
            sound DUKE_TAKEPILLS
1735
            ai AIBOTFLYSTEROIDS
1648
            ai AIBOTFLYSTEROIDS
1736
            break
1649
            break
1737
            }
-
 
1738
          }
1650
          }
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
          }
1761
    else
1668
          else
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
        }
-
 
1777
      }
1684
      }
1778
  break
-
 
1779
  }
1685
    }
1780
-
 
1781
soundonce DUKE_JETPACK_IDLE
-
 
1782
-
 
1783
ifai AIBOTFLYDYING
-
 
1784
  {
-
 
1785
  state botflydyingstate
-
 
1786
  break
1686
    break
1787
  }
1687
  }
1788
1688
  
1789
ifhitweapon
-
 
1790
  state botflyhitstate
1689
  soundonce DUKE_JETPACK_IDLE
1791
1690
  
1792
ifrnd 2 operate
1691
  ifai AIBOTFLYDYING
1793
-
 
1794
ifp pshrunk
-
 
1795
  {
1692
  {
1796
  state stomphisfreakingass
1693
    state botflydyingstate
-
 
1694
    break
1797
  }
1695
  }
1798
1696
  
-
 
1697
  ifhitweapon
-
 
1698
    state botflyhitstate
-
 
1699
  
-
 
1700
  ifrnd 2 operate
-
 
1701
  
-
 
1702
  ifp pshrunk
-
 
1703
    state stomphisfreakingass
-
 
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
        }
-
 
1814
      }
1718
      }
1815
    }
-
 
1816
  }
1719
  }
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 1880... Line 1764...
1880
ai      AIELFUZISHOOTING  AELFUZISHOOT  elfuzistopped faceplayer
1764
ai      AIELFUZISHOOTING  AELFUZISHOOT  elfuzistopped faceplayer
1881
ai      AIELFUZIIQ        AELFUZIRUN    elfuzirunspeed geth getv
1765
ai      AIELFUZIIQ        AELFUZIRUN    elfuzirunspeed geth getv
1882
ai      AIELFUZIGROW      AELFUZIGROW   elfuzistopped geth getv
1766
ai      AIELFUZIGROW      AELFUZIGROW   elfuzistopped geth getv
1883
1767
1884
state elfuziseekstate
1768
state elfuziseekstate
1885
1769
  
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
      }
-
 
1896
    }
-
 
1897
  }
1777
  }
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
-
 
1905
1784
  
1906
ifcansee
1785
  ifcansee
1907
  {
1786
  {
1908
  ifpdistl 2000
1787
    ifpdistl 2000
1909
    {
-
 
1910
    ai AIELFUZISHOOTING
-
 
1911
    break
-
 
1912
    }
-
 
1913
  ifrnd 64 ifnotmoving
-
 
1914
    {
1788
    {
1915
    ai AIELFUZIJUMPING
1789
      ai AIELFUZISHOOTING
1916
    break
1790
      break
1917
    }
1791
    }
1918
-
 
1919
  ifrnd 7
1792
    ifrnd 64
1920
    ifpdistl 8192
1793
      ifnotmoving
1921
      {
1794
      {
1922
      ai AIELFUZISHOOTING
1795
        ai AIELFUZIJUMPING
-
 
1796
        break
1923
      }
1797
      }
-
 
1798
-
 
1799
    ifrnd 7
-
 
1800
      ifpdistl 8192
-
 
1801
        ai AIELFUZISHOOTING
1924
  }
1802
  }
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
      }
-
 
1945
  }
1818
  }
1946
1819
  
1947
ends
1820
ends
1948
1821
1949
state elfuzishootstate
1822
state elfuzishootstate
1950
1823
  
1951
ifcansee
1824
  ifcansee
1952
  {
1825
  {
1953
  ifp pdead ai AIELFUZISEEKING
1826
    ifp pdead ai AIELFUZISEEKING
1954
1827
  
1955
  ifactioncount 3
1828
    ifactioncount 3
1956
    {
-
 
1957
    ifspritepal 0
-
 
1958
    {
1829
    {
1959
    sound CHAINGUN_FIRE
-
 
1960
    shoot CHAINGUN
-
 
1961
    }
-
 
1962
    else {
-
 
1963
    ifrnd 80
1830
      ifspritepal 0
1964
      {
1831
      {
-
 
1832
        sound CHAINGUN_FIRE
-
 
1833
        shoot CHAINGUN
-
 
1834
      }
-
 
1835
      else ifrnd 80
-
 
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
  
1982
ifactioncount 2
1852
  ifactioncount 2
1983
  ai AIELFUZIFALLING
1853
    ai AIELFUZIFALLING
1984
1854
  
1985
ends
1855
ends
1986
1856
1987
state elfuzifallingstate
1857
state elfuzifallingstate
1988
1858
  
1989
iffloordistl 5
1859
  iffloordistl 5
1990
  ai AIELFUZIHUNTING
1860
    ai AIELFUZIHUNTING
1991
1861
  
1992
ends
1862
ends
1993
1863
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 2007... Line 1877...
2007
enda
1877
enda
2008
1878
2009
1879
2010
1880
2011
state elfuzihitstate
1881
state elfuzihitstate
2012
spawn BLOOD // Hendricks266 fixed this bug. Before this fix, this line said "spawn SPECBLOOD".  SPECBLOOD is a piece of shit.
1882
  spawn BLOOD // Hendricks266 fixed this bug. Before this fix, this line said "spawn SPECBLOOD".  SPECBLOOD is a piece of shit.
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
2026
    }
1894
    }
2027
1895
  
2028
  addkills 1
1896
    addkills 1
2029
  state random_wall_jibs
1897
  state random_wall_jibs
2030
1898
  
2031
  ifwasweapon FREEZEBLAST
1899
    ifwasweapon FREEZEBLAST
2032
    {
1900
    {
2033
    sound SOMETHINGFROZE
1901
      sound SOMETHINGFROZE
2034
    spritepal 1
1902
      spritepal 1
2035
    move 0
1903
      move 0
2036
    action AELFUZIFROZEN
1904
      action AELFUZIFROZEN
2037
    strength 0
1905
      strength 0
2038
    break
1906
      break
2039
    }
1907
    }
2040
  ifwasweapon RADIUSEXPLOSION
1908
    ifwasweapon RADIUSEXPLOSION
2041
    {
1909
    {
2042
    sound SQUISH2
1910
      sound SQUISH2
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
  }
2076
ends
1941
ends
2077
1942
2078
state elfuzishrinkstate
1943
state elfuzishrinkstate
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
2091
state elfuzidyingstate
1955
state elfuzidyingstate
2092
1956
  
2093
ifactioncount 5
1957
  ifactioncount 5
2094
  {
1958
  {
2095
  ifrnd 64
1959
    ifrnd 64
2096
    spawn BLOODPOOL
1960
      spawn BLOODPOOL
2097
  state rf
1961
    state rf
2098
  iffloordistl 8
1962
    iffloordistl 8
2099
    sound THUD
1963
      sound THUD
2100
  action AELFUZIDEAD
1964
    action AELFUZIDEAD
2101
  move elfuzistopped
1965
    move elfuzistopped
2102
  break
1966
    break
2103
  }
1967
  }
2104
1968
  
2105
ends
1969
ends
2106
1970
2107
useractor enemy ELFUZI ELFUZISTRENGTH
1971
useractor enemy ELFUZI ELFUZISTRENGTH
2108
fall
1972
  fall
2109
1973
  
2110
state checksquished
1974
  state checksquished
2111
1975
  
2112
ifaction AELFUZIDEAD
1976
  ifaction AELFUZIDEAD
2113
  {
1977
  {
-
 
1978
    strength 0
2114
  ifrespawn
1979
    ifhitweapon
2115
    ifcount RESPAWNACTORTIME
1980
      ifwasweapon RADIUSEXPLOSION
2116
      {
1981
      {
2117
      spawn TRANSPORTERSTAR
1982
        sound SQUISH2
2118
      cstat 257
1983
       // state standard_jibs
2119
      strength ELFUZISTRENGTH
1984
       // state standard_jibs
2120
      ai AIELFUZISEEKING
1985
        state standard_jibs
-
 
1986
        killit
2121
      }
1987
      }
-
 
1988
  
2122
      else
1989
    ifrespawn
-
 
1990
      ifcount RESPAWNACTORTIME
2123
      {
1991
      {
2124
      strength 0
-
 
2125
      ifhitweapon
-
 
2126
        ifwasweapon RADIUSEXPLOSION
1992
        spawn TRANSPORTERSTAR
2127
          {
1993
        cstat 257
2128
          sound SQUISH2
1994
        strength ELFUZISTRENGTH
2129
//          state standard_jibs
-
 
2130
//          state standard_jibs
-
 
2131
          state standard_jibs
1995
        ai AIELFUZISEEKING
2132
          killit
-
 
2133
          }
-
 
2134
      break
-
 
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
    {
2153
    ifwasweapon FREEZEBLAST
2012
      ifwasweapon FREEZEBLAST
2154
      {
2013
      {
2155
      strength 0
2014
        strength 0
2156
      break
2015
        break
2157
      }
2016
      }
2158
    addkills 1
2017
      addkills 1
2159
    lotsofglass 30
2018
      lotsofglass 30
2160
    ifrnd 84 spawn BLOODPOOL
2019
      ifrnd 84 spawn BLOODPOOL
2161
    sound GLASS_BREAKING
2020
      sound GLASS_BREAKING
2162
    killit
2021
      killit
2163
    }
2022
    }
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
2204
   // clipdist 32
2067
 // clipdist 32
2205
   ai AIELFUZISEEKING
2068
  ai AIELFUZISEEKING
2206
   cactor ELFUZI
2069
  cactor ELFUZI
2207
enda
2070
enda
2208
2071
2209
action  AELFGUNWALK    0 4 5 1 20
2072
action  AELFGUNWALK    0 4 5 1 20
2210
action  AELFGUNRUN     0 4 5 1 10
2073
action  AELFGUNRUN     0 4 5 1 10
2211
action  AELFGUNFROZEN  0 1 5 1
2074
action  AELFGUNFROZEN  0 1 5 1
Line 2226... Line 2089...
2226
ai      AIELFGUNSHOOTING  AELFGUNSHOOT  elfgunstopped faceplayer
2089
ai      AIELFGUNSHOOTING  AELFGUNSHOOT  elfgunstopped faceplayer
2227
ai      AIELFGUNIQ        AELFGUNRUN    elfgunrunspeed geth getv
2090
ai      AIELFGUNIQ        AELFGUNRUN    elfgunrunspeed geth getv
2228
ai      AIELFGUNGROW      AELFGUNGROW   elfgunstopped geth getv
2091
ai      AIELFGUNGROW      AELFGUNGROW   elfgunstopped geth getv
2229
2092
2230
state elfgunseekstate
2093
state elfgunseekstate
2231
2094
  
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
      }
-
 
2242
    }
-
 
2243
  }
2102
  }
2244
2103
  
2245
ends
2104
ends
2246
2105
2247
state elfgunhuntstate
2106
state elfgunhuntstate
2248
   ifp pdead ai AIELFGUNSEEKING
2107
   ifp pdead ai AIELFGUNSEEKING
2249
2108
2250
   ifcansee
2109
   ifcansee
-
 
2110
   {
-
 
2111
     ifpdistl 2000
2251
     {
2112
     {
2252
       ifpdistl 2000
-
 
2253
         {
-
 
2254
           ai AIELFGUNSHOOTING
2113
       ai AIELFGUNSHOOTING
2255
           break
2114
       break
2256
         }
-
 
2257
     }
2115
     }
-
 
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
    }
-
 
2314
  }
2171
  }
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
-
 
2322
state random_wall_jibs
-
 
2323
2177
  
2324
ifdead
-
 
2325
  {
-
 
2326
  state random_wall_jibs
2178
  state random_wall_jibs
-
 
2179
  
2327
  ifrnd 128
2180
  ifdead
2328
    {
2181
  {
-
 
2182
    ifrnd 128
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
2336
    }
2189
    }
2337
2190
  
2338
  addkills 1
2191
    addkills 1
2339
2192
  
2340
  ifwasweapon FREEZEBLAST
2193
    ifwasweapon FREEZEBLAST
2341
    {
2194
    {
2342
    sound SOMETHINGFROZE
2195
      sound SOMETHINGFROZE
2343
    spritepal 1
2196
      spritepal 1
2344
    move 0
2197
      move 0
2345
    action AELFGUNFROZEN
2198
      action AELFGUNFROZEN
2346
    strength 0
2199
      strength 0
2347
    break
2200
      break
2348
    }
2201
    }
2349
  ifwasweapon RADIUSEXPLOSION
2202
    ifwasweapon RADIUSEXPLOSION
2350
    {
2203
    {
2351
    sound SQUISH2
2204
      sound SQUISH2
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
2364
    killit
2216
      killit
2365
    }
2217
    }
2366
    else
2218
    else
2367
    ai AIELFGUNDYING
2219
      ai AIELFGUNDYING
2368
2220
  
2369
  }
2221
  }
2370
  else
2222
  else
2371
  {
2223
  {
2372
  state random_wall_jibs
2224
    state random_wall_jibs
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
  }
2385
ends
2236
ends
2386
2237
2387
state elfgunshrinkstate
2238
state elfgunshrinkstate
2388
2239
  
2389
ifcount SHRUNKDONECOUNT
2240
  ifcount SHRUNKDONECOUNT
2390
  ai AIELFGUNSEEKING
2241
    ai AIELFGUNSEEKING
-
 
2242
  else ifcount SHRUNKCOUNT
-
 
2243
    sizeto 32 27 // sizeto 48 40
2391
  else
2244
  else
2392
  ifcount SHRUNKCOUNT
-
 
2393
//    sizeto 48 40
-
 
2394
    sizeto 32 27
-
 
2395
    else
-
 
2396
    state genericshrunkcode
2245
    state genericshrunkcode
2397
2246
  
2398
ends
2247
ends
2399
2248
2400
state elfgundyingstate
2249
state elfgundyingstate
2401
2250
  
2402
ifactioncount 4
2251
  ifactioncount 4
2403
  {
2252
  {
2404
  ifrnd 64
2253
    ifrnd 64
2405
    spawn BLOODPOOL
2254
      spawn BLOODPOOL
2406
  state rf
2255
    state rf
2407
  iffloordistl 8
2256
    iffloordistl 8
2408
    sound THUD
2257
      sound THUD
2409
  action AELFGUNDEAD
2258
    action AELFGUNDEAD
2410
  move elfgunstopped
2259
    move elfgunstopped
2411
  break
2260
    break
2412
  }
2261
  }
2413
2262
  
2414
ends
2263
ends
2415
2264
2416
useractor enemy ELFGUN ELFGUNSTRENGTH
2265
useractor enemy ELFGUN ELFGUNSTRENGTH
2417
fall
2266
  fall
2418
state checksquished
2267
  state checksquished
2419
2268
  
2420
ifaction AELFGUNDEAD
2269
  ifaction AELFGUNDEAD
2421
  {
2270
  {
2422
  ifrespawn
2271
    ifrespawn
2423
    ifcount RESPAWNACTORTIME
2272
      ifcount RESPAWNACTORTIME
2424
      {
2273
      {
2425
      spawn TRANSPORTERSTAR
2274
        spawn TRANSPORTERSTAR
2426
      cstat 257
2275
        cstat 257
2427
      strength ELFGUNSTRENGTH
2276
        strength ELFGUNSTRENGTH
2428
      ai AIELFGUNSEEKING
2277
        ai AIELFGUNSEEKING
2429
      }
2278
      }
2430
      else
2279
      else
2431
      {
2280
      {
2432
      strength 0
2281
        strength 0
2433
      ifhitweapon
2282
        ifhitweapon
2434
        ifwasweapon RADIUSEXPLOSION
2283
          ifwasweapon RADIUSEXPLOSION
2435
          {
2284
          {
2436
          sound SQUISH2
2285
            sound SQUISH2
2437
//          state standard_jibs
2286
           // state standard_jibs
2438
//          state standard_jibs
2287
           // state standard_jibs
2439
          state standard_jibs
2288
            state standard_jibs
2440
          killit
2289
            killit
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
2453
    }
2301
    }
2454
    else
2302
    else
2455
    ifcount FROZENDRIPTIME
2303
      ifcount FROZENDRIPTIME
2456
      ifrnd 8
2304
        ifrnd 8
2457
        spawn WATERDRIP
2305
          spawn WATERDRIP
2458
2306
2459
  ifhitweapon
2307
    ifhitweapon
2460
    { // state elfgunhitstate
2308
    { // state elfgunhitstate
2461
    ifwasweapon FREEZEBLAST
2309
      ifwasweapon FREEZEBLAST
2462
      {
2310
      {
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
2474
      pkick
2323
        pkick
2475
  break
2324
    break
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
2507
// clipdist 32
2358
  // clipdist 32
2508
cactor ELFGUN
2359
  cactor ELFGUN
2509
break
2360
  break
2510
enda
2361
enda
2511
2362
2512
state present
2363
state present
2513
  fall
2364
  fall
2514
  sizeat 20 20
2365
  sizeat 20 20
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
-
 
2438
        ifcount 24
2571
        {
2439
        {
2572
          ifcount 24
2440
          strength 999
2573
            {
2441
          ifrnd 128
2574
              strength 999
2442
            sound MOVIE2
2575
              ifrnd 128 sound MOVIE2 else sound MOVIE3
2443
          else
2576
              resetcount
2444
            sound MOVIE3
2577
            }
2445
          resetcount
2578
        }
2446
        }
2579
    }
2447
    }
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
  {
2589
     guts JIBS6 3
2455
    guts JIBS6 3
2590
     sound SQUISH2
2456
    sound SQUISH2
2591
     ifdead
2457
    ifdead
2592
       {
2458
    {
2593
         stopsound MALECAROL
2459
      stopsound MALECAROL
2594
         guts JIBS6 2
2460
      guts JIBS6 2
2595
         guts JIBS6 3
2461
      guts JIBS6 3
2596
         guts JIBS6 4
2462
      guts JIBS6 4
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
  }
2607
enda
2474
enda
2608
2475
2609
useractor notenemy FEMALEGEEK 20
2476
useractor notenemy FEMALEGEEK 20
2610
 ifhitweapon
2477
  ifhitweapon
2611
   {
2478
  {
2612
     guts JIBS6 3
2479
    guts JIBS6 3
2613
     sound SQUISH2
2480
    sound SQUISH2
2614
     ifdead
2481
    ifdead
2615
       {
2482
    {
2616
         stopsound FEMALECAROL
2483
      stopsound FEMALECAROL
2617
         guts JIBS6 2
2484
      guts JIBS6 2
2618
         guts JIBS6 3
2485
      guts JIBS6 3
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
  }
2629
enda
2497
enda
2630
2498
2631
state mariocode
2499
state mariocode
2632
 cstat 257
2500
  cstat 257
2633
 sizeat 62 62
2501
  sizeat 62 62
2634
ends
2502
ends
2635
2503
2636
useractor notenemy NWMARIO 0
2504
useractor notenemy NWMARIO 0
2637
 state mariocode
2505
  state mariocode
2638
enda
2506
enda
2639
2507
2640
useractor notenemy NWMARIO2 0
2508
useractor notenemy NWMARIO2 0
2641
 state mariocode
2509
  state mariocode
2642
enda
2510
enda