PDA

View Full Version : New Force Speed


Styles2304
11-28-2004, 05:23 AM
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, 05:24 PM
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, 08:40 AM
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, 05:05 AM
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, 09:41 AM
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;