OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: ticilli on 17 May 2004, 19:19:24
-
Hi, i need some help with one of my 1st from scratch .cpps when i load it i get the error:
no entry 'config.bin/CfgWeapons.MP5mag'.
and when i place my Saboteur i get the error
no entry '.modelspecial'.
Being new to CPP i have no idea what this means, if anyone can help i'd appreciate it.
// MP5SD6 by TIC
// Basic def.
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7
#define true 1
#define false 0
// type scope
#define private 0
#define protected 1
#define public 2
class CfgPatches
{
   class TIC_Saboteur
   {
      units[]={TICSab};
      weapons[]={MP5SD6};
      requiredVersion=1.00000;
   };
};
class CfgModels
{
   class Default{};
   class Weapon: Default{};
   class MP5SD6 : Weapon{};
};
class CfgAmmo
{
   class default {};
   class BulletSilencedSingle: Default {};
   class BulletSilencedBurst: BulletSilencedSingle {};
class MP5Ammo: BulletSilencedSingle {};
};
class CfgWeapons
{
   class Default {};
   class MGun: Default {};
   class Riffle: MGun {};  ÂÂ
  ÂÂ
   class MP5SD6: Riffle
   {
      model="\pkcsd6\pkcsd6";
      displayName="H&K MP5SD6";
      displayNameMagazine="Mp5 Mag";
      magazines[]={"Mp5mag"};
      ammo=MP5Ammo;
     ÂÂ
   };
};
class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class Soldier:Man{};
class Civilian:Soldier{};
   class TICSaboteur: Civilian
   {
      access=2
      scope=public;
      //picture=isaboteur;
      picture="\misc\meciky.paa";
      accuracy=3.5; // hard to recognize
      cost=2500;
     ÂÂ
      displayName="Saboteur Sd";
      weapons[]={"MP5SD6","Throw","Put"};
      magazines[]={"mp5mag", "mp5mag", "mp5mag", "mp5mag",
      "TimeBomb", "TimeBomb", "TimeBomb"
      };
      camouflage=0.7; // how easy to spot -> bigger means better spotable
      //threat[] VSoft, VArmor, VAir
      threat[]={1, 0.5, 0.1};
      model= "mc saboteur.p3d";
      canHideBodies = true;
      canDeactivateMines=true;
      nightVision=true;
   };  ÂÂ
};
class CfgNonAIVehicles
{
   class ProxyWeapon {};
   class ProxyTICSab : ProxyWeapon {};
};
-
i think you are missing the magazine part of the cfg weapons part so it should look like this.Dont know if it will work or not :-\
class CfgWeapons
{
class Default {};
class MGun: Default {};
class Riffle: MGun {};
class MP5SD6: Riffle
{
model="\pkcsd6\pkcsd6";
displayName="H&K MP5SD6";
displayNameMagazine="Mp5 Mag";
magazines[]={"Mp5mag"};
ammo=MP5Ammo;
};
};
class MP5mag: MP5SD6
{
picture="\pkcsd6\pic.paa";
scopeWeapon=0;
scopeMagazine=2;
};
};
-
this can be closed now i figured out what i did wrong with the magazine error, and the modelspecial error was because i hadn't point the "mc saboteur.p3d" to the right place, it should of been "\data3d\mc saboteur.p3d"
No worries ;D
-
Click the "solve" button, its down the bottom..... ;)