Raised This Month: $ Target: $400
 0% 

need help please: no recoil


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
|OnEHiTwOnDeR|
Member
Join Date: Apr 2007
Location: Los Angeles
Old 12-18-2007 , 11:42   need help please: no recoil
Reply With Quote #1

now this is for Day Of Defeat

me <----------- total nub at this nd have never scripted anything in my life

i have this

Code:
// Created by potatis_invalido
stock create_recoil( id, Float:recoil ) {
    new Float:angles[3];
    pev(id, pev_v_angle, angles);
     
    angles[0] -= random_float(recoil * 1.2, recoil * 0.8);
    if(angles[0] < -88.994750)
    {
        angles[0] = -88.994750;
    }
    else if(angles[0] > 88.994750)
    {
        angles[0] = 88.994750;
    }
     
    angles[1] += random_float(recoil * 0.35, recoil * -0.35);
    if(angles[1] > 180.0)
    {
        angles[1] -= 360.0;
    }
    else if(angles[1] < -180.0)
    {
        angles[1] += 360.0;
    }
    set_pev(id, pev_angles, angles);
    set_pev(id, pev_fixangle, 1);
}
and have no idea what the heck to do with this. im trying to make dod have no recoil on my server and none of the plugins on here work for my mod.
help would be appreciated, thank you so much.
__________________
|OnEHiTwOnDeR| is offline
Send a message via AIM to |OnEHiTwOnDeR|
 



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


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