Jump to content
Sign in to follow this  
Eekster

Recoil problem

Recommended Posts

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches

{

class SFP_ag90

{

units[] = {sfp_m90soldierak4};

weapons[] = {SFPag90};

requiredVersion = 1.85;

};

};

class CfgRecoils

{

SFPsniperSingle[]={0.080000,0,0,0.200000,0.040000,0.080000,0.400000,0.032000,0.074000,0.800000,0,0};

};

class CfgModels

{

class Default{};

class Weapon: Default{};

class SFP_ag90: Weapon{};

};

class CfgWeapons

{

class Default {};

class Mgun: Default {};

class Riffle: Mgun {};

class M16: Riffle {};

class SniperRiffle: Riffle {};

class SFPag90 : Sniperriffle

{

scopeWeapon=2;

scopeMagazine=2;

accesss=3;

ammo="bulletsniper";

displayName="Ag 90";

displayNameMagazine="Ag 90 Mag";

shortNameMagazine="Ag 90 Mag";

initspeed=850;

optics=1;

opticsZoomMin=0.070000;

opticsZoomMax=0.070000;

distanceZoomMin=450;

distanceZoomMax=450;

model="\SFP_ag90\ag905.p3d";

modelmagazine="\SFP_ag90\sfp_ag90mag";

picture="\SFP_ag90\aginventory.jpg";

magazines[]={"sfpag90mag"};

modelOptics="\SFP_ag90\optika_ag90.p3d";

count=9;

soundContinuous=0;

reloadTime=2.000000;

recoil="SFPsniperSingle";

opticsFlare=1;

valueWeapon=1000;

valueMagazine=1000;

aiRateOfFire=5.000000;

aiRateOfFireDistance=900;

maxLeadSpeed=50;

//sound[]={"\sfp_ag90\ag90.wav",1.000000,1};

};

class sfpag90mag: sfpag90

{

picture="m21";

modelmagazine="\sfp_psg90\sfp_ag90mag";

};

};

class CfgVehicles

{

class All{};

class AllVehicles:All{};

class Land:AllVehicles{};

class Man:Land{};

class Soldier:Man{};

class SoldierWB:Soldier{};

class sfp_m90soldierak4:SoldierWB

{

displayName="Prickskytt (AG90)";

vehicleClass="Men (Swedish)";

nameSound="soldier";<span id='postcolor'>

when I test the addon in the editor it says "no entry config.bin/CfgPatches/CfgRecoils.unit"

Someone who could help me with my little problem?

Share this post


Link to post
Share on other sites

Try taking quotations off the recoil name

recoil="SFPsniperSingle";

should be

recoil=SFPsniperSingle;

Share this post


Link to post
Share on other sites

tested it but it didn´t work =(

still gets the recolis.JPG

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">entry config.bin/CfgPatches/CfgRecoils.unit"<span id='postcolor'>

Based on this message you can see OFP thinks CfgRecoils is a part of CfgPatches. There must be somthing wrong or strange with the double quotes on the beginning of your file (though I cannot see what).

Share this post


Link to post
Share on other sites

Aloha!

Hummm...ok...i changed a little in the config and now i start without the riffle and he shoots from his belly and between the shots he snaps his neck...

it looks really funny!

a little movie.(8 mb)

http://hem.thn.edu.stockholm.se/~penil006/wolf/ofp/ofp_0001.avi

http://www.angelfire.com/me4/tomspillar/Downloads/SP54Codec.htm

im going crazy!

/Eekster

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×