emilyinure / solace-csgo

An internal csgo cheat for legacy hvh
35 stars 12 forks source link

IsTickValid improvements #5

Closed ghost closed 1 year ago

ghost commented 1 year ago

https://github.com/emilyinure/solace-csgo/blob/f28a1531a7e047999e0437ad5bed6727ea8f9e45/solace-csgo/player_manager.cpp#L32

  1. It should use server time.
  2. It should account for deadtime.
  3. It should account for view interpolation (correctly).

Regards,

emilyinure commented 1 year ago

it is using servertime. im unsure what you mean by deadtime, ill look into this though. the fixes for view interpolation will be pushed soon

ghost commented 1 year ago

It is indeed already using servertime, forget about the first point. (I dunno why I thought it was using m_curtime)

emilyinure commented 1 year ago

Soo, I don't believe that view interpolation actually does anything on the server, logging player vars in postdataupdate gets everything before its interpolated. All the data is clean and we're using/calculating lerptime the way that the server is. I'm seeing this post you took most of this from but, using servertime does compensate for deadtime(meaning the latency/delay between data transfers)

ghost commented 1 year ago

You are right about all of that, but I am not sure about deadtime, I remember some kind of check was needed to properly check if a record has been deleted (record->m_sim_time < deadtime).

Regards,

emilyinure commented 1 year ago

ah okay yes ive found it

emilyinure commented 1 year ago

update pushed