Frugo_PL
Nov 12 2002, 01:20
Here's my config for my SAM. OFP loads up to the Codemasters splash screen and then crashes. What's wrong here?
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">#define TEast 0
#define true 1
#define false 0
#define private 0
#define protected 1
#define public 2
class CfgPatches
{
class SAM
{
units[] = {SAM};
weapons[] = {};
requiredVersion = 1.30;
};
};
class CfgAmmo
{
class default {};
class AT3: default {};
class LAW: AT3 {};
class SAM: LAW
{
hit=250; indirectHit=100; indirectHitRange=2;
minRange=30;minRangeProbab=0.50;
midRange=500;midRangeProbab=0.95;
maxRange=2000;maxRangeProbab=0.10;
model = "\sam\sam2.p3d";
maxSpeed=500;
manualControl=true;
maxControlRange=400
cost=7000;
};
};
class CfgWeapons
{
class default {};
class LAWLauncher : default {};
class RPGLauncher: LAWLauncher {};
class SAM : RPGLauncher
{
displayName = "SAM";
displayNameMagazine="SAM";
shortNameMagazine="SAM";
ammo = "SAM";
count=8;
canLock=1;
reloadTime=0.000001;
};
};
class CfgVehicles
{
class All{};
class AllVehicles: All {};
class Land:AllVehicles{};
class Tank:Land{};
class APC : Tank {};
class M113 : APC {};
class M2StaticMG : M113 {};
class SAM : M2StaticMG
{
side = 1;
threat[]={0,0,1};
displayName="SAM";
model = "\sam\sam.p3d"
crew="SoldierWB";
getInRadius = 5;
weapons[]={"SAM"};
magazines[]={"SAM"};
class Turret
{
gunAxis = "OsaHlavne";
turretAxis = "OsaVeze";
gunBeg = "usti hlavne";
gunEnd = "konec hlavne";
body = "OtocVez";
gun = "OtocHlaven";
soundServo[]={};
minElev=0;
maxElev=60;
minTurn=-360;
maxTurn=360;
};
};
};[/QUOTE]<span id='postcolor'>
I copied and pasted from the DKM Tow, chnged some stuff. Everything should be fine (at least that's wut I think) with the model.
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">#define TEast 0
#define true 1
#define false 0
#define private 0
#define protected 1
#define public 2
class CfgPatches
{
class SAM
{
units[] = {SAM};
weapons[] = {};
requiredVersion = 1.30;
};
};
class CfgAmmo
{
class default {};
class AT3: default {};
class LAW: AT3 {};
class SAM: LAW
{
hit=250; indirectHit=100; indirectHitRange=2;
minRange=30;minRangeProbab=0.50;
midRange=500;midRangeProbab=0.95;
maxRange=2000;maxRangeProbab=0.10;
model = "\sam\sam2.p3d";
maxSpeed=500;
manualControl=true;
maxControlRange=400
cost=7000;
};
};
class CfgWeapons
{
class default {};
class LAWLauncher : default {};
class RPGLauncher: LAWLauncher {};
class SAM : RPGLauncher
{
displayName = "SAM";
displayNameMagazine="SAM";
shortNameMagazine="SAM";
ammo = "SAM";
count=8;
canLock=1;
reloadTime=0.000001;
};
};
class CfgVehicles
{
class All{};
class AllVehicles: All {};
class Land:AllVehicles{};
class Tank:Land{};
class APC : Tank {};
class M113 : APC {};
class M2StaticMG : M113 {};
class SAM : M2StaticMG
{
side = 1;
threat[]={0,0,1};
displayName="SAM";
model = "\sam\sam.p3d"
crew="SoldierWB";
getInRadius = 5;
weapons[]={"SAM"};
magazines[]={"SAM"};
class Turret
{
gunAxis = "OsaHlavne";
turretAxis = "OsaVeze";
gunBeg = "usti hlavne";
gunEnd = "konec hlavne";
body = "OtocVez";
gun = "OtocHlaven";
soundServo[]={};
minElev=0;
maxElev=60;
minTurn=-360;
maxTurn=360;
};
};
};[/QUOTE]<span id='postcolor'>
I copied and pasted from the DKM Tow, chnged some stuff. Everything should be fine (at least that's wut I think) with the model.