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

Module: Rage


Post New Thread Reply   
 
Thread Tools Display Modes
Bos93
Veteran Member
Join Date: Jul 2010
Old 01-15-2014 , 16:54   Re: Module: Rage
Reply With Quote #171

hi.

PHP Code:
L 01/16/2014 01:51:08: [RAGE] Function "CBaseEntity::FireBullets3" not found i
n rage
L 01
/16/2014 01:51:08: [AMXXDisplaying debug trace (plugin "test.amxx")
L 01/16/2014 01:51:08: [AMXXRun time error 10native error (native "RageGet
Function"
)
L 01/16/2014 01:51:08: [AMXX]    [0test.sma::plugin_init (line 11

plugin_init()

PHP Code:
RageCreateHookRageGetFunction"CBaseEntity::FireBullets3" ), "fw_FireBullets"RageHookPre ); 
PHP Code:
public fw_FireBulletspEntityFloat:vecSrc], Float:vecDir], flSpreadflDistiPenetrationbulletTypeiDamageFloat:rangeModpevAttackerbool:isPistolsharedRand )
{    
    
client_print0print_chat"HOOK ?" )

PHP Code:
meta list
Currently loaded plugins:
      
description      stat pend  file              vers      src   load  unlod
 
1AMX Mod X        RUN   -    amxmodx_mm.dll    v1.8.2    ini   Start ANY
 
2CStrike          RUN   -    cstrike_amxx.dll  v1.8.2    pl1   ANY   ANY
 
3Engine           RUN   -    engine_amxx.dll   v1.8.2    pl1   ANY   ANY
 
4FakeMeta         RUN   -    fakemeta_amxx.dl  v1.8.2    pl1   ANY   ANY
 
5Fun              RUN   -    fun_amxx.dll      v1.8.2    pl1   ANY   ANY
 
6Ham Sandwich (u  RUN   -    hamsandwich_amxx  v1.4.1    pl1   ANY   ANY
 
7Orpheu           RUN   -    orpheu_amxx.dll   v2.5.1    pl1   ANY   ANY
 
8Rage             RUN   -    rage_amxx.dll     vBETA 3   pl1   ANY   ANY
 
9CSX              RUN   -    csx_amxx.dll      v1.8.2    pl1   ANY   ANY
9 plugins
9 running 
PHP Code:
version
Protocol version 48
Exe version 1.1.2.7 
(cstrike)
Exe build17:46:18 Apr 25 2013 (6027
\rage\functions\mod\CBaseEntity_FireBullets3


PHP Code:
"CBaseEntity::FireBullets3"
{
    
handler thiscall_Vector__CBaseEntity_Vector_Vector_Float_Float_Int_Int_Int_Float_Entvars_Bool_Int
   
    identifiers 
:
    {
        
cstrike  
        
{
            
windows
            
{
                {
0x81,*,*,*,*,*,0x8B,0x84,*,*,*,*,*,0x53,0x55,0x56,0x89,*,*,*,0xA1}
            }
           
            
linux
            
{
                
FireBullets3__11CBaseEntityG6VectorT1ffiiifP9entvars_sbi
            
}
        }
    }

OS: Windows.
__________________

Last edited by Bos93; 01-15-2014 at 16:57.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
m4m3ts
Senior Member
Join Date: Jun 2012
Old 01-20-2014 , 18:24   Re: Module: Rage
Reply With Quote #172



i want to modify weapon penetration with rage

i've download this 2 files (should i download the other ??) :

rage_beta3_BIN.zip
plugin-firebullets3-example.zip

i've install it.
then i check amx_modules & amx_plugins
both module & plugin running well

firebullet example seems change weapon maxdistance shot on this

RageSetParam( 5, 500.0 ); // max distance

but it not works, i still can shoot enemy more than 500 unit.
please help
i want to change weapon penetration too.
thanks.

PHP Code:
#include <amxmodx>
#include <rage>
#include <fakemeta>

public plugin_init()
{
    new 
RageFunc:handleFunc RageGetFunction"CBaseEntity::FireBullets3" );
    
    
RageCreateHookhandleFunc"OnFireBullets3_Pre"RageHookPre );
    
RageCreateHookhandleFunc"OnFireBullets3_Post"RageHookPost );
}

