UserCMD

Any UserCMD function can only be called from CreateMove callback!

SetMouseY

UserCMD.SetMouseY( position )

Parameters: float position

[EN] Used to set mouse Y position

[RU] УстанавливаСт ΠΏΠΎΠ·ΠΈΡ†ΠΈΡŽ ΠΌΡ‹ΡˆΠΈ ΠΏΠΎ оси Y

SetMouseX

UserCMD.SetMouseX( position )

Parameters: float position

[EN] Used to set mouse X position

[RU] УстанавливаСт ΠΏΠΎΠ·ΠΈΡ†ΠΈΡŽ ΠΌΡ‹ΡˆΠΈ ΠΏΠΎ оси X

GetMovement

function OnCreateMove( )
{
    let aMovement = UserCMD.GetMovement( )
    
    flForwardMove = aMovement[ 0 ]
    flSideMove = aMovement[ 1 ]
    flUpMove = aMovement[ 2 ]
}

Cheat.RegisterCallback( "CreateMove", "OnCreateMove" );

Return value: array object (Vector) with forward/side/up move values

[EN] Used to obtain movement values

[RU] ΠŸΠΎΠ»ΡƒΡ‡Π°Π΅Ρ‚ значСния ΠΎ ΠΏΠ΅Ρ€Π΅Π΄Π²ΠΈΠΆΠ΅Π½ΠΈΠΈ

SetViewAngles

function OnCreateMove( )
{
    UserCMD.SetViewAngles( [ 89, 180, 2 ], true )
}

Cheat.RegisterCallback( "CreateMove", "OnCreateMove" );

Parameters: array object (Vector) with x/y/z values, bool silent

[EN] Control user angles

[RU] УстанавливаСт ΡƒΠ³Π»Ρ‹ ΠΊΠΎΠΌΠ°Π½Π΄Ρ‹

Send

function OnCreateMove( )
{
    UserCMD.Send( )
}

Cheat.RegisterCallback( "CreateMove", "OnCreateMove" );

[EN] Forces current command to be send to server

[RU] ΠžΡ‚ΠΏΡ€Π°Π²Π»ΡΠ΅Ρ‚ Ρ‚Π΅ΠΊΡƒΡ‰ΡƒΡŽ ΠΊΠΎΠΌΠ°Π½Π΄Ρƒ Π½Π° сСрвСр

Choke

function OnCreateMove( )
{
    if ( ChokedCommands < 1488 )
        UserCMD.Choke( )
}

Cheat.RegisterCallback( "CreateMove", "OnCreateMove" );

[EN] Forces current command to be choked

[RU] Π§ΠΎΠΊΠ°Π΅Ρ‚ Ρ‚Π΅ΠΊΡƒΡ‰ΡƒΡŽ ΠΊΠΎΠΌΠ°Π½Π΄Ρƒ

SetButtons

function OnCreateMove( )
{
    if ( KillAllMen )
        UserCmd.SetButtons( UserCmd.GetButtons( ) | 1 )
}

Cheat.RegisterCallback( "CreateMove", "OnCreateMove" );

Parameters: int buttons

[EN] Used to send buttons

[RU] Π˜ΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅Ρ‚ΡΡ для установки Ρ„Π»Π°Π³ΠΎΠ² buttons

GetButtons

function OnCreateMove( )
{
    let fButtons = UserCMD.GetButtons( )
}

Cheat.RegisterCallback( "CreateMove", "OnCreateMove" );

Return value: int buttons

[EN] Used to get buttons

[RU] Π˜ΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅Ρ‚ΡΡ для получСния Ρ„Π»Π°Π³ΠΎΠ² buttons

SetMovement

function OnCreateMove( )
{
    UserCMD.SetMovement( [ 450, 0, 0 ] )
}

Cheat.RegisterCallback( "CreateMove", "OnCreateMove" );

Parameters: array object (Vector) with forward/side/up float values

[EN] Control user movement

[RU] ΠšΠΎΠ½Ρ‚Ρ€ΠΎΠ»ΡŒ двиТСния ΠΈΠ³Ρ€ΠΎΠΊΠ°

SetAngles

Warning! This function is undocumented officially. Please use it carefully

function OnCreateMove( )
{
    UserCMD.SetAngles( [ 1488, 1488, 1488 ] )
}

Cheat.RegisterCallback( "CreateMove", "OnCreateMove" );

Parameters: array object (Vector) with angle values

[EN] Control user angles

[RU] ΠšΠΎΠ½Ρ‚Ρ€ΠΎΠ»ΡŒ ΡƒΠ³Π»ΠΎΠ² ΠΈΠ³Ρ€ΠΎΠΊΠ°

ForceJump

Warning! This function is undocumented officially. Please use it carefully

function OnCreateMove( )
{
    UserCMD.ForceJump( )
}

Cheat.RegisterCallback( "CreateMove", "OnCreateMove" );

[EN] Forces player to jump

[RU] ЗаставляСт ΠΈΠ³Ρ€ΠΎΠΊΠ° ΠΏΡ€Ρ‹Π³Π½ΡƒΡ‚ΡŒ

ForceCrouch

Warning! This function is undocumented officially. Please use it carefully

function OnCreateMove( )
{
    UserCMD.ForceCrouch( )
}

Cheat.RegisterCallback( "CreateMove", "OnCreateMove" );

[EN] Forces player to crouch

[RU] ЗаставляСт ΠΈΠ³Ρ€ΠΎΠΊΠ° ΡΠ΅ΡΡ‚ΡŒ

Last updated