
####animationscript function main#####
# data/chars/misc/dust.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==14)
    {


if(frame == 9){

void self = getlocalvar("self");

killentity(self);

}

        return;
    }

}

####animationscript function main#####
# data/chars/snake_eyes/Snake_Eyes.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==33)
    {


    if(frame == 10){

      setindexedvar(1, NULL() );

    }

	        if(frame==2)
        {
            degravity(0.8);

        }
        if(frame==15)
        {
            degravity(0);

        }
        return;
    }
    if(animhandle==34)
    {
        if(frame==1)
        {
            aniLimit("ANI_FREESPECIAL", 12, 5);

        }
        if(frame==2)
        {
            mpcost(5);

        }
        if(frame==2)
        {
            shooter("bullet2", 87, 92, 0, 3, 0, 0);

        }
        if(frame==2)
        {
            toss("shel", 40, 86, 0);

        }
        if(frame==3)
        {
            keyint("ANI_FREESPECIAL", 12, "A2", 1, 0);

        }
        if(frame==3)
        {
            aniLimit("ANI_FREESPECIAL", 12, 5);

        }
        if(frame==4)
        {
            mpcost(5);

        }
        if(frame==4)
        {
            shooter("bullet2", 87, 92, 0, 3, 0, 0.2);

        }
        if(frame==4)
        {
            toss("shel", 40, 86, 0);

        }
        if(frame==5)
        {
            keyint("ANI_FREESPECIAL", 12, "A2", 1, 0);

        }
        if(frame==5)
        {
            aniLimit("ANI_FREESPECIAL", 12, 5);

        }
        if(frame==6)
        {
            mpcost(5);

        }
        if(frame==6)
        {
            shooter("bullet2", 87, 92, 0, 3, 0, -0.2);

        }
        if(frame==6)
        {
            toss("shel", 40, 86, 0);

        }
        if(frame==7)
        {
            keyint("ANI_FREESPECIAL", 12, "A2", 1, 0);

        }
        if(frame==7)
        {
            aniLimit("ANI_FREESPECIAL", 12, 5);

        }
        if(frame==8)
        {
            mpcost(5);

        }
        if(frame==8)
        {
            shooter("bullet2", 87, 92, 0, 3, 0, 0.4);

        }
        if(frame==8)
        {
            toss("shel", 40, 86, 0);

        }
        if(frame==9)
        {
            keyint("ANI_FREESPECIAL", 12, "A2", 1, 0);

        }
        if(frame==9)
        {
            aniLimit("ANI_FREESPECIAL", 12, 5);

        }
        if(frame==10)
        {
            mpcost(5);

        }
        if(frame==10)
        {
            shooter("bullet2", 87, 92, 0, 3, 0, -0.4);

        }
        if(frame==10)
        {
            toss("shel", 40, 86, 0);

        }
        if(frame==11)
        {
            keyint("ANI_FREESPECIAL", 1, "A2", 0, 5);

        }
        return;
    }
    if(animhandle==46)
    {
        if(frame==0)
        {
            dasher(2.2, 0, 0);

        }
        if(frame==3)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==49)
    {


    void self = getlocalvar("self");



    if(frame == 1){

      if(getindexedvar(1) == 1){

        changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW1"));

      }

    }

	        return;
    }

}

