Raised This Month: $ Target: $400
 0% 

No recoil problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GAARA54
Veteran Member
Join Date: Oct 2009
Location: Everywhere
Old 11-13-2011 , 03:35   No recoil problem
Reply With Quote #1

Hi

i have plugin which set no recoil, but plugin have problems with sight
i need to narrow sight + no recoil, but plugins set only no recoil

Code:

PHP Code:
public fw_Weapon_PrimaryAttack_Post(entity)
{
    new 
id pev(entitypev_owner)

    if (
g_norecoil[id])
    {
        new 
Floatpush[3]
        
pev(idpev_punchanglepush)
        
xs_vec_sub(pushcl_pushangle[id], push)
        
xs_vec_mul_scalar(push0.0push)
        
xs_vec_add(pushcl_pushangle[id], push)
        
set_pev(idpev_punchanglepush)
        return 
HAM_IGNORED;
    }
    return 
HAM_IGNORED;



This is code from zp cv47:

PHP Code:
public fw_Aug_PrimaryAttack_Post(Weapon)
{
    
g_IsInPrimaryAttack 0
    
new Player get_pdata_cbase(Weapon415)
    
    if(
g_has_aklong[Player])
    {
        new 
Float:push[3]
        
pev(Player,pev_punchangle,push)
        
xs_vec_sub(push,cl_pushangle[Player],push)
        
        
xs_vec_mul_scalar(push,get_pcvar_float(cvar_recoil_aklong),push)
        
xs_vec_add(push,cl_pushangle[Player],push)
        
set_pev(Player,pev_punchangle,push)
        
        if (!
g_clip_ammo[Player])
            return
        
        
emit_sound(PlayerCHAN_WEAPONSound_Fire[0], VOL_NORMATTN_NORM0PITCH_NORM)
        
UTIL_PlayWeaponAnimation(Playeranim_shoot1)
    
        
make_blood_and_bulletholes(Player)
    }    

xs_vec_mul_scalar(push,get_pcvar_float(cvar_r ecoil_aklong),push)

cvar_recoil_aklong = 0.55




i try to set by anology:

PHP Code:
public fw_Weapon_PrimaryAttack_Post(entity)
{
    new 
id pev(entitypev_owner)

    if (
g_norecoil[id])
    {
        new 
Floatpush[3]
        
pev(idpev_punchanglepush)
        
xs_vec_sub(pushcl_pushangle[id], push)
        
xs_vec_mul_scalar(push0.55push)
        
xs_vec_add(pushcl_pushangle[id], push)
        
set_pev(idpev_punchanglepush)
        return 
HAM_IGNORED;
    }
    return 
HAM_IGNORED;

but this don't arrow sight + this crash no recoil, how to add to this code feature which can narrow sight ?


FIRST PICTURE - MY NO RECOIL PLUGIN
SECOND - ZP EXTRA MP5

I NEED EFFECT LIKE SECOND PICTURE
__________________

Last edited by GAARA54; 11-13-2011 at 05:46.
GAARA54 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 08:26.


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