hmm it have been alot since i didnt looked in to cscript, but ill se if i can convert it.

(you started new? why didnt you started with lite-c >.<?)

Code:
ENTITY weapon1 = // first weapon
{

       type = "zombie.mdl";

       layer = 5;

       x = 145; // place this gun 145 quants ahead of the view

       y = -70; // 70 quants to the right

       z = -30; // and 30 quants below the center of the screen

       pan = 7;

       tilt = 10;

       flags = VISIBLE; // the first weapon is visible by default

}

 

ENTITY weapon2 = // second weapon

{

       type = "zombie.mdl";

       layer = 5;

       x = 135; // place this gun 135 quants ahead of the view

       y = -30; // 30 quants to the right

       z = -20; // and 20 quants below the center of the screen

       pan = 3;

       tilt = 10;

}

 

ENTITY weapon3 = // third weapon

{

       type = "zombie.mdl";

       layer = 5;

       x = 150; // place this gun 150 quants ahead of the view

       y = 20; // 20 quants to the right

       z = 10; // and 10 quants above the center of the screen

       pan = -4;

       tilt = -10;

}

 

function weapons_startup()

{

       var weapon_number = 1;

       while (1)

       {

               if (mickey.z < -1)

               {

                       weapon_number %=3;                

                       weapon_number += 1; // don't allow weapon_number to be smaller than 1 or bigger than 3

                       if (weapon_number == 1)

                       {

                               weapon1.VISIBLE = on;

                               weapon2.VISIBLE = off;

                               weapon3.VISIBLE = off;

                       }

                       if (weapon_number == 2)

                       {

                               weapon1.VISIBLE = off;

                               weapon2.VISIBLE = on;

                               weapon3.VISIBLE = off;

                       }

                       if (weapon_number == 3)

                       {

                               weapon1.VISIBLE = off;

                               weapon2.VISIBLE = off;

                               weapon3.VISIBLE = on;

                       }

               }

               if (mickey.z > 1)

               {

                       weapon_number %=3;                

                       weapon_number += 1; // don't allow weapon_number to be smaller than 1 or bigger than 3

                      if (weapon_number == 1)

                       {

                               weapon1.VISIBLE = off;

                               weapon2.VISIBLE = off;

                               weapon3.VISIBLE = on;

                       }

                       if (weapon_number == 2)

                       {

                               weapon1.VISIBLE = off;

                               weapon2.VISIBLE = on;

                               weapon3.VISIBLE = off;

                       }

                       if (weapon_number == 3)

                       {

                               weapon1.VISIBLE = on;

                               weapon2.VISIBLE = off;

                               weapon3.VISIBLE = off;

                       }

               }

               wait (1);

       }

}




hope it works.


3333333333