AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Some questions regarding REHLDS/REAPI & Orpheu (https://forums.alliedmods.net/showthread.php?t=338794)

deprale 07-26-2022 10:49

Some questions regarding REHLDS/REAPI & Orpheu
 
I know you guys don't like to talk about ReHLDS but speaking hypothetically would I be fine with orpheu on rehlds if I just need one signature? For example hooking the roundtime or freezetime.

Can I achieve the same with ReAPI as opposed to using Orpheu? As far as I've researched it would mean finding signatures for each function I want to hook and even then changing those variables might or might not do anything on REHLDS or even crash the server.

Would it be possible to hook roundtime/freezetime and change its value in real time with ReAPI? Or do I REALLY NEED TO USE ORPHEU? To be completely honest the include file isn't that well documented and there's no official docs on what you can and can't do and I'm rather a below average coder at this point so figuring it out on my own gonna take ages, figured I could ask here.

On one hand Orpheu looks sooooo good for some purposes and on the other hand I'd rather have REHLDS but it's sad nobody likes rehlds for some reason :? :salty: :salty:

wilian159 07-26-2022 11:45

Re: Some questions regarding REHLDS/REAPI & Orpheu
 
what exactly do you want to do?

CrazY. 07-26-2022 11:57

Re: Some questions regarding REHLDS/REAPI & Orpheu
 
I've done that before and had no problems at all, it's vague but really depends on what signatures you are looking for. What I suggest is to let alone orpheu when you can get it done with reapi, if that's not the case then yea should be safe, I would run some tests to make sure though.

Regarding roundtime/freezetime, freezetime is stored to m_iIntroRoundTime and roundtime to m_iRoundTime, whenever CHalfLifeMultiplay::ReadMultiplayCvars is called.
https://github.com/s1lentq/ReGameDLL...rules.cpp#L272

ReadMultiplayCvars is called when the server start up or the round restart, you could either hook ReadMultiplayCvars with orpheu or update the values on those two events.

lexzor 07-26-2022 12:32

Re: Some questions regarding REHLDS/REAPI & Orpheu
 
i couldn t create/get signatures even with IDA on rehlds so i stopped from trying use orpheu


All times are GMT -4. The time now is 07:36.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.