Raised This Month: $ Target: $400
 0% 

[RAGE] Help to modify some parameters


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
m4m3ts
Senior Member
Join Date: Jun 2012
Old 01-20-2014 , 08:09   [RAGE] Help to modify some parameters
Reply With Quote #1

i decide to modify weapon penetration power with rage,

from meTaLiCroSS advice
https://forums.alliedmods.net/showthread.php?t=233756

i got this example script from rage module thread.
it seems to change weapon max distance, on this:

RageSetParam( 5, 500.0 ); // max distance

but it not work, i still can shoot enemy more than 500 unit

when i change param to penetration, like this.

RageSetParam( 6, 50.0 ); // i think this is for penetration

its not work too.

please help.
this is the example script i got from rage thread.

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] );

Note:
Rage module is running well

Last edited by m4m3ts; 01-20-2014 at 09:41.
m4m3ts is offline
 



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 10:11.


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