Raised This Month: $ Target: $400
 0% 

Solved Change entity class | Orpheu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-30-2017 , 10:37   Re: Change entity class | Orpheu
Reply With Quote #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.
HamletEagle is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:50.


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