animations
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@176 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// You need to specify 3 animations:
|
||||
// 1. idle
|
||||
// 2. shoot
|
||||
// 3. reload
|
||||
//
|
||||
// md3animation $first $num $loop $fps
|
||||
|
||||
md3animation 0 1 0 25
|
||||
md3animation 8 8 1 25
|
||||
md3animation 0 1 0 25
|
||||
Binary file not shown.
@@ -337,8 +337,10 @@ COMMAND(md3skin, ARG_2STR);
|
||||
void md3animation(char *first, char *nums, char *loopings, char *fps) /* configurable animations */
|
||||
{
|
||||
md3animinfo &a = tmp_animations.add();
|
||||
a.start = atoi(first);
|
||||
a.end = a.start + atoi(nums) - 1;
|
||||
a.start = atoi(first);
|
||||
int n = atoi(nums);
|
||||
if(n<=0) n = 1;
|
||||
a.end = a.start + n - 1;
|
||||
(atoi(loopings) > 0) ? a.loop = true : a.loop = false;
|
||||
a.fps = atoi(fps);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user