Raised This Month: $51 Target: $400
 12% 

Orpheu: CBase Virtual Functions Offsets


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 09-02-2013 , 13:26   Orpheu: CBase Virtual Functions Offsets
Reply With Quote #1

Well, all of you know the module Hamsandwich, so my idea was to replace this module with Orpheu, so I decided to make these signatures, now we can use Orpheu to hook CBase virtual function instead of Hamsandwich

- This is the list of offsets of all what I did:
  • Half-Life

  • Half-Life: Counter-Strike


    Half-Life: Day of Defeat

  • Half-Life: Team Fortress Classic
Example:
Code:
#include <amxmodx> #include <amxmisc> #include <orpheu> new g_maxClients; public plugin_init() {     new OrpheuFunction:playerSpawnHook = OrpheuGetFunctionFromClass("player", "Spawn", "CBasePlayer");     OrpheuRegisterHook(playerSpawnHook, "Hook_ClientSpawn");             new OrpheuFunction:playerKilledHook = OrpheuGetFunctionFromClass("player", "Killed", "CBasePlayer");     OrpheuRegisterHook(playerKilledHook, "Hook_ClientKilled");         g_maxClients = get_maxplayers(); } public Hook_ClientSpawn(id) {     client_print(id, print_chat, "[Orpheu Test] You have been spawned!"); } public Hook_ClientKilled(id, attacker, gib) {     new name[32], attackerName[32];     get_user_name(id, name, charsmax(name));     get_user_name(attacker, attackerName, charsmax(attackerName));         for (new i = 1; i <= g_maxClients; i++)     {         client_print(i, print_chat, "[Orpheu Test] %s have just killed %s!", attackerName, name);     }         client_print(id, print_chat, "[Orpheu Test] You have been killed by %s!", attackerName);     client_print(attacker, print_chat, "[Orpheu Test] You have killed %s!", name)}
Special Thanks To:
Attached Files
File Type: zip Orpheu CBase Signatures [NEW BUILDS].zip (89.0 KB, 257 views)
File Type: zip Orpheu CBase Signatures [OLD BUILDS].zip (90.1 KB, 190 views)

Last edited by TheDS1337; 09-02-2013 at 13:46.
TheDS1337 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-02-2013 , 13:44   Re: Orpheu: CBase Signatures
Reply With Quote #2

There is no reason to replace Ham by Orpheu, as Ham is already configured, more easy to use, and is slightly faster.

Your title "CBase Signatures" is not really a good one. CBase alone is not really precise. We're talking about virtual functions of some generic classes like CBasePlayer, CBasePlayerWeapon, CBasePlayerItem, etc. Also, this not signatures but more offsets.
__________________

Last edited by Arkshine; 09-02-2013 at 13:47.
Arkshine is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 09-02-2013 , 13:46   Re: Orpheu: CBase Signatures
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
There is no reason to replace Ham by Orpheu, as Ham is already configured, more easy to use, and is slightly faster.

Your title "CBase Signatures" is not really a good one. CBase means nothing. We're talking about virtual functions of some generic classes like CBasePlayer, CBaseWeapon, CBasePlayerItem, CUSP, etc. Also, this not signatures but more offsets.
Ok title changed
TheDS1337 is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 09-02-2013 , 18:31   Re: Orpheu: CBase Virtual Functions Offsets
Reply With Quote #4

Why you upload signatures for old builds? Just keep this updated on latest release. Don't support back older engines nor games.

I don't remember well Orpheu internals but I guess you're using different method than ham.
Ham changes vtable pointers for functions and Orpheu does not do the same thing.

Ham is a more direct way to hook virtual calls (and clean way).
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Old 09-13-2013, 06:21
LordOfNothing
This message has been deleted by Arkshine. Reason: troll
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 02:55.


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