Skip to content

Commit

Permalink
Improve smooth jumps to fix all ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
UncraftedName committed Oct 8, 2023
1 parent 91267c0 commit 9cb1219
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public static void SmoothJumps(SourceDemo demo, Stream s, int maxGroundTicks) {
var jumpTicks =
(from msgTup in demo.FilterForMessage<SvcPacketEntities>()
from update in msgTup.message.Updates!
where update.ServerClass!.ClassName == "CPortal_Player" && update is Delta
where update is Delta && update.ServerClass?.ClassName == "CPortal_Player"
from deltaProp in ((Delta)update).Props
where deltaProp.prop.Name == "m_Local.m_flJumpTime" &&
((SingleEntProp<float>)deltaProp.prop).Value == 510.0
Expand Down

0 comments on commit 9cb1219

Please sign in to comment.