Orpheu natives
Hi,
Most likely HamletEagle will be the one to explain the stuff to me as there's not many people interested on Orpheu, so thanks Hamlet lol. :crab: 1. Does OrpheuRegisterHook handler have no parameters or they're hidden? 2. #1 question is what confuses me about #2, OrpheuGetParamStructMember parameter is 'num' which is argument number, how do we know what parameter we need to retrieve when we have something like this Code:
Thanks! EDIT: I think I found the answer for #2 PHP Code:
|
Re: Orpheu natives
No, it passes the parameters that are listed in the orpheu file.
OrpheuGetParamStructMember is to be used with structures, not needed in this case. For DropPlayerItem the function is: PHP Code:
But that's not the only parameter. Functions that are member of a class pass the object as the first parameter("this") which in a plugin translates to the entity index. In your case it would be the player index since DropPlayerItem is member of CBasePlayer class. The correct header would be: PHP Code:
PHP Code:
PHP Code:
But I see you are trying to hook Spawn. What spawn are you trying to hook? For what entity? |
Re: Orpheu natives
Quote:
So why is the parameter not specified here? I do know now that in class functions the first parameter is the entity index, in my case the player. https://github.com/s1lentq/ReGameDLL.../player.h#L329 This is pretty much the code to hook player spawn with Orpheu, if I'm not mistaken? PHP Code:
|
Re: Orpheu natives
Your OrpheuGetFunction is incomplete. You want to hook Spawn from CBasePlayer class, not other class, so you need to mention that.
PHP Code:
PHP Code:
If it still doesn't work please post the Spawn file from virtualFunctions/CBasePlayer folder. |
Re: Orpheu natives
Quote:
I don't really have the signature for it, I randomly picked CBasePlayer::Spawn. Don't really need it, as I can do it with Hamsandwich. By the way, I'm unable to find non-class functions in ReGameDLL such as Host_Status_f, PM_Duck, I searched everywhere but couldn't find, do you know where I can find them? |
Re: Orpheu natives
Host_Status_f is a function from the game engine, so you should be searching that in rehlds: https://github.com/dreamstalker/rehl...e/host_cmd.cpp
PM_* are inside pm_shared.cpp from RegameDLL: https://github.com/s1lentq/ReGameDLL.../pm_shared.cpp |
| All times are GMT -4. The time now is 12:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.