Raised This Month: $ Target: $400
 0% 

Rate Of Fire


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 11-17-2006 , 10:54   Re: Rate Of Fire
Reply With Quote #8

I have found the real ROF offset.
THIS Offsets are for CS.

Offset for primary attack are for windows 46/linux +4 (untested),for secondary attack windows 47/linux +4 (untested).

BUT there are somthing really recommend, to set the rof it must be in "FM_PlayerPreThink" or in event CurWeapon,
and it must check,that the offset is higher than 0.0, is it under 0.0,player is reloading/weapon idle.

I post here an example plugin to change ROF,but some weapons look bad/funny with fast fire,like knife have no attack animation if ROF to fast.
Code:
#define ROF 0.001 public plugin_init() {   register_plugin(PLUGIN, VERSION, AUTHOR)   register_forward(FM_PlayerPreThink, "PlayerPreThink") } public PlayerPreThink( id ) {    new clip,ammo    new weaponID = get_user_weapon(id,clip,ammo)    if(weaponID)    {        new weapon[32]        get_weaponname(weaponID,weapon,31)        new ent = find_ent(-1,weapon)        if(ent)        {         new Float:nextattack = get_pdata_float(ent,46,4)         if (nextattack > 0.0)             set_pdata_float(ent,46,ROF,4)        }    }    return FMRES_HANDLED; }

Have fun with empty 100 bullets in 1 sec

I attach the plugin which i have used to find the rof.
Attached Files
File Type: sma Get Plugin or Get Source (roffinder.sma - 401 views - 2.6 KB)
__________________

Last edited by schnitzelmaker; 11-17-2006 at 15:59.
schnitzelmaker 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 06:58.


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