s1lentq / ReGameDLL_CS

:hammer: Reverse-engineered gamedll (CS 1.6 / CZero)
GNU General Public License v3.0
573 stars 196 forks source link

[Bug] Reconnect Smoke Grenade #879

Open axl303 opened 11 months ago

axl303 commented 11 months ago

One of the many smoke bugs is that if you throw it and retry/reconnect the smoke doesn't appear. The thing I noticed is that the smoke cloud doesn't appear, but the grenade itself is still on the ground (it appears little with very tiny smoke coming out of it). My logic (ofc stupid as always) is that if grenade is still on the ground, maybe there is a way to force the smoke cloud? Should this be related to gamedll and corrected by the server or? Reported by perforator here: https://github.com/ValveSoftware/halflife/issues/2940

dystopm commented 11 months ago

Problem is, Smoke effect duration is fixed on client-side, and due to this, if we send another Smoke effect to a joining player, it will last longer than the original one sent before he connects. It can be done only if the grenade exploded, maybe, 10 seconds before, but it will last longer anyway for him. @s1lentq a potential client-side improvement, making Smoke duration a parameter in PlaybackEvent