Jump to content

Home

How can remove the need to hold an attack button the whole swing?


Vruki Salet

Recommended Posts

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...