08-22-2011, 16:02
Hello
This is something that appears in MW2 Campaign and is not in MP, look at right screen in the video and check the man icon:
In init():
Anywhere:
This is something that appears in MW2 Campaign and is not in MP, look at right screen in the video and check the man icon:
In init():
Code:
precacheShader("stance_prone");
precacheShader("stance_stand");
precacheShader("stance_crouch");
Anywhere:
Code:
MonitorStance()
{
self.stance = newHudElem();
self.stance.x = 620;
self.stance.y = 320;
self.stance setshader("stance_stand",100,100);
self thread DestroyIcon(self.stance);
while(1)
{
if(self getStance() == "stand")
{
self.stance setshader("stance_stand",100,100);
}
if(self getStance() == "prone")
{
self.stance setshader("stance_prone",100,100);
}
if(self getStance() == "crouch")
{
self.stance setshader("stance_crouch",100,100);
}
wait 0.1;
}
}
DestroyIcon(elem)
{
self waittill("death");
elem destroy();
}