Raised This Month: $ Target: $400
 0% 

[HELP] Scoping damage not being multiplied


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 06-14-2011 , 19:18   Re: [HELP] Snipers damage not being multiplied
Reply With Quote #1

PHP Code:
register_event("CurWeapon""event_CurWeapon""be"
PHP Code:
public event_CurWeapon(id)
{
    if(!
is_user_alive(id))
        return 
PLUGIN_HANDLED
    
    iCurrentWeapon
[id] = read_data(2)
    
    if(
iCurrentClass[id] == 4)
    {    
        if(
iCurrentWeapon[id] != CSW_KNIFE)
            return 
PLUGIN_HANDLED
        
        
static Float:N_SpeedN_Speed rof_b
        
        
static weapon[32], ent
        get_weaponname
(iCurrentWeapon[id], weapon31)
        
ent fm_find_ent_by_owner(-1weaponid)
        
        if(
ent)
        {
            static 
Float:DelayFloat:M_Delay
            Delay 
get_pdata_float(ent464) * N_Speed
            M_Delay 
get_pdata_float(ent474) * N_Speed
            
            
if(Delay 0.0)
            {
                
set_pdata_float(ent46Delay4)
                
set_pdata_float(ent47M_Delay4)
            }
        }
    }
    return 
PLUGIN_HANDLED

Only CurWeapon is related to iCurrentWeapon.

Ignore this
PHP Code:
if(iCurrentClass[id] == 4)
{
//...

Oh there are FM_TraceLine & Ham_TraceAttack. Choose either 1 of them. Both of them have the same problems. My code uses both FM and Ham so just choose whichever is better.

Last edited by Excalibur.007; 06-14-2011 at 19:53.
Excalibur.007 is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 06-15-2011 , 20:37   Re: [HELP] Snipers damage not being multiplied
Reply With Quote #2

Anybody has the same problems?

Scoping doesn't adds the damage multiplier

Topic title changed. Not snipers but it's scoping.
Excalibur.007 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 23:34.


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