Jump to content

Recommended Posts

I have tried the console that c_find('wilson').components.health:SetPercent(1) to change my client health and it worked.

 

But I wonder is there anyway to change speed of them.

I have tried c_find('wilson').components.speed:SetValue(5) but it didn't work.

 

Can anyone help me? Thank you.

Link to comment
https://forums.kleientertainment.com/forums/topic/48842-change-speed-for-clients/
Share on other sites

I have just started to delve into the whole LUA environment so I am not to efficient or know much about it but a loop might work

for k,v in pairs(AllPlayers) do c_speed(20) end

Where the (20) is you can set the bonus speed. I have not had any clients on my server to test out if it will work with them as well. I'll take a look more into the code and see if I can find out something in the event that it doesn't work for clients.

@ngoctienvt, You cannot do this. If clients could, the game would be a cheatfiesta. Edit: misinterpreted your post, thought you were joining servers and trying to change your stats.

 

As the host, though, you can change speed by accessing the locomotor component's runspeed and walkspeed fields. If you do this as a client you will only confuse the action prediction and cause rubberbanding.

c_find('wilson').components.locomotor.runspeed = 7.5

The default runspeed is 6, and walkspeed is 4.

Edited by rezecib

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...