OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: swift88 on 01 Aug 2003, 17:59:23
-
i need help with this script really badly its a centurion avlb bridge layer (model by rufus)...........ive figured out how to do it, the problem is that ive adapted a script but when i ran resistance, it says centurion avlb script has C instead of ; ......... what the hell does dat mean !!!!!
any way i hope you can help me
//This is the Config file for the
//US Centurion - Gulf War
//Model by Rufus, Coding by quakergamer i could add you name here
//For the OPGWC MOD
//http://www.roughnecks.org/opgwc/
//Visit us!!
class CfgPatches
{
   class centurion AVLB
   {
      units[]={"ds_centurion AVLB"};
      weapons[]={};
      requiredVersion=1.70;
   };
};
class CfgModels
{  ÂÂ
   class Default {};
   class Vehicle: Default {};
   class Tank: Vehicle {};
   class ds_centurion: Tank {};
};
class CfgVehicles
{
   class All {};
   class AllVehicles: All {};
   class Land: AllVehicles   {};
   class LandVehicle: Land {};
   class Tank: LandVehicle {};
   class M1Abrams: Tank {};
   class ds_centurion: M1Abrams
   {
      scope=2;
      side=1;
      displayName="UK Centurion AVLB";
      nameSound="tank";
      accuracy=0.700000;
      armor=1750;
      cost=1000000
      maxSpeed=56;
      type=1;
      threat[]={1,1,0.300000};
      model="\ds_centurion\ds_centurionavlb.p3d";
//Canturn
  ÂÂ
      forceHideDriver=1;
      driverAction="ManActT72DriverOut";
      driverInAction="ManActT72Driver";
      commanderAction="ManActM1A1CommanderOut";
      commanderInAction="ManActT72Commander";
      soundEngine[]={"\ds_c2\fx\chal2_engine.ogg",10.000000,1};
      soundEnviron[]={"\ds_c2\fx\UK_CHALTREADS.OGG",10.000000,1};  ÂÂ
   {
//TurnOut Anims config
      class Stage 1
      {  ÂÂ
         selection="structure";
         axis="osa_crane";
         angle=-45
      };
      class Struts move
      {
         selection="stand"
         axis="osa_stand"
         angle=-30
      };
//Im going to continue once ive finished
      class HatchDriver
      {
         selection="poklop_driver";
         axis="osa_poklop_driver";
         angle=110;
      };
      class HatchCommander
      {
         selection="poklop_commander";
         axis="osa_poklop_commander";
         angle=115;
      };
//Config Wheels
      class Wheels
      {
         rotR[]={"kolL1","kolL2","kolL3","kolL4","kolL5","kolL6","kolL7","kolL8"};
         rotL[]={"kolP1","kolP2","kolP3","kolP4","kolP5","kolP6","kolP7","kolP8"};
         upDownL[]={"koloP1","podkoloP1","koloP2","podkoloP2","koloP3","podkoloP3","koloP4","podkoloP4","koloP5","podkoloP5","koloP6","podkoloP6","koloP7","podkoloP7","koloP8","podkoloP8"};
         upDownR[]={"koloL1","podkoloL1","koloL2","podkoloL2","koloL3","podkoloL3","koloL4","podkoloL4","koloL5","podkoloL5","koloL6","podkoloL6","koloL7","podkoloL7","koloL8","podkoloL8"};
      };
//armor config
      class HitEngine {armor=0.8;material=60;name=engine;passThrough=1;}
      class HitHull {armor=1;material=53;name=hull;passThrough=1;};
      armorEngine=0.8;
      armorLights=0.4;
      armorStructural=0.8;
      armorTracks=0.6;
      armorHull=1.0;
//end armor config
   };
};
class CfgNonAIVehicles
{
   class ProxyCrew {};
   class ProxyDriver: ProxyCrew {};
   class ProxyCommander: ProxyCrew {};
   class ProxycenturionDriver: ProxyDriver {};
   class ProxycenturionCommander: ProxyCommander {};
   class ProxycenturionCommanderOutStat: ProxyCommander {};
};
[img removed]avlb_with_bridge.jpg[/img]
-
i also need a drop script
-
I believe you are missing a } somewhere. There are 39 { and only 38 }. There has to be a matching number of brackets.
-
thanxs man
-
still hasnt been fixed
-
soundEngine[]={"\ds_c2\fx\chal2_engine.ogg",10.000000,1};
soundEnviron[]={"\ds_c2\fx\UK_CHALTREADS.OGG",10.000000,1};
{ <--------------------------------------------------------
//TurnOut Anims config
class Stage 1
{ indicated by my rox0r arrow shouldn't be there. There's no reason for it.
class Stage 1
{
selection="structure";
axis="osa_crane";
angle=-45 <----------------------------
};
class Struts move
{
selection="stand" <----------------------------
axis="osa_stand" <----------------------------
angle=-30 <----------------------------
Lines indicated by more arrows lack ; at the end
If you fix that, and then post the edited config.cpp, we can help you more. That is, if it's still not working
*Sits down and prays for an error-reporting in OFP which returns linenumber*
-
Off-topic, but it's a Chieftain AVLB, not a Centurion.
-
2 kooky i know but this is the best i can do for the moment
2 ktotte thanks man ill give it a try 2nite
-
now all i get now is a crash of the game when i run it after editor and the screen flashes and brings me back 2 windsows