 |
|
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
|

01-30-2017
, 10:37
Re: Change entity class | Orpheu
|
#2
|
1.What would be the purpose for that? It does not make sense.
2.Orpheu/okapi allows you to hook functions from game dlls(engine and mod dll), which can help you do awesome things. You can also play with memory and private data.
Take for example hamsandwich, all it does is to hook some virtual functions from game. View orpheu as an extended hamsandwich, it does not limit you to some predefined functions like ham does. It gives you the power to hook and call almost all functions. The only thing that you need is a signature file so the module can identify the function. OrpheuRegisterHook is the same as RegisterHam, it registers a hook for a specific function. In order get the function based on the signature file, OrpheuGetFunction is used.
For example, let's say you want to force a round end. The classic way is to kill all players, which is a poor and unreliable way. Game uses a function called CHalfLifeMultiplay::CheckWinConditions to determine when a round should end. If we have access to that function, we can call it and end the round. For that, one can use orpheu/okapi.
__________________
Last edited by HamletEagle; 01-30-2017 at 10:45.
|
|
|
|