Raised This Month: $ Target: $400
 0% 

Module: Okapi


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-18-2015 , 13:56   Re: Module: Okapi
Reply With Quote #71

You traitor!
__________________

Last edited by Arkshine; 04-18-2015 at 16:16.
Arkshine is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 04-18-2015 , 14:38   Re: Module: Okapi
Reply With Quote #72

Quote:
Originally Posted by joaquimandrade View Post
Hello dear friends
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 04-18-2015 , 16:10   Re: Module: Okapi
Reply With Quote #73

Welcome back, or maybe not.

Arkshine +2
__________________
Jhob94 is offline
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 04-18-2015 , 20:28   Re: Module: Okapi
Reply With Quote #74

OMG, just release update already, lol.
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
Sugisaki
Junior Member
Join Date: Oct 2014
Location: Venezuela
Old 06-11-2015 , 16:58   Re: Module: Okapi
Reply With Quote #75

Quote:
Originally Posted by GordonFreeman (RU) View Post
How to copy treemap on windows server ? I can't select anythings in server console and condebug only logs okapi promts.

In server console (can't select anything):


In qconsole.log:
i have that problem
__________________
Sugisaki is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-12-2015 , 02:58   Re: Module: Okapi
Reply With Quote #76

Don't use treemap, it's going to be removed in the next version.
__________________
Arkshine is offline
razermamba
Member
Join Date: Aug 2010
Old 06-12-2015 , 15:08   Re: Module: Okapi
Reply With Quote #77

Hello. I like okapi and my question is how to hook class method, for example void CBasePlayer::SetAnimation( PLAYER_ANIM playerAnim ) and how to call it with okapi. Thank you
razermamba is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-13-2015 , 04:31   Re: Module: Okapi
Reply With Quote #78

You need to use okapi_build_method, and okapi_add_hook, for hooking.
To call, just okapi_call.

Did you try to look at the API, did you try something?
__________________
Arkshine is offline
razermamba
Member
Join Date: Aug 2010
Old 06-13-2015 , 18:10   Re: Module: Okapi
Reply With Quote #79

Code:
new func_setanimation_ptr;

new okapi_func:set_animation;

public plugin_precache()
{
  func_setanimation_ptr      = okapi_mod_get_symbol_ptr("_ZN11CBasePlayer12SetAnimationE11PLAYER_ANIM");
}

public plugin_init()
{
  set_animation      = okapi_build_method(func_setanimation_ptr, arg_void, arg_cbase, arg_int);
}

okapi_call(set_animation, id, PLAYER_RELOAD);

?

Last edited by razermamba; 06-13-2015 at 18:10.
razermamba is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-13-2015 , 19:43   Re: Module: Okapi
Reply With Quote #80

I think for method, you don't need to provide the object, so arg_cbase is not needed (it should be added internally).
__________________
Arkshine is offline
Reply



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 14:53.


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