Open jonathan-up opened 3 months ago
The only problems are with your implementation because the IsPaused()
and SetPaused()
are pure virtual functions declared in the abstracted class, RehldsServerData
. You can read more about that on this site.
To fix your code you need to declare even the missing virtual functions before IsPaused()
and SetPaused()
as declared in the rehlds_interfaces.h.
@ShadowsAdi Thank you for your explanation, but i saw rehlds_interfaces_impl.cpp. Is implementation in the file?
The "rehlds_interfaces.h" of this module must matches to the one of the ReHLDS's engine ShadowsAdi linked:
To fix your code you need to declare even the missing virtual functions before
IsPaused()
andSetPaused()
as declared in the rehlds_interfaces.h.
@StevenKal i know it, but rehlds/rehlds/rehlds_interfaces_impl.cpp must be the implementation of the virtual function, isn't it?
the one of the ReHLDS's engine
@s1lentq It's all working now, but I think rh_set_pause
function is a bit weird., any suggestions?
Hi @jonathan-up, I don't get what the host parameter does in rh_set_pause()
, in what situation would be useful to use that parameter? I don't get what this comment means:
It's best not to use rh_set_paused(false, false), bad things will happen
What is the bad thing that can happen? Why such behaviour is allowed?
@rtxa you can try paused as host true, and unpaused as host false
In this way, you do not need to set
pausable
to 1 and then make client sendspause
command and finally setpausable
to 0