razorace Posted January 8, 2003 Author Share Posted January 8, 2003 But the movement lock isn't linked to the animation timers... This code only happens when the command is first entered. Link to comment Share on other sites More sharing options...
Wudan Posted January 8, 2003 Share Posted January 8, 2003 This code happens when he hits the ANIM_TOGGLEBIT - it's if( / else('d for this. He sets the pm->cmd.forwardmove = 0; pm->cmd.rightmove = 0; pm->cmd.upmove = 0; So that he'll can't move at all when it's 'elsed - that is, he enters sleep, it checks the togglebit for BOTH_SLEEP1, if it is on, it turns it off, and sets a new 'wakeup' animation, if it finds it off, it turns it on and sets the players move-ability back to normal. I guess I'll just have to test it out. Link to comment Share on other sites More sharing options...
razorace Posted January 8, 2003 Author Share Posted January 8, 2003 Unless the movement lock is in a position where it's refreshed inbetween the client movement command input and the server/client movement calculations, the new client input will be used instead of the desired locked "0" value. However, I can't be sure without knowing where/how the client movement commands are inputed. Link to comment Share on other sites More sharing options...
Wudan Posted January 8, 2003 Share Posted January 8, 2003 Client command input is generally handled by a client, a keyboard, and a mouse Link to comment Share on other sites More sharing options...
razorace Posted January 8, 2003 Author Share Posted January 8, 2003 You know what I meant. Link to comment Share on other sites More sharing options...
Wudan Posted January 8, 2003 Share Posted January 8, 2003 Oh! you meant in the code! You see, it's hard to tell. I understand things much clearer when I'm in a forum dedicated to the topic on which I am reading. Link to comment Share on other sites More sharing options...
Guest Jolts Posted January 8, 2003 Share Posted January 8, 2003 any of you guys looked at the dotXSI importer/exporter for maya? the source code is available on the aliaswavefront site I think. I want to do some tests rigging one of my models, animating a walk cycle and getting it in game. I know the exporter is for xsi 3.0 I tried importer one of jo xsi files but it didn't work. To get back into animating I want to try reanimating all of the basic movement for jo, but not if I have to use max. Link to comment Share on other sites More sharing options...
razorace Posted January 9, 2003 Author Share Posted January 9, 2003 Isn't that a whole lot of work for the pay off (a couple new animations)? I imagine there's a simplier solution inside the code. Link to comment Share on other sites More sharing options...
Guest Jolts Posted January 9, 2003 Share Posted January 9, 2003 I like animating just as much as I like modelling, so its not really work to me. Basic movement animation isn't that much too do, quick little cycles. I hate the normal animations for jo as well, saber animations are just lame. Link to comment Share on other sites More sharing options...
razorace Posted January 9, 2003 Author Share Posted January 9, 2003 If you say so, just don't be surprised when you burn out like a old lightbulb 3 animations in. Hope things work out. Link to comment Share on other sites More sharing options...
Guest Jolts Posted January 9, 2003 Share Posted January 9, 2003 I've been animating for 2 years, I know how much work it is and I know how to pace myself as far as work. I was a better animator than modeller until I stopped focusing on it and concentrated on modelling for the last 8 months. It's more of a warm until I get back in the swing of things, then its ut2k3 time. Link to comment Share on other sites More sharing options...
razorace Posted March 26, 2003 Author Share Posted March 26, 2003 Ok Dokie. I've gone thru and figured out what the animation calls do. Here's what I've written down so far: Animation Flags (for PM_SetAnim) SETANIM_FLAG_RESTART Play animation even if the same animation is already playing. SETANIM_FLAG_OVERRIDE Override the animation even if the timer is still valid ( 0 < or != -1). The timer will be reset to 0. SETANIM_FLAG_HOLD Sets the animation timer to equal the amount the length of the animation plus time for one additional frame (at the frame rate of the chosen animation). This DOES NOT account for different animation speeds from BG_SaberStartTransAnim but does change the timer for Force Rage and Force Speed. SETANIM_FLAG_HOLDLESS Sets the animation timer to equal the amount the length of the animation. This DOES NOT account for different animation speeds from BG_SaberStartTransAnim but does change the timer for Force Rage and Force Speed. UPDATE: This sets the timer to the length of the animation RIGHT before the second last frame (1ms before to be exact). Technically, the last frame will not be totally played if you have a fast enough animation call update. (not possible, it's only a one ms) I assume this is so the animation timer runs out just as the animation finishes. Additional Information The stance animations auto sets to BOTH_STAND1 if you’re using the doublebladed saber. The leg timer is additionally checked right before the leg animation is changed. Be sure that the timer is 0’ed before you change the animation. Note that the actual animation setting stuff is handled in WP_SaberPositionUpdate (for server side). PM_SetAnim does some safety checks, animation timer setting, and set the ___Anim varibles to be updated in the next frame. There are other functions that change the ____Anim variables without the safety features. If you’re planning to change the animation speeds you’re going to need to be sure that the animation speed is altered in all the animation calls. Link to comment Share on other sites More sharing options...
razorace Posted March 31, 2003 Author Share Posted March 31, 2003 The weird thing about the server side animations is that the PM_setAnim function is mainly just setting some internally used information and then quickly setting the animation at the end. However, Raven ends up NOT using the PM_setAnim system all the time and frequently bypasses it for whatever reason. ("Rich, setting this PM_SetAnim stuff is too damn hard so I just bypassed it for all my stuff.") This means that you can't always depend on the animations using the ____timers and stuff LIKE THEY SHOULD. Link to comment Share on other sites More sharing options...
razorace Posted April 1, 2003 Author Share Posted April 1, 2003 Ok, the animation system is whacked. There's an assload of features that cgame is sort of setup to handle but then aren't actually used! So far I see backward playing animations, flipflop animations (plays forward and then backward), and selective looping (where the animation plays once and then loops up to the same given point) and ALL cgame. game has a much simplier system with fewer features but it's easier to understand and the backward playing animations ACTUALLY WORK. Link to comment Share on other sites More sharing options...
razorace Posted April 26, 2003 Author Share Posted April 26, 2003 added an update to the SETANIM_FLAG_HOLDLESS description. Link to comment Share on other sites More sharing options...
razorace Posted April 30, 2003 Author Share Posted April 30, 2003 Fixed an technical error in the my HOLDLESS flag description. I doublechecked an it's technically setting it for right before the second to last frame instead of the last frame. Link to comment Share on other sites More sharing options...
Jman3ooo Posted June 23, 2003 Share Posted June 23, 2003 I figure this is the best place for my question: When I'm changing the ps->speed enough my character's animations go out of syn so it looks like he is running on a treadmill. How would you slow down the leg animations to make it look better? ps->legsTimer just doesn't sound right. Link to comment Share on other sites More sharing options...
razorace Posted June 24, 2003 Author Share Posted June 24, 2003 Well, the easiest way would be to add a tiny amount of code, before the true animation change, that alters the animation speed for the run/walk animations. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.