Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Addons & Mods Depot
»
OFP - Addons & Mods General
(Moderator:
Gnat
) »
Config.cpp check
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Config.cpp check (Read 977 times)
0 Members and 1 Guest are viewing this topic.
BUNTRO
Guest
Config.cpp check
«
on:
23 Mar 2003, 17:57:59 »
Can someone check over my config.cpp file for errors? Thanks.
// some basic defines
#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
#define WeaponNoSlot 0// dummy weapons
#define WeaponSlotPrimary 1// primary weapons
#define WeaponSlotSecondary 16// secondary weapons
#define WeaponSlotItem 256// items
#define WeaponSlotBinocular 4096// binocular
#define WeaponHardMounted 65536
class CfgPatches
{
class BUN_Tomahawk
{
units[] = {};
weapons[] = {BUN_TomahawkLauncher};
requiredVersion = 1.75;
};
};
class CfgAmmo
{
class Default {};
class AT3: Default{};
class Hellfire: AT3{};
class Maverick: Hellfire {};
class BUN_TomahawkCruise: Maverick
{
hit=10000;
indirectHit=7500;
indirectHitRange=40;
minRange=100;
minRangeProbab=0.50000;
midRange=555600;
midRangeProbab=0.95000;
maxRange=1111200;
maxRangeProbab=0.85000;
maxSpeed=245.872;
soundHit[]={"Explosions\timebomb",100.000008,1};
model="\BUN_Tomahawk\BUN_TomahawkCruise.p3d";
irLock=1;
maneuvrability=17.500000;
manualControl=0;
MaxControlRange=100000;
initTime=2.00000;
thrustTime=5.50000;
thrust=123.0000;
simulation="airplane";
};
class BUN_Tomahawk: BUN_TomahawkCruise
{
model="\BUN_Tomahawk\BUN_Tomahawk.p3d";
};
class BUN_TomahawkCruiseMis: BUN_TomahawkCruise {};
};
class CfgWeapons
{
class Default{};
class LAWLauncher: Default{};
class CarlGustavLauncher: LAWLauncher{};
class AT3Launcher: CarlGustavLauncher{};
class HellfireLauncher: AT3Launcher{};
class MaverickLauncher: HellfireLauncher {};
class BUN_TomahawkLauncher: MaverickLauncher
{
ammo=BUN_TomahawkCruiseMis;
displayName="Tomahawk";
displayNameMagazine="BUN_TomahawkCruise";
shortNameMagazine="BUN_TomahawkCruise";
count=2;
reloadTime=5.000;
sound[]={"\BUN_Tomahawk\Sounds\missle_8.wav"};
reloadSound[]={"",0,1};
initSpeed=0;
};
};
class CfgVehicles
{
};
class CfgNonAIVehicles
{
class ProxyWeapon {};
class ProxyBUN_Tomahawk: ProxyWeapon
{
model ="\BUN_Tomahawk\BUN_Tomahawk.p3d";
simulation = "Maverickweapon";
};
};
BUNTRO :beat:
Logged
qwertyuio
Guest
Re:Config.cpp check
«
Reply #1 on:
31 Mar 2003, 22:49:04 »
Your CPP seems fine to me, and by the way thanks for the help with the p3d texture swap utility, i got the file i needed of the net, thanks to you.
You may want other peoples opinions on this, just to double check.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Addons & Mods Depot
»
OFP - Addons & Mods General
(Moderator:
Gnat
) »
Config.cpp check
Top of page