Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

New Force Speed

Page: 1 of 1
 Styles2304
11-28-2004, 6:23 AM
#1
Does anyone know if it's possible to just slow everyone down but keep the player at normal speed instead of the way it is?
 razorace
11-28-2004, 6:24 PM
#2
I'm sure it's possible, you'd just have to do a lot of coding work to get it to work.
 Tinny
11-29-2004, 9:40 AM
#3
Originally posted by Styles2304
Does anyone know if it's possible to just slow everyone down but keep the player at normal speed instead of the way it is?


What if 2 people activate speed at different force levels?
 mad mapper
12-01-2004, 6:05 AM
#4
you might do it like this:

everyone is slowed by the factor of strongest force speed and the one who uses the force at a lower level gets a bonus of her/his own force speed.
 GangsterAngel
12-19-2004, 10:41 AM
#5
speed is set in one line, in G_Active.c

could be laggy to check if anyone else is using speed.
like.


int i;
int speeduser;

for ( i = 0 ; i < level.maxclients ; i++ ) {
gentity_t *kEnt = &g_entities[i];
if (kEnt->inuse && kEnt->client && !kEnt==ent)
if(ent->client->ps.fd.forcePowersActive & (1>>FP_SPEED))speeduser=1;
}


if(ent->client->ps.fd.forcePowersActive & (1<<FP_SPEED) && speeduser) ent->client->ps.speed=250;
Page: 1 of 1