Posts: 245
Threads: 79
Joined: Feb 2013
help, I took the code and pasted it but the ability to error! public override void OnPlayerSpawned (ServerClient Client)
{
if (Client.Team == Teams.Allies)
{
g_speed_var = 200;
}
}
I wish that were running faster infected survivors have error-g_speed_var not exist in the current context! help pls
Posts: 245
Threads: 79
Joined: Feb 2013
(03-15-2013, 16:24)8q4s8 Wrote: (03-15-2013, 16:21)Jone Calerone Wrote: help, I took the code and pasted it but the ability to error! public override void OnPlayerSpawned (ServerClient Client)
{
if (Client.Team == Teams.Allies)
{
g_speed_var = 200;
}
}
I wish that were running faster infected survivors have error-g_speed_var not exist in the current context! help pls
It isn't possible to do this with the speedplugin, use Client.Other.SpeedScale
public override void OnPlayerSpawned(ServerClient Client)
{
if (Client.Team == Teams.Allies)
{
Client.Other.SpeedScale = 400;
}
}
This is also not not worked
Posts: 1,741
Threads: 93
Joined: Mar 2012
Reputation:
26
Is it supposed to be +=? Don't recall... 99% sure it's not though.
Do not take life too seriously. You will never get out of it alive.
Posts: 245
Threads: 79
Joined: Feb 2013
(03-15-2013, 17:12)DidUknowiPwn Wrote: Is it supposed to be +=? Don't recall... 99% sure it's not though.
you do not know the code? I need a code that would have been infected by the speed advantage
Posts: 1,741
Threads: 93
Joined: Mar 2012
Reputation:
26
I never dabbled in S.A. :<
Do not take life too seriously. You will never get out of it alive.
Posts: 273
Threads: 14
Joined: Aug 2012
Reputation:
17
03-15-2013, 17:23
(This post was last modified: 03-15-2013, 17:24 by 8q4s8.)
It's basically speed*speedScale (if you got speed 100 and speedscale 1.2 it's like you got a speed of 120). The speedscale is changing if you switch weapons, that's why you shouldn't use OnPlayerSpawned().