ShadyD Posted August 22, 2006 Share Posted August 22, 2006 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 ) here is what i got than #define FL_FLIGHT 0x00200000 //*SD Flight Flag @ line 67 in g_local.h (ty wudan for correcting the flag for me) /* *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 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 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! Link to comment Share on other sites More sharing options...
razorace Posted August 23, 2006 Share Posted August 23, 2006 I suspect that gravity is reset in a different part of the code. Try searching thru the files for places where the gravity setting is changed. Link to comment Share on other sites More sharing options...
ShadyD Posted August 26, 2006 Author Share Posted August 26, 2006 yep, it appears i had to move the gravity code a bit up in the code. Ensiform found out the exact location 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.