mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2024-11-21 11:31:21 +00:00
Little code update
— Changed cg_gravity to 1400 (for realistic car movement) — Expanded checkpoint limit from 40 to 100
This commit is contained in:
parent
9aad2a0098
commit
e7e0acdae4
4 changed files with 6 additions and 6 deletions
|
@ -27,13 +27,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
void CG_DrawCheckpointLinks(void)
|
void CG_DrawCheckpointLinks(void)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
centity_t *cents[40];
|
centity_t *cents[100];
|
||||||
qboolean checkpointFound;
|
qboolean checkpointFound;
|
||||||
int numCheckpoints = 0;
|
int numCheckpoints = 0;
|
||||||
vec3_t handle;
|
vec3_t handle;
|
||||||
|
|
||||||
// FIXME: max of 40 checkpoints
|
// Checkpoint limit
|
||||||
for (i = 0; i < 40; i++)
|
for (i = 0; i < 100; i++)
|
||||||
{
|
{
|
||||||
checkpointFound = qfalse;
|
checkpointFound = qfalse;
|
||||||
for (j = 0; j < MAX_GENTITIES; j++)
|
for (j = 0; j < MAX_GENTITIES; j++)
|
||||||
|
|
|
@ -1964,7 +1964,7 @@ void Cmd_SaveBPoints_f( gentity_t *other )
|
||||||
Com_Printf( "Writing out bezier path information to: '%s'\n", buffer );
|
Com_Printf( "Writing out bezier path information to: '%s'\n", buffer );
|
||||||
trap_FS_FOpenFile( buffer, &f, FS_WRITE );
|
trap_FS_FOpenFile( buffer, &f, FS_WRITE );
|
||||||
|
|
||||||
for (i = 1; i < 40; i++)
|
for (i = 1; i < 100; i++)
|
||||||
{
|
{
|
||||||
ent = NULL;
|
ent = NULL;
|
||||||
while ((ent = G_Find (ent, FOFS(classname), "rally_checkpoint")) != NULL) {
|
while ((ent = G_Find (ent, FOFS(classname), "rally_checkpoint")) != NULL) {
|
||||||
|
|
|
@ -181,7 +181,7 @@ static cvarTable_t gameCvarTable[] = {
|
||||||
{ &g_speed, "g_speed", "320", 0, 0, qtrue },
|
{ &g_speed, "g_speed", "320", 0, 0, qtrue },
|
||||||
// STONELANCE
|
// STONELANCE
|
||||||
// { &g_gravity, "g_gravity", "800", 0, 0, qtrue },
|
// { &g_gravity, "g_gravity", "800", 0, 0, qtrue },
|
||||||
{ &g_gravity, "g_gravity", "1100", 0, 0, qtrue },
|
{ &g_gravity, "g_gravity", "1400", 0, 0, qtrue },
|
||||||
// END
|
// END
|
||||||
{ &g_knockback, "g_knockback", "1000", 0, 0, qtrue },
|
{ &g_knockback, "g_knockback", "1000", 0, 0, qtrue },
|
||||||
{ &g_quadfactor, "g_quadfactor", "3", 0, 0, qtrue },
|
{ &g_quadfactor, "g_quadfactor", "3", 0, 0, qtrue },
|
||||||
|
|
|
@ -701,7 +701,7 @@ void SP_worldspawn( void ) {
|
||||||
|
|
||||||
// STONELANCE
|
// STONELANCE
|
||||||
// G_SpawnString( "gravity", "800", &s );
|
// G_SpawnString( "gravity", "800", &s );
|
||||||
G_SpawnString( "gravity", "1100", &s );
|
G_SpawnString( "gravity", "1400", &s );
|
||||||
// END
|
// END
|
||||||
trap_Cvar_Set( "g_gravity", s );
|
trap_Cvar_Set( "g_gravity", s );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue