granitsky 0 Posted March 20, 2003 How do you change the recoil around? I used PBOtool to unzip the pbo for someone's AK addon. The config.cpp file refers to recoil as recoil="riffleSingle"; I assume this is referring to a standard recoil description somewhere. where do I get access to that where I can change the numbers around? I want it all to be put into the .pbo addon file I make. Share this post Link to post Share on other sites
USMC Sniper 0 Posted March 20, 2003 If you have MSN or ICQ, I can help you. Share this post Link to post Share on other sites
granitsky 0 Posted March 20, 2003 thanks, can you email me or message me on this site's messenger? Share this post Link to post Share on other sites
earl 0 Posted March 20, 2003 Here's the CfgRecoils from the 1.46(?) commented config from BIS. If you go to OFPEC, and search the FAQ for recoils, you'll find a few bits of useful info about it. Each recoil setting is made up of three base values : [time, offset, angle]. It seems that you can use multiple groups to get a recoil curve (for example, a shotgun might have a sharp initial recoil followed by a slower rise to simulate the shooter absorbing the heavy impulse). I think that's how it works anyway. </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgRecoils { access = ReadAndCreate; empty[]={}; // time, offset, angle impulse[]= { 0.05,0.02,0.2, 0.10,0.03,-0.1, 0.30,0,0 }; riffleSingle[]= {0.05,0.02,0.04, 0.05,0,0}; riffleSilenced[]={0.01,0.004,0.01, 0.05,0,0}; LAWSingle[]= { 0.02,0,0, 0.05,0.08,0.03, 0.1,0.03,0.015, 0.2,0,0 }; sniperSingle[]= { 0.02,0,0, 0.05,0.01,0.02, 0.1,0.008,0.018, 0.2,0,0 }; /*! \patch 1.12 Date 8/6/2001 by Ondra. - Change: Burst recoil curve changed - is stronger, but shorter. */ riffleBurst3[]= {0.05,0.02,0.04, 0.05,0,0}; /* mgunBurst3[]= { #define coefA 1.5 0.05,0.02,0.04*coefA, 0.05,0.01,0.01*coefA, 0.05,0.03,0.05*coefA, 0.05,0.02,0.02*coefA, 0.05,0.04,0.06*coefA, 0.01,0,0 #undef coefA }; */ /*! \patch 1.17 Date 8/14/2001 by Marek. - Change: MGun recoil effect was too strong, it was weakened. \patch 1.27 Date 10/18/2001 by Ondra. - Change: MGun recoil effect was still too strong. */ mgunBurst3[]= { #define coefA 0.5 #define coefO 1.35 0.05,0.02,0.04*coefO, 0.05,0.01,0.01*coefA, 0.05,0.03,0.04*coefO, 0.05,0.02,0.02*coefA, 0.05,0.04,0.04*coefO, 0.01,0,0 #undef coefA #undef coefO }; }; <span id='postcolor'> Share this post Link to post Share on other sites