####animationscript function main#####
# data/chars/Hawk/Hawk.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==61)
    {


    if(frame == 10){

      setindexedvar(1, NULL() );

    }

	        if(frame==2)
        {
            degravity(0.8);

        }
        if(frame==15)
        {
            degravity(0);

        }
        return;
    }
    if(animhandle==62)
    {
        if(frame==2)
        {
            aniLimit("ANI_FREESPECIAL", 13, 5);

        }
        if(frame==3)
        {
            mpcost(5);

        }
        if(frame==3)
        {
            shooter("bullet2", 73, 75, 0, 3, 0, 0);

        }
        if(frame==3)
        {
            toss("shel", 20, 66, 0);

        }
        if(frame==4)
        {
            keyint("ANI_FREESPECIAL", 13, "A2", 1, 0);

        }
        if(frame==4)
        {
            aniLimit("ANI_FREESPECIAL", 13, 5);

        }
        if(frame==5)
        {
            mpcost(5);

        }
        if(frame==5)
        {
            shooter("bullet2", 73, 75, 0, 3, 0, 0.2);

        }
        if(frame==5)
        {
            toss("shel", 20, 66, 0);

        }
        if(frame==6)
        {
            keyint("ANI_FREESPECIAL", 13, "A2", 1, 0);

        }
        if(frame==6)
        {
            aniLimit("ANI_FREESPECIAL", 13, 5);

        }
        if(frame==7)
        {
            mpcost(5);

        }
        if(frame==7)
        {
            shooter("bullet2", 73, 75, 0, 3, 0, -0.2);

        }
        if(frame==7)
        {
            toss("shel", 20, 66, 0);

        }
        if(frame==8)
        {
            keyint("ANI_FREESPECIAL", 13, "A2", 1, 0);

        }
        if(frame==8)
        {
            aniLimit("ANI_FREESPECIAL", 13, 5);

        }
        if(frame==9)
        {
            mpcost(5);

        }
        if(frame==9)
        {
            shooter("bullet2", 73, 75, 0, 3, 0, 0.4);

        }
        if(frame==9)
        {
            toss("shel", 20, 66, 0);

        }
        if(frame==10)
        {
            keyint("ANI_FREESPECIAL", 13, "A2", 1, 0);

        }
        if(frame==10)
        {
            aniLimit("ANI_FREESPECIAL", 13, 5);

        }
        if(frame==11)
        {
            mpcost(5);

        }
        if(frame==11)
        {
            shooter("bullet2", 73, 75, 0, 3, 0, -0.4);

        }
        if(frame==11)
        {
            toss("shel", 20, 66, 0);

        }
        if(frame==12)
        {
            keyint("ANI_FREESPECIAL", 2, "A2", 0, 5);

        }
        return;
    }
    if(animhandle==74)
    {
        if(frame==0)
        {
            dasher(2.2, 0, 0);

        }
        if(frame==3)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==77)
    {


    void self = getlocalvar("self");



    if(frame == 1){

      if(getindexedvar(1) == 1){

        changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW1"));

      }

    }

	        if(frame==6)
        {
            spawn01("Jacket", -32, 140, 0);

        }
        return;
    }
    if(animhandle==78)
    {
        if(frame==1)
        {
            aniLimit("ANI_SPECIAL", 5, 20);

        }
        if(frame==2)
        {
            mpcost(20);

        }
        if(frame==2)
        {
            tosser("HGrenade", 40, 100, 0, 2, 2, 0);

        }
        if(frame==5)
        {
            keyint("ANI_SPECIAL", 1, "A3", 0, 20);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Snake_Eyes/stank.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==95)
    {
        if(frame==1)
        {
            spawn01("BXPlos", 0, 0, 0);

        }
        return;
    }
    if(animhandle==96)
    {
        if(frame==1)
        {
            shoot("TankBeam", 156, 45, 0);

        }
        return;
    }
    if(animhandle==97)
    {
        if(frame==1)
        {
            shooter2("PBomb", 156, 45, 0, 1.5, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Snake_Eyes/scycle.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==102)
    {
        if(frame==1)
        {
            keyint("ANI_ATTACKBACKWARD", 0, "L", 0);

        }
        if(frame==1)
        {
            keyint("ANI_ATTACKBACKWARD", 1, "L", 0);

        }
        if(frame==1)
        {
            shoot("bullett", 60, 66, 0);

        }
        if(frame==1)
        {
            keyint("ANI_ATTACKBACKWARD", 2, "L", 0);

        }
        if(frame==1)
        {
            shoot("bullett", 60, 66, 0);

        }
        if(frame==1)
        {
            keyint("ANI_ATTACKBACKWARD", 6, "L", 0);

        }
        if(frame==1)
        {
            shoot("bullett", 60, 66, 0);

        }
        if(frame==1)
        {
            keyint("ANI_ATTACKBACKWARD", 7, "L", 0);

        }
        if(frame==1)
        {
            shoot("bullett", 60, 66, 0);

        }
        if(frame==1)
        {
            keyint("ANI_ATTACKBACKWARD", 4, "L", 0);

        }
        if(frame==3)
        {
            shoot("bullett", 60, 66, 0);

        }
        return;
    }
    if(animhandle==103)
    {
        if(frame==2)
        {
            shooter("bullett", -140, 76, 0, -4, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Snake_Eyes/Snake_Run.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==115)
    {
        if(frame==0)
        {
            jumpback(-1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Snake_Eyes/sub/ssub.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==128)
    {
        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==129)
    {
        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==130)
    {
        if(frame==1)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==1)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==2)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==2)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==3)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==3)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==4)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==4)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==5)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==5)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==6)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==6)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==7)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==7)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==8)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==8)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==9)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==9)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        return;
    }
    if(animhandle==131)
    {
        if(frame==1)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==1)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==2)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==2)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==3)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==3)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==4)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==4)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==5)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==5)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==6)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==6)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==7)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==7)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==8)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==8)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==9)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==9)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        return;
    }
    if(animhandle==132)
    {
        if(frame==1)
        {
            degravity(0.8);

        }
        if(frame==1)
        {
            spawn01("Asap", -40, 15, 1);

        }
        if(frame==1)
        {
            spawn01("Asap", 20, 15, 1);

        }
        if(frame==2)
        {
            spawn01("Asap", 60, 15, 1);

        }
        if(frame==2)
        {
            spawn01("Asap", -20, 15, 1);

        }
        if(frame==3)
        {
            spawn01("Asap", 0, 15, 1);

        }
        if(frame==3)
        {
            spawn01("Asap", 40, 15, 1);

        }
        if(frame==4)
        {
            spawn01("Asap", -40, 15, 1);

        }
        if(frame==4)
        {
            spawn01("Asap", 20, 15, 1);

        }
        if(frame==5)
        {
            spawn01("Asap", 60, 15, 1);

        }
        if(frame==5)
        {
            spawn01("Asap", -20, 15, 1);

        }
        if(frame==6)
        {
            spawn01("Asap", 0, 15, 1);

        }
        if(frame==6)
        {
            spawn01("Asap", 40, 15, 1);

        }
        if(frame==7)
        {
            spawn01("Asap", -40, 15, 1);

        }
        if(frame==7)
        {
            spawn01("Asap", 20, 15, 1);

        }
        if(frame==8)
        {
            spawn01("Asap", 60, 15, 1);

        }
        if(frame==8)
        {
            spawn01("Asap", -20, 15, 1);

        }
        if(frame==9)
        {
            spawn01("Asap", 0, 15, 1);

        }
        if(frame==9)
        {
            spawn01("Asap", 40, 15, 1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Snake_Eyes/swamp/sswamp.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==143)
    {
        if(frame==1)
        {
            aniLimit("ANI_FREESPECIAL", 12, 5);

        }
        if(frame==2)
        {
            mpcost(5);

        }
        if(frame==2)
        {
            shooter("bullet2", 87, 32, 0, 3, 0, 0);

        }
        if(frame==3)
        {
            keyint("ANI_FREESPECIAL", 12, "A2", 1, 0);

        }
        if(frame==3)
        {
            aniLimit("ANI_FREESPECIAL", 12, 5);

        }
        if(frame==4)
        {
            mpcost(5);

        }
        if(frame==4)
        {
            shooter("bullet2", 87, 32, 0, 3, 0, 0.2);

        }
        if(frame==5)
        {
            keyint("ANI_FREESPECIAL", 12, "A2", 1, 0);

        }
        if(frame==5)
        {
            aniLimit("ANI_FREESPECIAL", 12, 5);

        }
        if(frame==6)
        {
            mpcost(5);

        }
        if(frame==6)
        {
            shooter("bullet2", 87, 32, 0, 3, 0, -0.2);

        }
        if(frame==7)
        {
            keyint("ANI_FREESPECIAL", 12, "A2", 1, 0);

        }
        if(frame==7)
        {
            aniLimit("ANI_FREESPECIAL", 12, 5);

        }
        if(frame==8)
        {
            mpcost(5);

        }
        if(frame==8)
        {
            shooter("bullet2", 87, 32, 0, 3, 0, 0.4);

        }
        if(frame==9)
        {
            keyint("ANI_FREESPECIAL", 12, "A2", 1, 0);

        }
        if(frame==9)
        {
            aniLimit("ANI_FREESPECIAL", 12, 5);

        }
        if(frame==10)
        {
            mpcost(5);

        }
        if(frame==10)
        {
            shooter("bullet2", 87, 32, 0, 3, 0, -0.4);

        }
        if(frame==11)
        {
            keyint("ANI_FREESPECIAL", 1, "A2", 0, 5);

        }
        return;
    }
    if(animhandle==149)
    {
        if(frame==4)
        {
            dasher(0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Snake_Eyes/skyhawk/skyhawk.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==151)
    {


    void self = getlocalvar("self");



    if(frame == 2){

      changeentityproperty(self,"noaicontrol",0);

    } else {

      changeentityproperty(self,"noaicontrol",1);

    }

        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==152)
    {


    void self = getlocalvar("self");



    if(frame == 2){

      changeentityproperty(self,"noaicontrol",0);

    } else {

      changeentityproperty(self,"noaicontrol",1);

    }

        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==153)
    {
        if(frame==1)
        {
            keyshoot("HawkBeam", 55, 4, 0, 0, 30);

        }
        return;
    }
    if(animhandle==154)
    {
        if(frame==1)
        {
            keyshoot("HawkBeam", 55, 4, 0, 0, 30);

        }
        if(frame==1)
        {
            shooter2("HawkMissile", 0, 5, 0, 1, -2, 0);

        }
        if(frame==2)
        {
            keyshoot("HawkBeam", 55, 4, 0, 0, 30);

        }
        if(frame==3)
        {
            keyshoot("HawkBeam", 55, 4, 0, 0, 30);

        }
        if(frame==4)
        {
            keyshoot("HawkBeam", 55, 4, 0, 0, 30);

        }
        if(frame==5)
        {
            beidle();

        }
        return;
    }
    if(animhandle==155)
    {
        if(frame==1)
        {
            keyshoot("HawkBeam", 55, 4, 0, 0, 30);

        }
        return;
    }
    if(animhandle==156)
    {
        if(frame==1)
        {
            degravity(0.5);

        }
        if(frame==1)
        {
            spawn01("Asap", -40, 15, 1);

        }
        if(frame==1)
        {
            spawn01("Asap", 20, 15, 1);

        }
        if(frame==1)
        {
            spawn01("Asap", 0, 15, 1);

        }
        if(frame==2)
        {
            spawn01("Asap", -20, 15, 1);

        }
        if(frame==2)
        {
            spawn01("Asap", 40, 15, 1);

        }
        if(frame==3)
        {
            spawn01("Asap", -40, 15, 1);

        }
        if(frame==3)
        {
            spawn01("Asap", 20, 15, 1);

        }
        if(frame==3)
        {
            spawn01("Asap", 0, 15, 1);

        }
        if(frame==4)
        {
            spawn01("Asap", -20, 15, 1);

        }
        if(frame==4)
        {
            spawn01("Asap", 40, 15, 1);

        }
        if(frame==5)
        {
            spawn01("Asap", -40, 15, 1);

        }
        if(frame==5)
        {
            spawn01("Asap", 20, 15, 1);

        }
        if(frame==5)
        {
            spawn01("Asap", 0, 15, 1);

        }
        if(frame==6)
        {
            spawn01("Asap", -20, 15, 1);

        }
        if(frame==6)
        {
            spawn01("Asap", 40, 15, 1);

        }
        if(frame==7)
        {
            spawn01("Asap", -40, 15, 1);

        }
        if(frame==7)
        {
            spawn01("Asap", 20, 15, 1);

        }
        if(frame==7)
        {
            spawn01("Asap", 0, 15, 1);

        }
        if(frame==8)
        {
            spawn01("Asap", -20, 15, 1);

        }
        if(frame==8)
        {
            spawn01("Asap", 40, 15, 1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Snake_EYES/VAMP/VAMP.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==160)
    {
        if(frame==1)
        {
            dasher(8, 0, 0);

        }
        if(frame==3)
        {
            dasher(0, 0, 0);

        }
        if(frame==5)
        {
            dasher(-5, 0, 0);

        }
        if(frame==7)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==161)
    {
        if(frame==1)
        {
            shooter("bullet2", -15, 127, 0, 3, 0, 0);

        }
        return;
    }
    if(animhandle==164)
    {
        if(frame==1)
        {
            spawn01("BXPlos", 0, 0, 0);

        }
        return;
    }
    if(animhandle==168)
    {
        if(frame==1)
        {
            dasher(8, 0, 0);

        }
        if(frame==3)
        {
            dasher(0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Snake_Eyes/skier/sskier.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==170)
    {
        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==173)
    {
        if(frame==1)
        {
            keyint("ANI_ATTACKBACKWARD", 0, "L", 0, 0);

        }
        if(frame==2)
        {
            shoot("bullett", 97, 65, 0);

        }
        return;
    }
    if(animhandle==174)
    {
        if(frame==2)
        {
            shooter("bullett", -114, 73, 0, -4, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Hawk/Htank.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==203)
    {
        if(frame==1)
        {
            spawn01("BXPlos", 0, 0, 0);

        }
        return;
    }
    if(animhandle==204)
    {
        if(frame==1)
        {
            shoot("TankBeam", 156, 45, 0);

        }
        return;
    }
    if(animhandle==205)
    {
        if(frame==1)
        {
            shooter2("PBomb", 156, 45, 0, 1.5, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/hawk/swamp/HSwamp.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==207)
    {
        if(frame==4)
        {
            spawn01("Jacket", -32, 80, 0);

        }
        return;
    }
    if(animhandle==219)
    {
        if(frame==4)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==221)
    {
        if(frame==2)
        {
            aniLimit("ANI_FREESPECIAL", 13, 5);

        }
        if(frame==3)
        {
            mpcost(5);

        }
        if(frame==3)
        {
            shooter("bullet2", 73, 19, 0, 3, 0, 0);

        }
        if(frame==4)
        {
            keyint("ANI_FREESPECIAL", 13, "A2", 1, 0);

        }
        if(frame==4)
        {
            aniLimit("ANI_FREESPECIAL", 13, 5);

        }
        if(frame==5)
        {
            mpcost(5);

        }
        if(frame==5)
        {
            shooter("bullet2", 73, 19, 0, 3, 0, 0.2);

        }
        if(frame==6)
        {
            keyint("ANI_FREESPECIAL", 13, "A2", 1, 0);

        }
        if(frame==6)
        {
            aniLimit("ANI_FREESPECIAL", 13, 5);

        }
        if(frame==7)
        {
            mpcost(5);

        }
        if(frame==7)
        {
            shooter("bullet2", 73, 19, 0, 3, 0, -0.2);

        }
        if(frame==8)
        {
            keyint("ANI_FREESPECIAL", 13, "A2", 1, 0);

        }
        if(frame==8)
        {
            aniLimit("ANI_FREESPECIAL", 13, 5);

        }
        if(frame==9)
        {
            mpcost(5);

        }
        if(frame==9)
        {
            shooter("bullet2", 73, 19, 0, 3, 0, 0.4);

        }
        if(frame==10)
        {
            keyint("ANI_FREESPECIAL", 13, "A2", 1, 0);

        }
        if(frame==10)
        {
            aniLimit("ANI_FREESPECIAL", 13, 5);

        }
        if(frame==11)
        {
            mpcost(5);

        }
        if(frame==11)
        {
            shooter("bullet2", 73, 19, 0, 3, 0, -0.4);

        }
        if(frame==12)
        {
            keyint("ANI_FREESPECIAL", 2, "A2", 0, 5);

        }
        return;
    }
    if(animhandle==222)
    {
        if(frame==1)
        {
            aniLimit("ANI_FREESPECIAL2", 5, 20);

        }
        if(frame==2)
        {
            mpcost(20);

        }
        if(frame==2)
        {
            tosser("HGrenade", 40, 40, 0, 2, 2, 0);

        }
        if(frame==5)
        {
            keyint("ANI_FREESPECIAL2", 1, "A3", 0, 20);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Hawk/sub/Hsub.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==225)
    {
        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==226)
    {
        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==227)
    {
        if(frame==1)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==1)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==2)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==2)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==3)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==3)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==4)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==4)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==5)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==5)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==6)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==6)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==7)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==7)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==8)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==8)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==9)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==9)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        return;
    }
    if(animhandle==228)
    {
        if(frame==1)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==1)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==2)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==2)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==3)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==3)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==4)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==4)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==5)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==5)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==6)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==6)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==7)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==7)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==8)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==8)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        if(frame==9)
        {
            keyshoot("TorpedoH", 66, 5, 0, 40);

        }
        if(frame==9)
        {
            keymissile("TorpedoU", -33, 33, 0, 2, 80);

        }
        return;
    }
    if(animhandle==229)
    {
        if(frame==1)
        {
            degravity(0.8);

        }
        if(frame==1)
        {
            spawn01("Asap", -40, 15, 1);

        }
        if(frame==1)
        {
            spawn01("Asap", 20, 15, 1);

        }
        if(frame==2)
        {
            spawn01("Asap", 60, 15, 1);

        }
        if(frame==2)
        {
            spawn01("Asap", -20, 15, 1);

        }
        if(frame==3)
        {
            spawn01("Asap", 0, 15, 1);

        }
        if(frame==3)
        {
            spawn01("Asap", 40, 15, 1);

        }
        if(frame==4)
        {
            spawn01("Asap", -40, 15, 1);

        }
        if(frame==4)
        {
            spawn01("Asap", 20, 15, 1);

        }
        if(frame==5)
        {
            spawn01("Asap", 60, 15, 1);

        }
        if(frame==5)
        {
            spawn01("Asap", -20, 15, 1);

        }
        if(frame==6)
        {
            spawn01("Asap", 0, 15, 1);

        }
        if(frame==6)
        {
            spawn01("Asap", 40, 15, 1);

        }
        if(frame==7)
        {
            spawn01("Asap", -40, 15, 1);

        }
        if(frame==7)
        {
            spawn01("Asap", 20, 15, 1);

        }
        if(frame==8)
        {
            spawn01("Asap", 60, 15, 1);

        }
        if(frame==8)
        {
            spawn01("Asap", -20, 15, 1);

        }
        if(frame==9)
        {
            spawn01("Asap", 0, 15, 1);

        }
        if(frame==9)
        {
            spawn01("Asap", 40, 15, 1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Hawk/skyhawk/Hskyhawk.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==231)
    {


    void self = getlocalvar("self");



    if(frame == 2){

      changeentityproperty(self,"noaicontrol",0);

    } else {

      changeentityproperty(self,"noaicontrol",1);

    }

        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==232)
    {


    void self = getlocalvar("self");



    if(frame == 2){

      changeentityproperty(self,"noaicontrol",0);

    } else {

      changeentityproperty(self,"noaicontrol",1);

    }

        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==233)
    {
        if(frame==1)
        {
            keyshoot("HawkBeam", 55, 4, 0, 0, 30);

        }
        return;
    }
    if(animhandle==234)
    {
        if(frame==1)
        {
            keyshoot("HawkBeam", 55, 4, 0, 0, 30);

        }
        if(frame==1)
        {
            shooter2("HawkMissile", 0, 5, 0, 1, -2, 0);

        }
        if(frame==2)
        {
            keyshoot("HawkBeam", 55, 4, 0, 0, 30);

        }
        if(frame==3)
        {
            keyshoot("HawkBeam", 55, 4, 0, 0, 30);

        }
        if(frame==4)
        {
            keyshoot("HawkBeam", 55, 4, 0, 0, 30);

        }
        if(frame==5)
        {
            beidle();

        }
        return;
    }
    if(animhandle==235)
    {
        if(frame==1)
        {
            keyshoot("HawkBeam", 55, 4, 0, 0, 30);

        }
        return;
    }
    if(animhandle==236)
    {
        if(frame==1)
        {
            degravity(0.5);

        }
        if(frame==1)
        {
            spawn01("Asap", -40, 15, 1);

        }
        if(frame==1)
        {
            spawn01("Asap", 20, 15, 1);

        }
        if(frame==1)
        {
            spawn01("Asap", 0, 15, 1);

        }
        if(frame==2)
        {
            spawn01("Asap", -20, 15, 1);

        }
        if(frame==2)
        {
            spawn01("Asap", 40, 15, 1);

        }
        if(frame==3)
        {
            spawn01("Asap", -40, 15, 1);

        }
        if(frame==3)
        {
            spawn01("Asap", 20, 15, 1);

        }
        if(frame==3)
        {
            spawn01("Asap", 0, 15, 1);

        }
        if(frame==4)
        {
            spawn01("Asap", -20, 15, 1);

        }
        if(frame==4)
        {
            spawn01("Asap", 40, 15, 1);

        }
        if(frame==5)
        {
            spawn01("Asap", -40, 15, 1);

        }
        if(frame==5)
        {
            spawn01("Asap", 20, 15, 1);

        }
        if(frame==5)
        {
            spawn01("Asap", 0, 15, 1);

        }
        if(frame==6)
        {
            spawn01("Asap", -20, 15, 1);

        }
        if(frame==6)
        {
            spawn01("Asap", 40, 15, 1);

        }
        if(frame==7)
        {
            spawn01("Asap", -40, 15, 1);

        }
        if(frame==7)
        {
            spawn01("Asap", 20, 15, 1);

        }
        if(frame==7)
        {
            spawn01("Asap", 0, 15, 1);

        }
        if(frame==8)
        {
            spawn01("Asap", -20, 15, 1);

        }
        if(frame==8)
        {
            spawn01("Asap", 40, 15, 1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Hawk/VAMP/HVAMP.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==240)
    {
        if(frame==1)
        {
            dasher(8, 0, 0);

        }
        if(frame==3)
        {
            dasher(0, 0, 0);

        }
        if(frame==5)
        {
            dasher(-5, 0, 0);

        }
        if(frame==7)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==241)
    {
        if(frame==1)
        {
            shooter("bullet2", -15, 127, 0, 3, 0, 0);

        }
        return;
    }
    if(animhandle==244)
    {
        if(frame==1)
        {
            spawn01("BXPlos", 0, 0, 0);

        }
        return;
    }
    if(animhandle==248)
    {
        if(frame==1)
        {
            dasher(8, 0, 0);

        }
        if(frame==3)
        {
            dasher(0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Hawk/Hawk_Run.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==253)
    {
        if(frame==0)
        {
            jumpback(-1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Hawk/hcycle.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==290)
    {
        if(frame==1)
        {
            keyint("ANI_ATTACKBACKWARD", 0, "L", 0);

        }
        if(frame==1)
        {
            keyint("ANI_ATTACKBACKWARD", 1, "L", 0);

        }
        if(frame==1)
        {
            shoot("bullett", 60, 85, 0);

        }
        if(frame==1)
        {
            keyint("ANI_ATTACKBACKWARD", 2, "L", 0);

        }
        if(frame==1)
        {
            shoot("bullett", 60, 85, 0);

        }
        if(frame==1)
        {
            keyint("ANI_ATTACKBACKWARD", 6, "L", 0);

        }
        if(frame==1)
        {
            shoot("bullett", 60, 85, 0);

        }
        if(frame==1)
        {
            keyint("ANI_ATTACKBACKWARD", 7, "L", 0);

        }
        if(frame==1)
        {
            shoot("bullett", 60, 85, 0);

        }
        if(frame==1)
        {
            keyint("ANI_ATTACKBACKWARD", 4, "L", 0);

        }
        if(frame==3)
        {
            shoot("bullett", 60, 85, 0);

        }
        return;
    }
    if(animhandle==291)
    {
        if(frame==2)
        {
            shooter("bullett", -160, 85, 0, -4, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Hawk/skier/hskier.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==299)
    {
        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==302)
    {
        if(frame==1)
        {
            keyint("ANI_ATTACKBACKWARD", 0, "L", 0, 0);

        }
        if(frame==2)
        {
            shoot("bullett", 97, 75, 0);

        }
        return;
    }
    if(animhandle==303)
    {
        if(frame==2)
        {
            shooter("bullett", -94, 73, 0, -4, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/hawk/sub/HWhale.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==311)
    {
        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==312)
    {
        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==315)
    {
        if(frame==1)
        {
            shoot("TankBeam", 74, 46, 0);

        }
        return;
    }
    if(animhandle==316)
    {
        if(frame==1)
        {
            shooter2("WHALECharge", 0, -5, 0, 0, -1, 0);

        }
        return;
    }
    if(animhandle==317)
    {
        if(frame==1)
        {
            shooter2("WHALERocket", -32, 77, 0, 1, 2, 0);

        }
        if(frame==1)
        {
            shooter2("WHALERocket", -27, 73, 0, 1, 2, 0);

        }
        return;
    }
    if(animhandle==318)
    {
        if(frame==1)
        {
            shooter2("WHALERocket", -32, 77, 0, 1, 2, 0);

        }
        if(frame==1)
        {
            shooter2("WHALERocket", -27, 73, 0, 1, 2, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Snake_Eyes/sub/SWhale.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==320)
    {
        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==321)
    {
        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==324)
    {
        if(frame==1)
        {
            shoot("TankBeam", 74, 46, 0);

        }
        return;
    }
    if(animhandle==325)
    {
        if(frame==1)
        {
            shooter2("WHALECharge", 0, -5, 0, 0, -1, 0);

        }
        return;
    }
    if(animhandle==326)
    {
        if(frame==1)
        {
            shooter2("WHALERocket", -32, 77, 0, 1, 2, 0);

        }
        if(frame==1)
        {
            shooter2("WHALERocket", -27, 73, 0, 1, 2, 0);

        }
        return;
    }
    if(animhandle==327)
    {
        if(frame==1)
        {
            shooter2("WHALERocket", -32, 77, 0, 1, 2, 0);

        }
        if(frame==1)
        {
            shooter2("WHALERocket", -27, 73, 0, 1, 2, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/misc/arrow/rocketz.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==330)
    {


    void self = getlocalvar("self");



    if (frame == 1){

      changeentityproperty(self, "velocity", 0, 0, 0);

    }

        return;
    }

}

####animationscript function main#####
# data/chars/Snake_Eyes/SBazooka/SBazooka.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==334)
    {
        if(frame==1)
        {
            shoot("Rocketz", 58, 90, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Hawk/HBazooka/HBazooka.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==340)
    {
        if(frame==1)
        {
            shoot("Rocketz", 64, 75, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/astronaut/astronaut.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==350)
    {
        if(frame==1)
        {
            shooter("bullet2", 75, 70, 0, 3, 0, 0);

        }
        if(frame==3)
        {
            shooter("bullet2", 75, 70, 0, 3, 0, 0.3);

        }
        if(frame==5)
        {
            shooter("bullet2", 75, 70, 0, 3, 0, -0.3);

        }
        if(frame==6)
        {
            keyint("ANI_FREESPECIAL", 0, "A2", 0, 0);

        }
        return;
    }
    if(animhandle==352)
    {
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==353)
    {
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/astronaut/shship.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==356)
    {


    void self = getlocalvar("self");



    if(frame == 2){

      changeentityproperty(self,"noaicontrol",0);

    } else {

      changeentityproperty(self,"noaicontrol",1);

    }

        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==357)
    {


    void self = getlocalvar("self");



    if(frame == 2){

      changeentityproperty(self,"noaicontrol",0);

    } else {

      changeentityproperty(self,"noaicontrol",1);

    }

        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==358)
    {
        if(frame==1)
        {
            keyshoot("SLaser", 47, 4, 0, 0, 50);

        }
        return;
    }
    if(animhandle==359)
    {
        if(frame==1)
        {
            keyshoot("SLaser", 47, 4, 0, 0, 50);

        }
        return;
    }
    if(animhandle==360)
    {
        if(frame==1)
        {
            degravity(0.5);

        }
        if(frame==2)
        {
            spawn01("SpaceXplos", 0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/tomcat/tomcat.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==361)
    {


    void self = getlocalvar("self");



    if(frame == 0){

      int X = getindexedvar(3);

      if(X == 1){

        changeentityproperty(self,"animation", openborconstant("ANI_RESPAWN"));

      }

    }

    if(frame == 1){

      changeentityproperty(self,"health",100);

      setglobalvar("Bomb", 30);

    }

    if(frame == 18){

      changeentityproperty(self,"noaicontrol",0);

    } else {

      changeentityproperty(self,"noaicontrol",1);

    }

        if(frame==1)
        {
            dasher(0.5, 0, 0);

        }
        if(frame==2)
        {
            dasher(1, 0, 0);

        }
        if(frame==3)
        {
            dasher(1.5, 0, 0);

        }
        if(frame==4)
        {
            dasher(2, 0, 0);

        }
        if(frame==5)
        {
            dasher(2, 0.5, 0);

        }
        if(frame==6)
        {
            dasher(2, 1, 0);

        }
        if(frame==10)
        {
            dasher(2, 1.5, 0);

        }
        if(frame==14)
        {
            dasher(2, 0, 0);

        }
        return;
    }
    if(animhandle==362)
    {


    void self = getlocalvar("self");

    int x = getentityproperty(self,"x"); //Get character's x coordinate

    int z = getentityproperty(self,"z"); //Get character's z coordinate

    int a = getindexedvar(2); //Get respawn a coordinate



    if(a!=NULL()){

      if(frame == 1){

        changeentityproperty(self, "position", x, z, a);

      }

    }



    if(frame == 8){

      changeentityproperty(self,"noaicontrol",0);

    } else {

      changeentityproperty(self,"noaicontrol",1);

    }

        if(frame==2)
        {
            dasher(2, 0, 0);

        }
        if(frame==8)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==363)
    {
        if(frame==1)
        {
            attack0("ANI_FOLLOW1");

        }
        return;
    }
    if(animhandle==365)
    {
        if(frame==1)
        {
            dasher(2, 0, 0);

        }
        if(frame==2)
        {
            shooterDmg("Asap2", -12, 7, 1, -0.5, 0, 0, 0.51);

        }
        if(frame==2)
        {
            keyspeed(0.05, 2, 3);

        }
        if(frame==2)
        {
            keyshootS("TShot", 14, 1, 2.5, -1, 15);

        }
        if(frame==2)
        {
            keyshoot2("TShot", 14, 1, 2.5, 1, 15);

        }
        if(frame==2)
        {
            keybomb("TBomb", 0, -5, 0.4, 0, 20);

        }
        if(frame==3)
        {
            keyshootS("TShot", 14, 1, 2.5, -1, 15);

        }
        if(frame==3)
        {
            keyshoot2("TShot", 14, 1, 2.5, 1, 15);

        }
        if(frame==3)
        {
            keybomb("TBomb", 0, -5, 0.4, 0, 20);

        }
        if(frame==4)
        {
            shooterDmg("Asap2", -12, 7, 1, -0.5, 0, 0, 0.26);

        }
        if(frame==4)
        {
            keyspeed(0.05, 2, 3);

        }
        if(frame==4)
        {
            keyshootS("TShot", 14, 1, 2.5, -1, 15);

        }
        if(frame==4)
        {
            keyshoot2("TShot", 14, 1, 2.5, 1, 15);

        }
        if(frame==4)
        {
            keybomb("TBomb", 0, -5, 0.4, 0, 20);

        }
        if(frame==5)
        {
            keyshootS("TShot", 14, 1, 2.5, -1, 15);

        }
        if(frame==5)
        {
            keyshoot2("TShot", 14, 1, 2.5, 1, 15);

        }
        if(frame==5)
        {
            keybomb("TBomb", 0, -5, 0.4, 0, 20);

        }
        if(frame==6)
        {
            shooterDmg("Asap2", -12, 7, 1, -0.5, 0, 0, 0.51);

        }
        if(frame==6)
        {
            keyspeed(0.05, 2, 3);

        }
        if(frame==6)
        {
            keyshootS("TShot", 14, 1, 2.5, -1, 15);

        }
        if(frame==6)
        {
            keyshoot2("TShot", 14, 1, 2.5, 1, 15);

        }
        if(frame==6)
        {
            keybomb("TBomb", 0, -5, 0.4, 0, 20);

        }
        return;
    }
    if(animhandle==366)
    {
        if(frame==1)
        {
            shooterDmg("Asap2", -12, 7, 1, -0.5, 0, 0, 0.51);

        }
        if(frame==1)
        {
            dasher(1, 0, 0);

        }
        if(frame==2)
        {
            shooterDmg("Asap2", -12, 7, 1, -0.5, 0, 0, 0.26);

        }
        if(frame==2)
        {
            dasher(0.5, 0, 0);

        }
        if(frame==3)
        {
            shooterDmg("Asap2", -12, 7, 1, -0.5, 0, 0, 0.51);

        }
        if(frame==3)
        {
            dasher(0, 0, 0);

        }
        if(frame==4)
        {
            shooterDmg("Asap2", -12, 7, 1, 0.5, 0, 0, 0.26);

        }
        if(frame==4)
        {
            dasher(-0.5, 0, 0);

        }
        if(frame==5)
        {
            shooterDmg("Asap2", -12, 7, 1, 0.5, 0, 0, 0.51);

        }
        if(frame==5)
        {
            dasher(-1, 0, 0);

        }
        if(frame==6)
        {
            shooterDmg("Asap2", -12, 7, 1, 0.5, 0, 0, 0.26);

        }
        if(frame==6)
        {
            dasher(-1.5, 0, 0);

        }
        if(frame==7)
        {
            shooterDmg("Asap2", -12, 7, 1, 0.5, 0, 0, 0.51);

        }
        if(frame==7)
        {
            dasher(-2, 0, 0);

        }
        if(frame==8)
        {
            flip();

        }
        if(frame==8)
        {
            dasher(2, 0, 0);

        }
        if(frame==8)
        {
            shooterDmg("Asap2", -12, 7, 1, -0.5, 0, 0, 0.26);

        }
        if(frame==9)
        {
            attack0("ANI_FOLLOW1");

        }
        return;
    }
    if(animhandle==367)
    {
        if(frame==1)
        {
            degravity(0.5);

        }
        if(frame==1)
        {
            spawn01("SpaceXplos", 0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/commander/commanderPW.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==377)
    {
        if(frame==2)
        {
            tosser("HGrenade", 35, 100, 0, 1, 2, 0);

        }
        if(frame==2)
        {
            tosser("HGrenade", 35, 100, 0, 1.5, 1, -0.2);

        }
        if(frame==2)
        {
            tosser("HGrenade", 35, 100, 0, 1.5, 1, 0.2);

        }
        return;
    }
    if(animhandle==378)
    {
        if(frame==1)
        {
            dasher(0, 0, -1);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==379)
    {
        if(frame==1)
        {
            dasher(0, 0, 1);

        }
        if(frame==2)
        {
            dasher(0, 0, 0);

        }
        return;
    }
    if(animhandle==380)
    {
        if(frame==2)
        {
            tosser("HGrenade", 35, 100, 0, -0.5, 1.5, 0);

        }
        if(frame==2)
        {
            tosser("HGrenade", 35, 100, 0, -1, 0.8, -0.2);

        }
        if(frame==2)
        {
            tosser("HGrenade", 35, 100, 0, -1, 0.8, 0.2);

        }
        if(frame==2)
        {
            tosser("HGrenade", 35, 100, 0, 0.5, 1.5, 0);

        }
        if(frame==2)
        {
            tosser("HGrenade", 35, 100, 0, 1, 0.8, -0.2);

        }
        if(frame==2)
        {
            tosser("HGrenade", 35, 100, 0, 1, 0.8, 0.2);

        }
        return;
    }
    if(animhandle==381)
    {
        if(frame==0)
        {
            target(4, 2, 60, 0, 0, 1);

        }
        if(frame==1)
        {
            tossT("HGrenade", 63, 94, 0, 2);

        }
        return;
    }
    if(animhandle==382)
    {
        if(frame==2)
        {
            shooter("bullet2", 50, 87, 1, 3, 0, 0);

        }
        if(frame==2)
        {
            tosser("shel", 0, 90, 0, -0.5, 2, 0);

        }
        if(frame==3)
        {
            keyint("ANI_FREESPECIAL2", 16, "A2", 1);

        }
        if(frame==4)
        {
            shooter("bullet2", 50, 87, 1, 3, 0, -0.2);

        }
        if(frame==4)
        {
            tosser("shel", 0, 90, 0, -0.5, 2, 0);

        }
        if(frame==5)
        {
            keyint("ANI_FREESPECIAL2", 16, "A2", 1);

        }
        if(frame==6)
        {
            shooter("bullet2", 50, 87, 1, 3, 0, 0.4);

        }
        if(frame==6)
        {
            tosser("shel", 0, 90, 0, -0.5, 2, 0);

        }
        if(frame==7)
        {
            keyint("ANI_FREESPECIAL2", 16, "A2", 1);

        }
        if(frame==8)
        {
            shooter("bullet2", 50, 87, 1, 3, 0, 0.2);

        }
        if(frame==8)
        {
            tosser("shel", 0, 90, 0, -0.5, 2, 0);

        }
        if(frame==9)
        {
            keyint("ANI_FREESPECIAL2", 16, "A2", 1);

        }
        if(frame==10)
        {
            shooter("bullet2", 50, 87, 1, 3, 0, 0);

        }
        if(frame==10)
        {
            tosser("shel", 0, 90, 0, -0.5, 2, 0);

        }
        if(frame==11)
        {
            keyint("ANI_FREESPECIAL2", 16, "A2", 1);

        }
        if(frame==12)
        {
            shooter("bullet2", 50, 87, 1, 3, 0, -0.4);

        }
        if(frame==12)
        {
            tosser("shel", 0, 90, 0, -0.5, 2, 0);

        }
        if(frame==13)
        {
            keyint("ANI_FREESPECIAL2", 16, "A2", 1);

        }
        if(frame==14)
        {
            shooter("bullet2", 50, 87, 1, 3, 0, 0);

        }
        if(frame==14)
        {
            tosser("shel", 0, 90, 0, -0.5, 2, 0);

        }
        if(frame==15)
        {
            keyint("ANI_FREESPECIAL2", 2, "A2", 0);

        }
        return;
    }
    if(animhandle==385)
    {
        if(frame==1)
        {
            jumptobranch("Replay", 1);

        }
        return;
    }
    if(animhandle==386)
    {
        if(frame==1)
        {
            keyint("ANI_ATTACKUP", 0, "U", 0);

        }
        if(frame==1)
        {
            keyint("ANI_ATTACKDOWN", 0, "D", 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/misc/cruser2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==424)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 2, 0, 0);

        }
        if(frame==1)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 1.6, 0, 0);

        }
        if(frame==2)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 1.2, 0, 0);

        }
        if(frame==3)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0.8, 0, 0);

        }
        if(frame==4)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0.4, 0, 0);

        }
        if(frame==5)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);

        }
        if(frame==6)
        {
            changeentityproperty(getlocalvar("self"), "velocity", -0.4, 0, 0);

        }
        if(frame==7)
        {
            changeentityproperty(getlocalvar("self"), "velocity", -0.8, 0, 0);

        }
        if(frame==8)
        {
            changeentityproperty(getlocalvar("self"), "velocity", -1.2, 0, 0);

        }
        if(frame==9)
        {
            changeentityproperty(getlocalvar("self"), "velocity", -1.8, 0, 0);

        }
        if(frame==10)
        {
            changeentityproperty(getlocalvar("self"), "velocity", -2, 0, 0);

        }
        if(frame==11)
        {
            changeentityproperty(getlocalvar("self"), "velocity", -4, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/misc/alarme2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==441)
    {
        if(frame==0)
        {
            startlop();

        }
        if(frame==4)
        {
            endlop(3, 5);

        }
        if(frame==8)
        {
            endlop(7, 5);

        }
        if(frame==12)
        {
            endlop(11, 5);

        }
        return;
    }
    if(animhandle==442)
    {


	jumptobranch("b8", 1);

	        return;
    }

}

####animationscript function main#####
# data/chars/Cobra_Officer/Cobra_Officer.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==446)
    {


    void self = getlocalvar("self");

    int Aggro = getentityproperty(self,"aggression");



    if(frame == 0){

      if(Aggro >= 20){

        changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW1"));

      }

    }

	        if(frame==4)
        {
            shoot("bulletE", 62, 92, 0);

        }
        return;
    }
    if(animhandle==448)
    {
        if(frame==3)
        {
            shoot("bulletE", 62, 92, 0);

        }
        if(frame==4)
        {
            shoot("bulletE", 62, 92, 0);

        }
        if(frame==5)
        {
            shoot("bulletE", 62, 92, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/shocker/minivan/minivan.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==454)
    {
        if(frame==0)
        {
            spawner("minivan2", 0, 0, 0);

        }
        if(frame==10)
        {
            change("Ani_Follow4");

        }
        return;
    }
    if(animhandle==455)
    {
        if(frame==0)
        {
            startlop();

        }
        if(frame==0)
        {
            tattack5(800, 800, 8, 6);

        }
        if(frame==1)
        {
            plcount(0, "Ani_follow2");

        }
        if(frame==1)
        {
            encount(12, "Ani_follow2");

        }
        if(frame==4)
        {
            endlop(2, 10);

        }
        if(frame==5)
        {
            dashz();

        }
        if(frame==6)
        {
            stop();

        }
        if(frame==7)
        {
            dashx(5);

        }
        if(frame==10)
        {
            endlop(9, 23);

        }
        if(frame==10)
        {
            stop();

        }
        if(frame==11)
        {
            spawner4("Cobra_Officer", 5, 5, 0, "ANI_Follow1");

        }
        if(frame==12)
        {
            spawner4("Cobra_Officer", 30, 50, 0, "ANI_Follow1");

        }
        if(frame==13)
        {
            spawner4("Cobra_Officer", -20, -10, 0, "ANI_Follow1");

        }
        if(frame==14)
        {
            spawner4("Cobra_Officer", 15, 25, 0, "ANI_Follow1");

        }
        if(frame==16)
        {
            dashx(-2);

        }
        if(frame==20)
        {
            endlop(19, 59);

        }
        if(frame==20)
        {
            stop();

        }
        return;
    }
    if(animhandle==456)
    {
        if(frame==0)
        {
            spawner("BXPlos2", 0, 0, 0);

        }
        if(frame==0)
        {
            dmgent3("Cobra_Officer", 1000);

        }
        if(frame==1)
        {
            spawner("BXPlos2", 20, 50, -10);

        }
        if(frame==2)
        {
            spawner("BXPlos2", -30, 30, -5);

        }
        if(frame==3)
        {
            spawner("BXPlos2", 0, 0, 0);

        }
        if(frame==4)
        {
            spawner("BXPlos2", 80, 50, -10);

        }
        if(frame==5)
        {
            spawner("BXPlos2", -80, 30, -5);

        }
        if(frame==6)
        {
            spawner("BXPlos2", 0, 0, 0);

        }
        if(frame==7)
        {
            spawner("BXPlos2", 20, 50, -10);

        }
        if(frame==8)
        {
            spawner("BXPlos2", -30, 30, -5);

        }
        return;
    }
    if(animhandle==457)
    {
        if(frame==0)
        {
            startlop();

        }
        if(frame==0)
        {
            tattack5(800, 800, 8, 6);

        }
        if(frame==4)
        {
            endlop(2, 6);

        }
        if(frame==5)
        {
            dashz();

        }
        if(frame==6)
        {
            stop();

        }
        if(frame==7)
        {
            dashx(6);

        }
        if(frame==10)
        {
            endlop(9, 27);

        }
        if(frame==10)
        {
            stop();

        }
        if(frame==16)
        {
            dashx(-3);

        }
        if(frame==20)
        {
            endlop(19, 70);

        }
        if(frame==20)
        {
            stop();

        }
        if(frame==22)
        {
            change("Ani_Follow4");

        }
        return;
    }
    if(animhandle==458)
    {
        if(frame==0)
        {
            startlop();

        }
        if(frame==0)
        {
            tattack5(800, 800, 8, 6);

        }
        if(frame==4)
        {
            endlop(2, 6);

        }
        if(frame==5)
        {
            dashz();

        }
        if(frame==6)
        {
            stop();

        }
        if(frame==7)
        {
            dashx(5);

        }
        if(frame==8)
        {
            stop();

        }
        if(frame==9)
        {
            spawner4("Cobra_Officer", 5, 5, 0, "ANI_Follow1");

        }
        if(frame==10)
        {
            spawner4("Cobra_Officer", 30, 50, 0, "ANI_Follow1");

        }
        if(frame==11)
        {
            spawner4("Cobra_Officer", -20, -10, 0, "ANI_Follow1");

        }
        if(frame==12)
        {
            spawner4("Cobra_Officer", 15, 25, 0, "ANI_Follow1");

        }
        if(frame==14)
        {
            dashx(-3);

        }
        if(frame==15)
        {
            stop();

        }
        return;
    }
    if(animhandle==459)
    {
        if(frame==0)
        {
            startlop();

        }
        if(frame==0)
        {
            tattack5(1500, 1500, 8, 6);

        }
        if(frame==4)
        {
            endlop(2, 10);

        }
        if(frame==5)
        {
            dashz();

        }
        if(frame==5)
        {
            plcount(0, "Ani_Follow4");

        }
        if(frame==6)
        {
            stop();

        }
        if(frame==7)
        {
            dashx(7);

        }
        if(frame==8)
        {
            tattack5(1500, 1500, 8, 6);

        }
        if(frame==9)
        {
            dashz();

        }
        if(frame==10)
        {
            stop();

        }
        if(frame==10)
        {
            plcount(0, "Ani_Follow5");

        }
        if(frame==11)
        {
            dashx(7);

        }
        if(frame==12)
        {
            tattack5(1500, 1500, 8, 6);

        }
        if(frame==13)
        {
            dashz();

        }
        if(frame==14)
        {
            stop();

        }
        if(frame==15)
        {
            dashx(5);

        }
        if(frame==16)
        {
            stop();

        }
        if(frame==17)
        {
            spawner4("Cobra_Officer", 5, 5, 0, "ANI_Follow1");

        }
        if(frame==18)
        {
            spawner4("Cobra_Officer", 30, 50, 0, "ANI_Follow1");

        }
        if(frame==19)
        {
            spawner4("Cobra_Officer", -20, -10, 0, "ANI_Follow1");

        }
        if(frame==20)
        {
            spawner4("Cobra_Officer", 15, 25, 0, "ANI_Follow1");

        }
        if(frame==22)
        {
            dashx(-2);

        }
        if(frame==23)
        {
            stop();

        }
        return;
    }
    if(animhandle==460)
    {
        if(frame==0)
        {
            startlop();

        }
        if(frame==0)
        {
            dashx(2);

        }
        if(frame==1)
        {
            stop();

        }
        if(frame==2)
        {
            change("ANi_Follow4");

        }
        return;
    }

}

####animationscript function main#####
# data/chars/shocker/minivan/minivan2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==476)
    {
        if(frame==0)
        {
            dmparent(10000);

        }
        if(frame==1)
        {
            dmgent3("Cobra_Officer", 1000);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/BAT/BAT.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==479)
    {
        if(frame==2)
        {
            shoot("BulletE", 44, 73, 0);

        }
        if(frame==4)
        {
            shoot("BulletE", 44, 73, 0);

        }
        if(frame==6)
        {
            shoot("BulletE", 44, 73, 0);

        }
        return;
    }
    if(animhandle==480)
    {
        if(frame==2)
        {
            shooter("BulletE", 44, 73, 0, 3, 0, 0);

        }
        if(frame==4)
        {
            shooter("BulletE", 44, 73, 0, 3, 0, 0.15);

        }
        if(frame==6)
        {
            shooter("BulletE", 44, 73, 0, 3, 0, -0.3);

        }
        if(frame==8)
        {
            shooter("BulletE", 44, 73, 0, 3, 0, 0.3);

        }
        if(frame==10)
        {
            shooter("BulletE", 44, 73, 0, 3, 0, -0.15);

        }
        return;
    }
    if(animhandle==481)
    {
        if(frame==11)
        {
            spawn01("BXPlos2", 0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/clone/clone.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==491)
    {
        if(frame==2)
        {
            spawner("exp2", -100, 0, 0);

        }
        if(frame==3)
        {
            spawner("exp2", -90, 0, 0);

        }
        if(frame==4)
        {
            spawner("exp2", -110, 0, 0);

        }
        if(frame==5)
        {
            spawner("exp2", -90, 0, 0);

        }
        if(frame==6)
        {
            spawner("exp2", -110, 0, 0);

        }
        return;
    }
    if(animhandle==494)
    {
        if(frame==11)
        {
            spawner("BAT", -200, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/clone/shot3i.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==497)
    {




       void self        = getlocalvar("self");

       killentity(self);

               return;
    }

}

####animationscript function main#####
# data/chars/clone/clone3/shot4i.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==499)
    {




       void self        = getlocalvar("self");

       killentity(self);

               return;
    }
    if(animhandle==501)
    {




       void self        = getlocalvar("self");

       killentity(self);

               return;
    }

}

####animationscript function main#####
# data/chars/misc/mine.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==546)
    {


    void self = getlocalvar("self");



    if(frame==2){

      killentity(self); //Suicide!

    }

        return;
    }

}

####animationscript function main#####
# data/chars/misc/PLives.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==578)
    {


    void self = getlocalvar("self");

    int Life = getentityproperty(self,"health");

    int MP = getentityproperty(self,"mp");



    if(frame==1){

      changeplayerproperty(0, "lives", Life);

      changeplayerproperty(0, "credits", MP);

      changeplayerproperty(1, "lives", Life);

      changeplayerproperty(1, "credits", MP);



      killentity(self); //Suicide!

    }

        return;
    }

}

####animationscript function main#####
# data/chars/misc/allclear.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==579)
    {


    void self = getlocalvar("self");

    int Compl1 = getglobalvar("Cobra");

    int Compl2 = getglobalvar("Silent");

    int Compl3 = getglobalvar("Spring");

    int Compl4 = getglobalvar("FLAGG");

    int Compl5 = getglobalvar("Defiant");

    int Compl6 = getglobalvar("Wings");

    int ComplA = getglobalvar("AllClear");



    if( Compl1==NULL() ){

      Compl1 = 0;

    }

    if( Compl2==NULL() ){

      Compl2 = 0;

    }

    if( Compl3==NULL() ){

      Compl3 = 0;

    }

    if( Compl4==NULL() ){

      Compl4 = 0;

    }

    if( Compl5==NULL() ){

      Compl5 = 0;

    }

    if( Compl6==NULL() ){

      Compl6 = 0;

    }

    if( ComplA==NULL()) {

      ComplA = 0;

    }



    if(frame==1){

      if( ComplA>=10){

      ComplA = 15;

      setglobalvar("AllClear", 15);

      } else if( Compl1>=1 && Compl2>=1 && Compl3>=1 && Compl4>=1 && Compl5>=1 && Compl6>=1){

      ComplA = 10;

      setglobalvar("AllClear", 10);

      }

    }

    if(frame==2){

      void file = createfilestream();



      //Main Mission Complete

      filestreamappend(file, Compl1, 1); //the 1 at the end is nb to make sure it starts on the first line

      //Silent Castle Complete

      filestreamappend(file, Compl2, 0);

      //Springfield Battle Complete

      filestreamappend(file, Compl3, 0);

      //Defend USS FLAGG Complete

      filestreamappend(file, Compl4, 0);

      //Defiant Space Complete

      filestreamappend(file, Compl5, 0);

      //Wings of Fury Complete

      filestreamappend(file, Compl6, 0);

      //All Missions Complete

      filestreamappend(file, ComplA, 0);

      savefilestream(file, "save.txt");

    }

    if(frame==3){

      if(ComplA==10){

        setglobalvar("AllClear", 15);

        jumptobranch("AllClear",1);

      }

    }

    if(frame==4){

      killentity(self); //Suicide!

    }

        return;
    }

}

####animationscript function main#####
# data/chars/misc/delay.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==580)
    {


    void self = getlocalvar("self");

    int  Health = getentityproperty(self, "health");



    if(frame==1){

      changeentityproperty(self, "health", Health-5);

      if (Health <= 0){

        killentity(self);

      }

    }

        return;
    }

}

####animationscript function main#####
# data/bgs/map/maptext.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==582)
    {


    void self = getlocalvar("self");

    char Name = getentityproperty(self,"name");



    if(frame == 1){

      if(Name == "Cobra"){

        changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW1"));

      } else if(Name == "Silent"){

        changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW2"));

      } else if(Name == "Spring"){

        changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW3"));

      } else if(Name == "Defiant"){

        changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW4"));

      } else if(Name == "FLAGG"){

        changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW5"));

      } else if(Name == "Skystriker"){

        changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW6"));

      } else if(Name == "Escape"){

        changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW7"));

      }

    }

        return;
    }

}

####animationscript function main#####
# data/chars/misc/go/marker.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==590)
    {


    void self = getlocalvar("self");

    char Name = getentityproperty(self,"name");

    int Map = getentityproperty(self,"map");



    if(frame == 1){

      setlocalvar("Map", Map);

    }

        return;
    }
    if(animhandle==591)
    {


    void self = getlocalvar("self");

    char Name = getentityproperty(self,"name");

    int Remap = getlocalvar("Map");

    int Status;



    if(frame == 1 || frame == 3 || frame == 5){

      Status = getglobalvar(Name);



      if(Status < 1 || Status == NULL()){

        changeentityproperty(self, "map", 7);

      }

    } else {

      changeentityproperty(self, "map", Remap);

    }

        return;
    }
    if(animhandle==592)
    {


    void self = getlocalvar("self");

    char Name = getentityproperty(self,"name");



    if(frame == 7){

      jumptobranch(Name, 1);

    }

        return;
    }

}
