Add pixel surf (air-duck shrink hull + auto jump on pixel edges)
This commit is contained in:
@@ -531,6 +531,19 @@ auto CMisc::RunMovement( CCSGOInput* pInput , CUserCmd* pUserCmd ) -> void
|
|||||||
pUserCmd->button_states.buttonstate1 |= IN_DUCK;
|
pUserCmd->button_states.buttonstate1 |= IN_DUCK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( Settings::Misc::PixelSurf )
|
||||||
|
{
|
||||||
|
if ( !bOnGround )
|
||||||
|
{
|
||||||
|
pUserCmd->button_states.buttonstate1 |= IN_DUCK;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ( pUserCmd->button_states.buttonstate1 & ( IN_FORWARD | IN_BACK | IN_MOVELEFT | IN_MOVERIGHT ) )
|
||||||
|
GetCL_Bypass()->SetJump( pUserCmd , true );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( Settings::Misc::FastStop )
|
if ( Settings::Misc::FastStop )
|
||||||
{
|
{
|
||||||
if ( bOnGround )
|
if ( bOnGround )
|
||||||
|
|||||||
@@ -337,6 +337,7 @@ auto CAndromedaMenu::RenderMiscPanel() -> void
|
|||||||
Checkbox( "EdgeJump" , Settings::Misc::EdgeJump );
|
Checkbox( "EdgeJump" , Settings::Misc::EdgeJump );
|
||||||
Checkbox( "Fast-Stop" , Settings::Misc::FastStop );
|
Checkbox( "Fast-Stop" , Settings::Misc::FastStop );
|
||||||
Checkbox( "LongJump" , Settings::Misc::LongJump );
|
Checkbox( "LongJump" , Settings::Misc::LongJump );
|
||||||
|
Checkbox( "Pixel Surf" , Settings::Misc::PixelSurf );
|
||||||
Checkbox( "Slow Walk" , Settings::Misc::SlowWalk );
|
Checkbox( "Slow Walk" , Settings::Misc::SlowWalk );
|
||||||
Checkbox( "No Flash" , Settings::Misc::NoFlash );
|
Checkbox( "No Flash" , Settings::Misc::NoFlash );
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ namespace Settings
|
|||||||
inline auto EdgeJump = false;
|
inline auto EdgeJump = false;
|
||||||
inline auto FastStop = false;
|
inline auto FastStop = false;
|
||||||
inline auto LongJump = false;
|
inline auto LongJump = false;
|
||||||
|
inline auto PixelSurf = false;
|
||||||
inline auto SlowWalk = false;
|
inline auto SlowWalk = false;
|
||||||
inline auto NoFlash = false;
|
inline auto NoFlash = false;
|
||||||
inline auto FOVChanger = false;
|
inline auto FOVChanger = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user