Subversion Repositories nw_plus

Rev

Rev 30 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30 Rev 66
Line 61... Line 61...
61
61
62
   ifai AISNOWBALL1
62
   ifai AISNOWBALL1
63
     {
63
     {
64
       ifpdistl 1024
64
       ifpdistl 1024
65
         {
65
         {
66
           getplayer[THISACTOR].i temp
66
           getplayer[THISACTOR].i nw_temp
67
           setactor[temp].htextra SNOWBALLAMOUNT
67
           setactor[nw_temp].htextra SNOWBALLAMOUNT
68
           setactor[temp].htpicnum SNOWBALL
68
           setactor[nw_temp].htpicnum SNOWBALL
69
          // getactor[THISACTOR].owner temp2
69
          // getactor[THISACTOR].owner nw_temp2
70
           setactor[temp].htowner owner
70
           setactor[nw_temp].htowner nw_owner
71
 
71
 
72
          // addphealth SNOWBALLAMOUNT
72
          // addphealth SNOWBALLAMOUNT
73
 
73
 
74
           debris SCRAP3 5
74
           debris SCRAP3 5
75
           globalsound DUKE_GRUNT
75
           globalsound DUKE_GRUNT
Line 2383... Line 2383...
2383
    ifcount 6
2383
    ifcount 6
2384
      ifpdistl RETRIEVEDISTANCE
2384
      ifpdistl RETRIEVEDISTANCE
2385
        ifcanseetarget
2385
        ifcanseetarget
2386
          {
2386
          {
2387
            sound RIP_PAPER
2387
            sound RIP_PAPER
2388
            ifvarl temp 1
2388
            ifvarl nw_temp 1
2389
            {
2389
            {
2390
              ifrnd 128
2390
              ifrnd 128
2391
                spawn SHIELD
2391
                spawn SHIELD
2392
              else
2392
              else
2393
                spawn SIXPAK
2393
                spawn SIXPAK
2394
            }
2394
            }
2395
            else
2395
            else
2396
              espawnvar temp // spawnvar // spawns the lotag, collected during EVENT_LOADACTOR
2396
              espawnvar nw_temp // spawnvar // spawns the lotag, collected during EVENT_LOADACTOR
2397
            killit
2397
            killit
2398
          }
2398
          }
2399
ends
2399
ends
2400
2400
2401
state present2
2401
state present2
Line 2404... Line 2404...
2404
    ifcount 6
2404
    ifcount 6
2405
      ifpdistl RETRIEVEDISTANCE
2405
      ifpdistl RETRIEVEDISTANCE
2406
        ifcanseetarget
2406
        ifcanseetarget
2407
          {
2407
          {
2408
            sound RIP_PAPER
2408
            sound RIP_PAPER
2409
            ifvarl temp 1
2409
            ifvarl nw_temp 1
2410
            {
2410
            {
2411
              ifrnd 128
2411
              ifrnd 128
2412
                spawn CHAINGUNSPRITE
2412
                spawn CHAINGUNSPRITE
2413
              else
2413
              else
2414
                spawn SHOTGUNSPRITE
2414
                spawn SHOTGUNSPRITE
2415
            }
2415
            }
2416
            else
2416
            else
2417
              espawnvar temp // spawnvar // spawns the lotag, collected during EVENT_LOADACTOR
2417
              espawnvar nw_temp // spawnvar // spawns the lotag, collected during EVENT_LOADACTOR
2418
            killit
2418
            killit
2419
          }
2419
          }
2420
ends
2420
ends
2421
2421
2422
2422