[ OKAPI ] Get offset value
In orpheu we can do this:
Code:
But how do to the same in okapi ? |
Re: [ OKAPI ] Get offset value
Like I told before, Okapi is essentially the same as Orpheu with similar API but with slight difference (since it doesn't rely on config file).
okapi_get_ptr_* okapi_set_ptr_* |
Re: [ OKAPI ] Get offset value
I've tried this and it crash when a player join the server:
Code:
|
Re: [ OKAPI ] Get offset value
Maybe you should read the native description?
It takes a memory address. Since such members are from CGameRules class, you need basically: address CGameRules + member offset. CGameRules address can be retrieved from InstallGameRules return value. |
Re: [ OKAPI ] Get offset value
Thx, now it's working.
|
Re: [ OKAPI ] Get offset value
First, you should use the real member name.
Second, you have to care about the member type. If boolean you're not going to use "_int" but "_byte". Generally 'm_bSomething" ; b stands for "boolean". |
Re: [ OKAPI ] Get offset value
I know that b stands from bool, and m_bBombTarget is the real member name, isn't it ? But I get what you mean, I think I will just check if it's linux server in init and fill m_bBombTarget with right value.
|
Re: [ OKAPI ] Get offset value
If you know, why did you use okapi_get_ptr_int ? You should use okapi_get_ptr_byte.
|
| All times are GMT -4. The time now is 17:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.