Thread: Rotating?
View Single Post
  #32  
Old 01-18-2008, 05:36 PM
Knightmare1 Knightmare1 is offline
Billy Allan
Knightmare1's Avatar
Join Date: Apr 2007
Posts: 804
Knightmare1 can only hope to improve
there is another car script i found, and it does gani, but it shows the car under you not rotating, but the direction is right. this was by chris.
PHP Code:
//#CLIENTSIDE
function onPlayerChats()
{
  if ( 
player.chat == ":car" )
  {
    
this.car this.car;
    if ( 
this.car )
    {
      
client.frozen true;
      
setTimer0.05 );
    }
    else
    {
      
player.attr[6] = "";
      
client.frozen false;
      
setTimer);
    }
  }
}
function 
onTimeOut()
{
  
client.frozen true;    
  
player.getMoveXthis.accel );
  
player.getMoveYthis.accel );
  if ( 
keydown) )
  {
    
this.carAngle += .2;  
  }
  if ( 
keydown) )
  {
    
this.carAngle -= .2;
  }
  
  
temp.dx getMoveX);
  
temp.dy getMoveY);
  
player.dir getdirtemp.dx player.xtemp.dy player.);
  if ( 
keydown) )
  {
    
this.accel this.accel .1 this.accel .1;
  }
  else
  {
    
this.accel this.accel .1 this.accel this.accel .1;
  }
  
player.getMoveXthis.accel );
  
player.getMoveYthis.accel );
  
client.car_angle this.carAngle;
  
player.attr[5] = this.carAngle;
  
  
setAni"sit""" );
  
player.attr[6] = "ut_car.gani";

  
setTimer0.05 );
}
function 
getMoveXspeed )
{
  return 
player.sinthis.carAngle ) * speed;
}
function 
getMoveYspeed )
{
  return 
player.costhis.carAngle ) * speed;

__________________
I am the devil, I am here to do to devils work.
Reply With Quote