public 
OnFireBullets3_PreentityFloat:source[3], Float:dirShooting[3], Float:spreadFloat:distancepenetrationbulletTypedamageFloat:rangerModifierattackerbool:isPistolsharedRand )
{
    
log_amx"%d, %f %f %f, %f %f %f, %f, %f, %d, %d, %d, %f, %d, %d, %d"entitysource[0], source[1], source[2], dirShooting[0], dirShooting[1], dirShooting[2], spreaddistancepenetrationbulletTypedamagerangerModifierattackerisPistolsharedRand );
    
    
RageSetParam5500.0 );  // max distance


public 
OnFireBullets3_PostentityFloat:source[3], Float:dirShooting[3], Float:spreadFloat:distancepenetrationbulletTypedamageFloat:rangerModifierattackerbool:isPistolsharedRand )
{
    new 
Float:origReturn[3];
    
RageGetReturnorigReturn );
    
    
log_amx"origReturn = %f %f %f"origReturn[0], origReturn[1], origReturn[2] );


Last edited by m4m3ts; 01-20-2014 at 18:27.
m4m3ts is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 01-20-2014 , 18:29   Re: Module: Rage
Reply With Quote #173

m4m3ts, what is your build? I get errors. Build 6027.
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
m4m3ts
Senior Member
Join Date: Jun 2012
Old 01-20-2014 , 19:03   Re: Module: Rage
Reply With Quote #174

Quote:
Originally Posted by Bos93 View Post
m4m3ts, what is your build? I get errors. Build 6027.
i use on local server

this my version
48/1.1.2.6/2.0.0.0 4554

rage errors (see my post first ..above)

log
[RAGE] Function "CBaseEntity::FireBullets3" not found in rage

Handlers are installed ( addons/rage/handlers )
CBaseEntity_FireBullets3 is installed ( addons/rage/functions/mod )


Errors:

Unable to open functions directory for library 'engine'
Unable to open virtual functions directory for library 'engine'
Unable to open functions directory for library 'metamod'
Unable to open virtual functions directory for library 'metamod'
Function 'CBaseEntity_FireBullets3' signature { 0x81 * * * * ... } for your system was not found
Function 'CBaseEntity_FireBullets3' will be unusable since there wasn't any working identifier for your system

Last edited by m4m3ts; 01-20-2014 at 19:08.
m4m3ts is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viña del Mar, Chile
Old 01-21-2014 , 12:35   Re: Module: Rage
Reply With Quote #175

Quote:
Originally Posted by m4m3ts View Post
i use on local server

this my version
48/1.1.2.6/2.0.0.0 4554

rage errors (see my post first ..above)

log
[RAGE] Function "CBaseEntity::FireBullets3" not found in rage

Handlers are installed ( addons/rage/handlers )
CBaseEntity_FireBullets3 is installed ( addons/rage/functions/mod )


Errors:

Unable to open functions directory for library 'engine'
Unable to open virtual functions directory for library 'engine'
Unable to open functions directory for library 'metamod'
Unable to open virtual functions directory for library 'metamod'
Function 'CBaseEntity_FireBullets3' signature { 0x81 * * * * ... } for your system was not found
Function 'CBaseEntity_FireBullets3' will be unusable since there wasn't any working identifier for your system
Post the full outputs of:

rcon version
rcon amxx version
rcon meta list
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 01-25-2014 , 05:40   Re: Module: Rage
Reply With Quote #176

Ok, i can set penetration with firebullet3 hook, but how can i set knockback for victim? i see no knockback param on it.

I mean knockback to send victim go backward.

PHP Code:
#include <amxmodx>
#include <rage>
#include <hamsandwich>
#include <fun>
#include <cstrike>

