ze_set_human_speed_factor

Syntax

native ze_set_human_speed_factor(id, iFactor);

Usage

id
Client index.
iFactor
The factor to be added to current speed.

Description

Description:     Increase human speed with this factor.
                 This factor added to his current speed depend on which weapon he carries.

Return

true  | If set successfully
false | If this player not connected

Error

If player not connected.

Note

This native will add speed to current speed.
For example, ze_set_human_speed_factor(id, 0) will not set player speed to zero
it won't increase his speed so he will have normal weapon speed.
Example, if player carry knife and ze_set_human_speed_factor(id, 20) his speed will be
increased by 20 so his total speed will be 270 (default knife speed: 250)
You may use negative factors to decrease this speed.
Using this native will set the players speed for the whole map.
Speeds reset if this player disconnect, or reset using reset native.
This is limited by sv_maxspeed cvar.
This will throw error in case of invalid player.