Vruki Salet Posted January 7, 2006 Share Posted January 7, 2006 When I remove the code that looks like it makes the need to keep attack held down in order to not abort a swing the result is that I keep swinging R2L over and over whenever I'm idle. How can I remove the holding thing without side effects? Link to comment Share on other sites More sharing options...
razorace Posted January 8, 2006 Share Posted January 8, 2006 Which section did you try to remove? Link to comment Share on other sites More sharing options...
Vruki Salet Posted January 8, 2006 Author Share Posted January 8, 2006 Various parts of from this if {} section: //quit holding down attack. else if ( !(pm->cmd.buttons & (BUTTON_ATTACK)) ) //else if ( !(pm->cmd.buttons & (BUTTON_ATTACK|BUTTON_ALT_ATTACK)) ) //[/saberSys] { ...stuff... } In the current file it goes from line 4441 to 4487. I've removed bits and pieces and the whole thing. Most recently I commented out that last "PM_SetSaberMove( LS_READY );" and then the "return;" below it. Same problem except now the animation has changed to what looks like just the windup before a LS_A_R2L. If I'm idle it repeats over & over. Link to comment Share on other sites More sharing options...
razorace Posted January 8, 2006 Share Posted January 8, 2006 line 4461: Replace with original commented out code, which is on the next line. line 4470: Replace with original commented out code, which is on the next line. I beleive that's all that's invocced to make that part of the faking system work. Link to comment Share on other sites More sharing options...
Vruki Salet Posted January 8, 2006 Author Share Posted January 8, 2006 Thanks. I probably wouldn't have worked that out any time soon. Now that I can actually duel with your saber system I have to admit it looks pretty good. Those TABbots are nice too btw. They're good enough to test with. Only problem I'm having now is quite a bot of lag (not net lag of course, I mean framerate) when sabers clash. It might be my own fault because of stuff I've changed. I'm going to see if I can pinpoint the source. Is there anything in the CVS checkout of 2 or 3 days ago that might cause that? Also, what are the best cvar saber settings for duelling with OJP? (saberfaces, ghoul2 collisions, etc. etc.) Link to comment Share on other sites More sharing options...
razorace Posted January 8, 2006 Share Posted January 8, 2006 mmm, I'll think about it but I don't think there should be anything that would do that. The new system does do a lot more Ghoul2 traces so it's possible that a really old, slower computer might have issues. However, I've never seen any slowdowns like that. As for settings, the OJP defaults are best for everything except the sv_fps, which can be turned up to DRAMATICALLY improve the hit detection...but this does increase the CPU load and might cause other problems. However, in local mode, increasing sv_fps is normally pretty stable. Link to comment Share on other sites More sharing options...
Vruki Salet Posted January 8, 2006 Author Share Posted January 8, 2006 Doesn't sv_fps have to be 50 or 100 for OJP to work right? Link to comment Share on other sites More sharing options...
razorace Posted January 8, 2006 Share Posted January 8, 2006 No, it works at the default 20. However, hit detection always works better if more the server processes more fps. If your game is slowing down, you definitely want to have it at 20. Link to comment Share on other sites More sharing options...
JRHockney* Posted January 11, 2006 Share Posted January 11, 2006 Oh great guardian of noob questions, I have a noob question. What file is this code (shown above) located in. I've been looking through all the files in the OJP enhanced folder and I can't find anything like it. I figure if I'm going to start learning this coding stuff, I need a visual example of the kind of stuff I want to work on. Do I need a specific program to view it aside from notepad, winrar, or microsoft visual (8.0 in my case)? Link to comment Share on other sites More sharing options...
razorace Posted January 11, 2006 Share Posted January 11, 2006 You need to get the source code for OJP, which you can learn how to get by reading the sticky thread named as such. Link to comment Share on other sites More sharing options...
Vruki Salet Posted January 11, 2006 Author Share Posted January 11, 2006 Do I need a specific program...? I use MS visual blah blah but one program I really couldn't get along without is Agent Ransack. It's a free file search utility. I always use it when I'm coding. Link to comment Share on other sites More sharing options...
JRHockney* Posted January 11, 2006 Share Posted January 11, 2006 Cool, I didn't even realize that accessing the source thread meant source code! Much to learn I still have. Link to comment Share on other sites More sharing options...
razorace Posted January 11, 2006 Share Posted January 11, 2006 I use MS visual blah blah but one program I really couldn't get along without is Agent Ransack. It's a free file search utility. I always use it when I'm coding. So, what does it do? Link to comment Share on other sites More sharing options...
Vruki Salet Posted January 11, 2006 Author Share Posted January 11, 2006 It's like having grep with a nice interface for widows. Link to comment Share on other sites More sharing options...
razorace Posted January 11, 2006 Share Posted January 11, 2006 Doesn't VS already do something similar to that? I know that the Find in Files command can do Regular Expressions. Link to comment Share on other sites More sharing options...
Vruki Salet Posted January 11, 2006 Author Share Posted January 11, 2006 DOH! Well whadya know, it does. I happen to like AR's interface better but you are absolutely right. I'd just been using the regular find function. Link to comment Share on other sites More sharing options...
razorace Posted January 11, 2006 Share Posted January 11, 2006 *shrug* I'm not too fancy myself. I've only really used simple keywords. That regular expression stuff just isn't useful for me. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.