I made something cool on versus, I'll wip it back up for you.
HTML Code:
//#CLIENTSIDE
function onWeaponFired()
{
this.weaponMode = !this.weaponMode;
if (this.weaponMode)
{
setTimer(0.05);
}
}
function onTimeout()
{
if (this.weaponMode)
{
temp.currentAngle = (timevar2 * 5) % (2 * pi);
tilelayers[0].x = player.x + (cos(temp.currentAngle) * 5);
tilelayers[0].y = player.x + (cos(temp.currentAngle) * 5);
setTimer(0.05);
}
}
Didn't try it, should work though...