View previous topic :: View next topic |
Author |
Message |
ceriux

Joined: 06 Sep 2008 Posts: 969 Location: Florida, USA
|
Posted: Sun Jan 24, 2010 7:45 am Post subject: |
|
|
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 |
|
 |
|
|
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
|