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

Module: Orpheu (v2.6.3)


Post New Thread Reply   
 
Thread Tools Display Modes
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 01-29-2013 , 20:03   Re: Module: Orpheu2.3a
Reply With Quote #991

Quote:
Originally Posted by Arkshine View Post
both functions are inlined on windows and linux? Check yourself ? It's anyway depending, sometimes both are inline, sometimes not. Something you can check easily since you use already IDA.

About changing maxclip, I would do like in WeaponMod, you block original weapon and you register a new one ; and of course depending what you want you can use the same value as the original weapon but changing only max clip. It's the best and fastest way since it would require to hook just one function at precache and doing nothing else. Of course, it's not suitable for "dynamic" change.
I'm not trying to override default weapons, and if I was, just will need to hook GetItemInfo and voilā, but I'm trying to use the default weapons but with another max clip value and for only some specific weaponents, and for that I was thinking to change the value of m_iDefaultAmmo on spawn which would be used on ExtractAmmo (and hooking DefaultReload, ItemPostFrame, and blabla), the bad thing is that I can't reach the default max clip value with m_iDefaultAmmo...

PHP Code:
// From HLSDK, AddPrimaryAmmo
// ...
minm_iClip iCountiMaxClip ) - m_iClip
And some possible solutions for that would be
  1. Make a signature for ExtractAmmo and rewrite it (i can't find ExtractAmmo on windows -__-)
  2. "Access" (?) to the ItemInfoArray and change the value temporarily

Sorry for my english also, i'm trying to do my best
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-30-2013 , 06:35   Re: Module: Orpheu2.3a
Reply With Quote #992

just will need to hook GetItemInfo and voilā Which would be a be very poor way.

Btw there is a plugin to change the max clip : http://forums.alliedmods.net/showthread.php?p=728613

Without using his method, you will need to access to the global var ItemInfoArray, which is just a matter to retrieve his base address.
__________________
Arkshine is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 01-30-2013 , 20:06   Re: Module: Orpheu2.3a
Reply With Quote #993

Quote:
Originally Posted by Arkshine View Post
Without using his method, you will need to access to the global var ItemInfoArray, which is just a matter to retrieve his base address.
Some code can be reduced hooking DefaultReload, something that I wrote above, or i'm wrong? D:
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Old 02-07-2013, 09:14
teh ORiON
This message has been deleted by teh ORiON. Reason: nvm
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 02-14-2013 , 08:37   Re: Module: Orpheu2.3a
Reply With Quote #994

Does this Module work with that latest 1.8.2 - i think i read somewhere that it has to be updated?
AllMassive is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-14-2013 , 08:46   Re: Module: Orpheu2.3a
Reply With Quote #995

Orpheu itself should work fine. Though it would need probably some changes to add OSX support.
What it will need to be changed is the linux symbols for all existing signature file, but since it's a just a name convention which changes, it would be a good idea to modify Orpheu to support such change internally, it would avoid to modify all config files.
Will try to update later the module.
__________________
Arkshine is offline
Nemrak
Junior Member
Join Date: Jan 2011
Old 02-18-2013 , 06:06   Re: Module: Orpheu2.3a
Reply With Quote #996

L 02/18/2013 - 13:04:56: [ORPHEU] Function "SV_ConnectClient" not found
Nemrak is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-18-2013 , 06:11   Re: Module: Orpheu2.3a
Reply With Quote #997

Show your file
__________________
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 02-19-2013 , 10:07   Re: Module: Orpheu2.3a
Reply With Quote #998

This signature error on current build (5956) hlds Windows:
Code:
{
    "name"      : "SetAnimation",
    "class"     : "CBasePlayer",
    "library"   : "mod",
    "arguments" :
    [
        {
            "type"  : "PLAYER_ANIM"
        }
    ],
    "identifiers":
    [
        {
            "os"    : "windows",
            "mod"   : "cstrike",
            "value" : [0x83,0xec,0x48,0x53,0x55,0x8b,0xe9,0x56,0x57,0x8b,0x4d,0x4,0x8b,0x81,0xb4,0x0,0x0,0x0,0x85,0xc0]
        },
        {
            "os"    : "linux",
            "mod"   : "cstrike",
            "value" : "SetAnimation__11CBasePlayer11PLAYER_ANIM"
        }
    ]
}
Someone update please.

This signature used in Enable Long Jump plugin Orpheu version.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 02-19-2013 at 10:09.
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-19-2013 , 10:24   Re: Module: Orpheu2.3a
Reply With Quote #999

Code:
{
    "name"      : "SetAnimation",
    "class"     : "CBasePlayer",
    "library"   : "mod",
    "arguments" :
    [
        {
            "type"  : "PLAYER_ANIM"
        }
    ],
    "identifiers":
    [
        {
            "os"    : "windows",
            "mod"   : "cstrike",
            "value" : [0x83,"*","*",0x53,0x55,0x8B,"*",0x56,0x57,0x8B,"*","*",0x8B,"*","*","*","*","*",0x85]
        }, 
        {
            "os"    : "linux",
            "mod"   : "cstrike",
            "value" : "SetAnimation__11CBasePlayer11PLAYER_ANIM"
        },
        {
            "os"    : "linux",
            "mod"   : "cstrike",
            "value" : "_ZN11CBasePlayer12SetAnimationE11PLAYER_ANIM"
        }
    ]
}
__________________
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 02-19-2013 , 10:30   Re: Module: Orpheu2.3a
Reply With Quote #1000

Quote:
Originally Posted by Arkshine View Post
Code:
{
    "name"      : "SetAnimation",
    "class"     : "CBasePlayer",
    "library"   : "mod",
    "arguments" :
    [
        {
            "type"  : "PLAYER_ANIM"
        }
    ],
    "identifiers":
    [
        {
            "os"    : "windows",
            "mod"   : "cstrike",
            "value" : [0x83,"*","*",0x53,0x55,0x8B,"*",0x56,0x57,0x8B,"*","*",0x8B,"*","*","*","*","*",0x85]
        }, 
        {
            "os"    : "linux",
            "mod"   : "cstrike",
            "value" : "SetAnimation__11CBasePlayer11PLAYER_ANIM"
        },
        {
            "os"    : "linux",
            "mod"   : "cstrike",
            "value" : "_ZN11CBasePlayer12SetAnimationE11PLAYER_ANIM"
        }
    ]
}
Cool, plugin loaded now, thanks as always
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo 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 15:30.


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