Dusty Posted November 15, 2012 Share Posted November 15, 2012 Just going to throw these out here... 1. What is the difference between upperevents and lowerevents? Isn't lowerevents for when the character is sitting still, and upperevents for when the character is moving? 2. For the move/push commands, what are the push amounts measured in? (Like for making an animation move you forwards/backwards etc.) It tells you to give an amount X to push the character, but it doesn't give you any scale or reference. Link to comment
eezstreet Posted November 15, 2012 Share Posted November 15, 2012 1. upperevents is for anything involving torso animations, lowerevents is for anything involving legs. BOTH_ animations trigger both of them, and FACE_ triggers neither one of them 2. it uses map units. 52 map units (iirc) = 1 meter Link to comment
Dusty Posted November 16, 2012 Author Share Posted November 16, 2012 Thanks for the help man. Link to comment
Dusty Posted November 23, 2012 Author Share Posted November 23, 2012 Okay, so my animevents.cfg is weird. Some things don't always work. Anyone know why? Like I noticed the game by default has a sound event for playing the punch "swing" sound when you throw a punch for the BOTH_MELEE1 and BOTH_MELEE2 animations under upperevent (logically it should be an upperevent I would think). This doesn't work however ingame, as punches are always silent (I don't think this is a syntax error in the entries for the sound, as they are set up the same way as kicking sounds in animevents which works perfectly). If I put these two under lowerevents then the sound will play under certain save games (why only certain game files? this confounds me. perhaps something to do with the game reloading animation files.) while the character is standing still only. I'm having similar problems along these lines with another thing I'm trying to do through animevents. Last but not least, a question. Are BOTH animations suppose to have copied entries in upper and lower events to work correctly? Or no? For the punching sound effects at least, whether I have it in both or not seems to make no difference. Link to comment
eezstreet Posted November 23, 2012 Share Posted November 23, 2012 I would recommend starting a new game every time you make a change, as savegames save the status of the game and all things included in it (it's even possible for functionality of guns, etc to be saved, making for some serious WTF moments when you're trying to debug..). MP may be better for testing in this caseIf it's a BOTH_ animation, it would be logical to put it in both upperevents and lowerevents, since it's affecting both the torso and the legs. Though in the code, it tells the game to continue the legs animation while moving, so if you punch while moving, your animations don't go out of whack. It's just some weird mojo going on there. Link to comment
Dusty Posted November 23, 2012 Author Share Posted November 23, 2012 Thanks for the help eez. Anyways, I'll tell you this for sure, the entry for the punches just flat out doesn't work right. The only functionality I can get out of it is I can make the punches make noise while the player is standing still by being in lower events. Nothing else seems to work with the numerous fiddlings I've done. Link to comment
eezstreet Posted November 23, 2012 Share Posted November 23, 2012 Yeah. That's because the lower animation is replaced by walking/running/jumping animations. Link to comment
Dusty Posted November 24, 2012 Author Share Posted November 24, 2012 Now if it wasn't already obvious, I'm all talking about in Single Player. Now, I tried removing all the mods from my base folder (save files that weren't .pk3s). Now I checked in the assets1.pk3 and saw that the animevents.cfg in it has an identical entry in upperevents for BOTH_MELEE1 and BOTH_MELEE2, both animations with separate entries that are exactly the same save the animation name. But in SP when I devmaped a new map, I noticed this. The punch sound only played on the right hand punch. The left hand punch was always silent. And iirc, I'm pretty sure the sound plays for both punches in MP. This honestly makes no sense to me. Link to comment
Dusty Posted November 24, 2012 Author Share Posted November 24, 2012 I figured it out.... kinda. It seems like some sort of "memory" problem in upperevents. I guess it has too many entries, because when I took some out, the punch sounds worked. What I tried doing to get around having to take entries out of upperevents, is I made a second list for it in addition to the first. Seems to work so far. Like:UPPEREVENTS{blah blah blah(50 some events here)} UPPEREVENTS{blah blah blah} therfiles likes this Link to comment
eezstreet Posted November 24, 2012 Share Posted November 24, 2012 ... o.o therfiles likes this Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now