right, i used
this tut for Q3 and tried to apply it on JKA. It worked.. not exactly how it should. I was able to create a console CMD telling me wether its on or off but it ddnt actually turn the code on/off. So i was wondering if anyone here could help me. (I Wonder if anyone remembers me :P)
here is what i got than
Code:
#define FL_FLIGHT 0x00200000 //*SD Flight Flag
@ line 67 in g_local.h
(ty wudan for correcting the flag for me)
Code:
/* *SD Flight function for turning flight on/off
=================
Cmd_Flight_f
=================
*/
void Cmd_Flight_f( gentity_t *ent ) {
char *msg; // message to player
ent->flags ^= FL_FLIGHT;
if (!(ent->flags & FL_FLIGHT))
msg = "f OFF\n";
else
msg = "f ON\n";
trap_SendServerCommand( ent-g_entities, va("print \"%s\"", msg));
}
@ line 572 in g_cmds.c
Code:
else if (Q_stricmp (cmd, "fly") == 0) //*SD flight command
Cmd_Flight_f (ent);
@ line 3294 in g_cmds.c
and lastly i have these lines of codes i tried putting everywhere with no results
Code:
if (ent->flags & FL_FLIGHT) //*SD Flight Gravity
client->ps.gravity = 0.1f;
@line 2170 in g_active.c
Any help at all would be appreciated!