setweapon not working?
Posted: Wed Feb 06, 2008 2:33 am
hey guys, i want to use setweapon for my weapons but nothing shows up. can yall help me?
script
kthx
script
Code: Select all
{
offsetX [2]
offsetY [0]
offsetZ [10]
OFFSETY [85]
DAMAGEATTRIBUTE [hp]
CURRENTWEAPON [0]
WEAPONTOCHANGE [null]
//SOCOM
SOCOMCLIP [12]
SOCOMAMMO [12]
SOCOMSPREAD [30]
//P90
P90CLIP [50]
P90AMMO [50]
P90SPREAD [25]
//M16
M16CLIP [30]
M16AMMO [30]
M16SPREAD [10]
//XM8
XM8CLIP [30]
XM8AMMO [30]
XM8SPREAD [7]
//M82
M82CLIP [10]
M82AMMO [10]
M82SPREAD [4]
//RAILGUN
RAILGUNCLIP [1]
RAILGUNFIRED [false]
RAILGUNSPREAD [0]
//GAUSSRIFLE
GAUSSRIFLECLIP [20]
GAUSSRIFLEAMMO [20]
GAUSSRIFLESPREAD [2]
//GAUSSSNIPER
GAUSSSNIPERCLIP [5]
GAUSSSNIPERAMMO [5]
GAUSSSNIPERSPREAD [2]
Spawn[ ()
{
Console(true);
Gravity(false);
//SetNoCollision();
SetWeapon("socom");
LowLevel("setup");
} ]
setup[ ()
{
PositionToPawn("player", -2, 85, 10, true);
self.ThinkTime = "0";
pos();
self.yaw_speed = 1000;
self.pitch_speed = 1000;
if(self.key_pressed = 1)
{
CURRENTWEAPON = 1; //Weapon is now hands which is punching
WEAPONTOCHANGE = "hands";
HighLevel("Changeweapon");
}
} ]
pos[ ()
{
self.ideal_yaw = self.player_yaw;
ChangeYaw();
self.ideal_pitch = self.camera_pitch;
ChangePitch();
} ]
Changeweapon[ ()
{
SetWeapon("socom");
LowLevel("setup");
} ]
}