Forum

> > CS2D > Scripts > change default movespeed
Forums overviewCS2D overview Scripts overviewLog in to reply

English change default movespeed

6 replies
To the start Previous 1 Next To the start

old change default movespeed

MaksDragon
User Off Offline

Quote
i want to change default move speed to 50 how i can do that? i mean all players on the server have this value of speed

old Re: change default movespeed

Mami Tomoe
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
local function setPlayerSpeed(id)
    parse("speedmod " .. id .. " 50")
end

addhook("startround", "setSpeedForAllPlayers")
function setSpeedForAllPlayers()
    for i = 1, 32 do  -- assuming a maximum of 32 players
        if player(i, "exists") then
            setPlayerSpeed(i)
        end
    end
end

addhook("spawn", "setSpeedForSpawnedPlayer")
function setSpeedForSpawnedPlayer(id)
    setPlayerSpeed(id)
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview