Raised This Month: $ Target: $400
 0% 

[REQUEST] Recoil stocks in to a plugin?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
|OnEHiTwOnDeR|
Member
Join Date: Apr 2007
Location: Los Angeles
Old 12-26-2007 , 11:15   [REQUEST] Recoil stocks in to a plugin?
Reply With Quote #1

how would i make this into a no recoil plugin ?

PHP Code:
// Created by potatis_invalido
stock create_recoilidFloat:recoil ) {
    new 
Float:angles[3];
    
pev(idpev_v_angleangles);
     
    
angles[0] -= random_float(recoil 1.2recoil 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.35recoil * -0.35);
    if(
angles[1] > 180.0)
    {
        
angles[1] -= 360.0;
    }
    else if(
angles[1] < -180.0)
    {
        
angles[1] += 360.0;
    }
    
set_pev(idpev_anglesangles);
    
set_pev(idpev_fixangle1); 
}
__________________
|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:04.


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