mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 19:45:23 -04:00
Default speed modifier should be 10, to match ClassiCube.
This commit is contained in:
parent
36ff4f7b6e
commit
c28e1f343f
@ -80,7 +80,7 @@ namespace ClassicalSharp {
|
|||||||
SkinName = game.Username;
|
SkinName = game.Username;
|
||||||
SkinIdentifier = "skin_255";
|
SkinIdentifier = "skin_255";
|
||||||
|
|
||||||
SpeedMultiplier = Options.GetFloat( OptionsKey.Speed, 0.1f, 50, 7 );
|
SpeedMultiplier = Options.GetFloat( OptionsKey.Speed, 0.1f, 50, 10 );
|
||||||
PushbackPlacing = Options.GetBool( OptionsKey.PushbackPlacing, false );
|
PushbackPlacing = Options.GetBool( OptionsKey.PushbackPlacing, false );
|
||||||
NoclipSlide = Options.GetBool( OptionsKey.NoclipSlide, false );
|
NoclipSlide = Options.GetBool( OptionsKey.NoclipSlide, false );
|
||||||
DoubleJump = Options.GetBool( OptionsKey.DoubleJump, false );
|
DoubleJump = Options.GetBool( OptionsKey.DoubleJump, false );
|
||||||
|
@ -53,7 +53,7 @@ namespace ClassicalSharp.Model {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override Vector3 CollisionSize {
|
public override Vector3 CollisionSize {
|
||||||
get { return new Vector3( 8/16f + 0.6f/16f, 28.5f/16f - 0.4f/16f, 8/16f + 0.6f/16f ); }
|
get { return new Vector3( 8/16f + 0.6f/16f, 28.1f/16f, 8/16f + 0.6f/16f ); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override BoundingBox PickingBounds {
|
public override BoundingBox PickingBounds {
|
||||||
|
@ -387,7 +387,7 @@ namespace ClassicalSharp {
|
|||||||
p.CheckHacksConsistency();
|
p.CheckHacksConsistency();
|
||||||
|
|
||||||
float jumpHeight = reader.ReadInt16() / 32f;
|
float jumpHeight = reader.ReadInt16() / 32f;
|
||||||
if( jumpHeight < 0 ) jumpHeight = 1.4f;
|
if( jumpHeight < 0 ) jumpHeight = 39/32f;
|
||||||
p.CalculateJumpVelocity( jumpHeight );
|
p.CalculateJumpVelocity( jumpHeight );
|
||||||
p.serverJumpVel = p.jumpVel;
|
p.serverJumpVel = p.jumpVel;
|
||||||
game.Events.RaiseHackPermissionsChanged();
|
game.Events.RaiseHackPermissionsChanged();
|
||||||
|
@ -132,7 +132,7 @@ namespace ClassicalSharp {
|
|||||||
// Workaround for older D3 servers which wrote one byte too many for HackControl packets.
|
// Workaround for older D3 servers which wrote one byte too many for HackControl packets.
|
||||||
if( opcode == 0xFF && lastOpcode == PacketId.CpeHackControl ) {
|
if( opcode == 0xFF && lastOpcode == PacketId.CpeHackControl ) {
|
||||||
reader.Remove( 1 );
|
reader.Remove( 1 );
|
||||||
game.LocalPlayer.CalculateJumpVelocity( 1.4f ); // assume default jump height
|
game.LocalPlayer.CalculateJumpVelocity( 39/32f ); // assume default jump height
|
||||||
game.LocalPlayer.serverJumpVel = game.LocalPlayer.jumpVel;
|
game.LocalPlayer.serverJumpVel = game.LocalPlayer.jumpVel;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user