Thanks to the fan community, I was able to save the first Brown Pig Tank from the Atomic Edition. However, I have two small unresolved issues.
1. The sound "ROAM" when it moves, does not work at all.
2. He never attacks the player automatically.
I remember that this code is not of myself but found here: http://www.nitro404....d=scorpion_tank
Here is the code:
define SCORPIONTANK 7170 define SCORPIONTANKSTRENGTH 1000 // More than twice as strong // NEW Scorpion Tank action ASCORPIONTANKSPIN 0 1 7 1 4 action ASCORPIONTANKSHOOTING 7 2 7 1 15 action ASCORPIONTANKWAIT 0 1 7 1 1 action ASCORPIONTANKDESTRUCT 0 1 7 1 1 action ASCORPIONTANKDEAD 0 1 7 1 1 move SCORPIONTANKFORWARD 260 // More than twice as fast move SCORPIONTANKSTOP state tank_explode debris SCRAP3 10 debris SCRAP1 7 debris SCRAP4 8 debris SCRAP2 9 debris SCRAP5 8 guts JIBS6 8 ends state shoot_rpg sound TANK_ROCKET // a blank sound slot shoot RPG ends state drop_rpg ifrnd 64 spawn RPGAMMO ends useractor enemy SCORPIONTANK SCORPIONTANKSTRENGTH fall ifpdistl 1024 { ifp palive { palfrom 63 63 addphealth -100 } } // Running over ifaction 0 { action ASCORPIONTANKWAIT cstat 257 clipdist 100 } else ifaction ASCORPIONTANKSPIN { soundonce SCORPIONTANK_ROAM ifactioncount 20 { ifrnd 16 ifcansee ifcanshoottarget { move TANKSTOP geth action ATANKSHOOTING stopsound SCORPIONTANK_ROAM } } ifrnd 16 move SCORPIONTANKFORWARD seekplayer } else ifaction ASCORPIONTANKSHOOTING { ifactioncount 22 { ifpdistg 4192 { ifrnd 128 state shoot_rpg else { sound TANK_MORTER shoot MORTER } // Makes it have a 50/50 chance // whether it shoots a grenade // or a rocket. } resetcount move 0 action ASCORPIONTANKWAIT } else ifactioncount 2 { ifcansee { ifpdistl 16384 { ifrnd 128 { sound TANK_JOKE // I used JOKE because it was like a blank slot. shoot SHOTGUN // stronger bullet } } else ifrnd 128 { sound PRED_ATTACK shoot FIRELASER } } else { move SCORPIONTANKFORWARD seekplayer action ATANKSPIN } } ifrnd 16 { stopsound SCORPIONTANK_ROAM move TANKSTOP faceplayerslow } } else ifaction ASCORPIONTANKWAIT { ifactioncount 32 { move SCORPIONTANKFORWARD seekplayer action ATANKSPIN } } else ifaction ASCORPIONTANKDESTRUCT { ifactioncount 64 action ASCORPIONTANKDEAD else ifactioncount 56 sound LASERTRIP_ARMING else ifactioncount 48 sound LASERTRIP_ARMING else ifactioncount 32 sound LASERTRIP_ARMING else ifactioncount 16 sound LASERTRIP_ARMING break } else ifaction ASCORPIONTANKDEAD { addkills 1 hitradius 6144 TOUGH TOUGH TOUGH TOUGH sound LASERTRIP_EXPLODE state tank_explode spawn EXPLOSION2 state drop_rpg ifrnd 128 spawn BURNING spawn PIGCOP killit } ifhitweapon { ifdead action ASCORPIONTANKDEAD else { debris SCRAP1 4 ifaction ASCORPIONTANKSHOOTING break ifrnd 192 { move SCORPIONTANKSTOP geth action ASCORPIONTANKSHOOTING stopsound SCORPIONTANK_ROAM } } } ifpdistl 1280 ifhitspace ifp pfacing ifangdiffl 512 action ASCORPIONTANKDESTRUCT enda