Articles:
OpenGL:
GL : Mouse Position to 3d Space

JA/JO:
JA : Getting Started
All : Qboolean
All : Bit Flags
All : Vector Math
JKA : Saber Cycle BugFix
JK2 : Classes
JK2 : Ladders
All : FontDat File Info
JK2 : Breakdown
JK2 : PM_ Anim

Dox:
JK2 : Source
JKA : Source

Related:
LF : JA Coding
LF : OJP Forum
LF : General Editing
Code3Arena
Stanford CS Library

Ancient
3.2004
2.2004
1.2004
12.2003

You are visitor #140030.
(since 11/01/2005).
You are unique visitor #32745.
(since 11/01/2005).
Fix: Pesky Saber Attack Cycle Bug - Wudan

Ever press the button to change your saber combat style while NOT holding the saber? (The command is saberAttackCyle, generally bound to 'L')

It plays a light-saber toggle sound! GAH! Well, my friends, we're gonna fix that (and it's a super-quick fix, mind you).

In g_cmds.c (Cmd_SaberAttackCycle_f), at line 2555 after:
if ( !ent || !ent->client )
{
    return;
}
Add:
if ( ent->client->ps.weapon != WP_SABER )
//if the client is not currently weilding a saber
{
   
//leave this function
    return;
}
That's all there is to it. Really short and stupid, and it should have been in there in the first place.
Comments and Suggestions Follow: