Inside3D!
     

Reload working.... kinda
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
ceriux



Joined: 06 Sep 2008
Posts: 969
Location: Florida, USA

PostPosted: Sun Jan 24, 2010 7:45 am    Post subject: Reply with quote

all it does, is instead of calling the macro's it sets a start frame and and end frame. um... this might be of some use to you. ( id recommend checking out the scratch tutorials.)




Code:
void () SetClientFrame =
{
   
   if (self.atime > time)
      return;
   self.atime = time + 0.1;
   
   local float achange, walk;
   
   if (self.velocity_x || self.velocity_y)
      walk = TRUE;
   else 
      walk = FALSE;
      achange = FALSE;
   
   if (walk != self.awalk && self.apriority == ANIM_BASIC)
      achange = TRUE;
   
   if (achange != TRUE)
   {
      if (self.frame < self.endframe)
      {
      self.frame = self.frame +1;
      return;
      }
   
   
   if (self.apriority == ANIM_DEATH)
   {
      if (self.deadflag == DEAD_DYING)
      {
         self.nextthink = -1;
         self.deadflag = DEAD_DEAD;
      }
      return;
   }
}


   self.apriority = ANIM_BASIC;
   self.awalk = walk;
   
   
   if (self.velocity_x || self.velocity_y)
   {
      self.frame = 0;
      self.endframe = 10;
   }
   else
   {
      self.frame = 0;
      self.endframe =0;
   }
   
};

_________________
QuakeDB - Quake ModDB Group
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group