public plugin_init()
{
    
register_plugin("firebullet hook""0.0.1""arkshine")
    new 
RageFunc:handleFunc RageGetFunction("CBaseEntity::FireBullets3")
    
RageCreateHook(handleFunc"OnFireBullets3_Pre"RageHookPre)
    
    
RegisterHam(Ham_Spawn"player""OnSpawned"1)
}

public 
OnFireBullets3_Pre(entityFloat:source[3], Float:dirShooting[3], Float:spreadFloat:distancepenetrationbulletTypedamageFloat:rangerModifierattackerbool:isPistolsharedRand)
{
    
RageSetParam(5100.0)  //short range, close combat
    //RageSetParam(6, penetration*=10) //high penetration, player stunt for awhile haha
    //RageSetParam(4, 0.0) //nospread, i see no different
}

public 
OnSpawned(id)
{
    if(
is_user_alive(id))
    {
        
set_user_health(id3000)
        new 
wpn give_item(id"weapon_m249")
        if(
wpn != -1)
        {
            
cs_set_weapon_ammo(wpn32767)
            
cs_set_user_bpammo(idCSW_M24932767)
        }
    }


Last edited by yokomo; 01-25-2014 at 05:41.
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-25-2014 , 06:13   Re: Module: Rage
Reply With Quote #177

It's handled in CBasePlayer::TakeDamage()

PHP Code:
            if (ShouldDoLargeFlinch(m_LastHitGrouppAttack->m_pActiveItem->m_iId))
            {
                if (
pev->velocity.Length() < 300)
                {
                    
m_flVelocityModifier 0.65;
                    
pev->velocity pev->velocity + (pev->origin pAttack->pev->origin).Normalize() * 170;
                }

                
SetAnimation(PLAYER_LARGE_FLINCH);
            }
            else
            {
                
m_flVelocityModifier 0.5;

                if (
m_LastHitGroup == HITGROUP_HEAD)
                    
m_bHighDamage = (flDamage 60);
                else
                    
m_bHighDamage = (flDamage 20);

                
SetAnimation(PLAYER_FLINCH);
            } 
__________________
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 01-25-2014 , 07:28   Re: Module: Rage
Reply With Quote #178

Quote:
Originally Posted by Arkshine View Post
It's handled in CBasePlayer::TakeDamage()

PHP Code:
            if (ShouldDoLargeFlinch(m_LastHitGrouppAttack->m_pActiveItem->m_iId))
            {
                if (
pev->velocity.Length() < 300)
                {
                    
m_flVelocityModifier 0.65;
                    
pev->velocity pev->velocity + (pev->origin pAttack->pev->origin).Normalize() * 170;
                }

                
SetAnimation(PLAYER_LARGE_FLINCH);
            }
            else
            {
                
m_flVelocityModifier 0.5;

                if (
m_LastHitGroup == HITGROUP_HEAD)
                    
m_bHighDamage = (flDamage 60);
                else
                    
m_bHighDamage = (flDamage 20);

                
SetAnimation(PLAYER_FLINCH);
            } 
Seems hard to change, nevermind.
yokomo is offline
darktemplar
Member
Join Date: Sep 2009
Old 04-23-2014 , 02:24   Re: Module: Rage
Reply With Quote #179

I used FireBullets3 which was posted by Arkshine, but it throws me some errors :

Rage Errors :
Function 'CBaseEntity_FireBullets3' signature { 0x81 * * * * ... } for your system was not found
Function 'CBaseEntity_FireBullets3' will be unusable since there wasn't any working identifier for your system
Virtual function 'CBaseEntity_FireBullets3' doesn't have an 'offsets' entry

Rage Function : Nothing
Rage Handlers : Crash


Could anyone tell me why ? Thank you
darktemplar is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-23-2014 , 07:40   Re: Module: Rage
Reply With Quote #180

Open rage/functions/mod/CBaseEntity_FireBullets3 file, and replace signature by :

Code:
{0x81,*,*,*,*,*,0x8B,*,*,*,*,*,*,0x53,0x55,0x89,*,*,*,0xA1}
__________________
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 06:07.


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