AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   need help please: no recoil (https://forums.alliedmods.net/showthread.php?t=64564)

|OnEHiTwOnDeR| 12-18-2007 11:42

need help please: no recoil
 
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| 12-18-2007 18:39

Re: need help please: no recoil
 
bump

Zenith77 12-19-2007 00:40

Re: need help please: no recoil
 
Wait a week or two then bump, or else down the can this goes. As for your problem, read the documentation, Wiki, and look at other plugins. Have a nice day.

|OnEHiTwOnDeR| 12-25-2007 10:09

Re: need help please: no recoil
 
anyone? come on u guys its christmas!


All times are GMT -4. The time now is 11:08.

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