Subversion Repositories nw_plus

Rev

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

Rev 7 Rev 8
Line 64... Line 64...
64
       ifpdistl 1024
64
       ifpdistl 1024
65
         {
65
         {
66
           getplayer[THISACTOR].i temp
66
           getplayer[THISACTOR].i temp
67
           setactor[temp].htextra SNOWBALLAMOUNT
67
           setactor[temp].htextra SNOWBALLAMOUNT
68
           setactor[temp].htpicnum SNOWBALL
68
           setactor[temp].htpicnum SNOWBALL
-
 
69
           getactor[THISACTOR].owner temp2
-
 
70
           setactor[temp].htowner temp2
69
          // addphealth SNOWBALLAMOUNT
71
          // addphealth SNOWBALLAMOUNT
-
 
72
 
70
           debris SCRAP3 5
73
           debris SCRAP3 5
71
           globalsound DUKE_GRUNT
74
           globalsound DUKE_GRUNT
72
           state headhitstate
75
           state headhitstate
73
           palfrom 15 15 15
76
           palfrom 15 15 15
74
           killit
77
           killit
Line 428... Line 431...
428
  
431
  
429
  sound SELECT_WEAPON
432
  sound SELECT_WEAPON
430
  
433
  
431
ends
434
ends
432
 
435
 
-
 
436
state botshootrpg // so Santa shoots the player's RPG and not the Commander's
-
 
437
  eshoot RPG
-
 
438
  setactor[RETURN].extra RPG_WEAPON_STRENGTH
-
 
439
  setactor[RETURN].xrepeat 14
-
 
440
  setactor[RETURN].yrepeat 14
-
 
441
  sound RPG_SHOOT
-
 
442
ends
-
 
443
 
433
state botquickshootstate
444
state botquickshootstate
434
  
445
  
435
  ifspritepal 0 nullop else break
446
  ifspritepal 0 nullop else break
436
  
447
  
437
  ifp pshrunk break
448
  ifp pshrunk break
438
  ifp pdead break
449
  ifp pdead break
439
 
450
 
440
  ifspritepal 0
451
  ifspritepal 0
441
  {
-
 
442
    shoot RPG
-
 
443
    sound RPG_SHOOT
452
    state botshootrpg
444
  }
-
 
445
  else ifspritepal 3
453
  else ifspritepal 3
446
  {
454
  {
447
    shoot CHAINGUN
455
    shoot CHAINGUN
448
    sound CHAINGUN_FIRE
456
    sound CHAINGUN_FIRE
449
  }
457
  }
Line 470... Line 478...
470
    ifcount 5
478
    ifcount 5
471
    {
479
    {
472
      ifactioncount 5
480
      ifactioncount 5
473
      {
481
      {
474
        resetactioncount
482
        resetactioncount
475
        shoot RPG
483
        state botshootrpg
476
        sound RPG_SHOOT
-
 
477
      }
484
      }
478
  
485
  
479
    ifpdistl 4096
486
    ifpdistl 4096
480
      ifrnd 5
487
      ifrnd 5
481
        state botchangeweaponstate
488
        state botchangeweaponstate