<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">//USCM APC by manticore aka nephilim
#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
#define private 0
#define protected 1
#define public 2
class CfgPatches
{
class M577_A1
{
units[] = {M577_A1};
weapons[] = {};
requiredVersion = 1.75;
};
};
class CfgModels
{
class Default
{
sections[] = {};
sectionsInherit = "";
};
class Land: Default {};
class LandVehicle: Land {};
class Car: LandVehicle {};
class Jeep: Car{};
class JeepMG: Jeep{};
class M577_A1: JeepMG
{
sectionsInherit="Vehicle";
sections[]={"tur1",tur2"};
};
};
class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Land: AllVehicles {};
class LandVehicle: Land {};
class Car: LandVehicle {};
class Jeep: Car{};
class JeepMG: Jeep{};
class M577_A1: JeepMG
{
scope=public;
crew=Civilian2;
driverIsCommander=true;
transportSoldier = 10;
driverCanSee=CanSeeAll;
getInRadius=10;
maxSpeed=150;
hiddenselections[]={"tur2"};
side=TWest;
vehicleClass="USCM - Vehicles";
displayName=M577 A1 APC;
brakeDistance=3;
class Reflectors
{
class Left
{
color[]={0.900000,0.800000,0.600000,1.0000 00};
ambient[]={0.100000,0.100000,0.100000,1.00 0000};
position="L svetlo";
direction="konec L svetla";
hitpoint="L svetlo";
selection="L svetlo";
size=0.500000;
brightness=1.000000;
};
class Right
{
color[]={0.900000,0.800000,0.600000,1.0000 00};
ambient[]={0.100000,0.100000,0.100000,1.00 0000};
position="P svetlo";
direction="konec P svetla";
hitpoint="P svetlo";
selection="P svetlo";
size=0.500000;
brightness=1.000000;
};
};
sensitivity=0.600000;
animated=1;
class Animations
{
class driverdooranim
{
type="rotation";
animPeriod=1;
selection="driverdoor";
axis="driverdoor_axis";
angle0=0;
angle1=-1.92;
};
class maindooranim
{
type="rotation";
animPeriod=1;
selection="maindoor";
axis="maindoor_axis";
angle0=0;
angle1=0.016;
};
class mainturretanim1
{
type="rotation";
animPeriod=5;
selection="tur1";
axis="back_turret_1_axis";
angle0=0;
angle1=rad 90;
};
class maiturretanim2
{
type="rotation";
animPeriod=5;
selection="tur2_anim";
axis="back_turret_2_axis";
angle0=0;
angle1=rad 90;
};
};
class UserActions
{
class open_maindoor
{
displayName="Open Maindoor";
position="pos cargo";
radius=1.000000;
condition="this animationPhase ""maindooranim"" < 0.5";
statement="this animate [""maindooranim"", 1]";
};
class close_maindoor
{
displayName="Close Maindoor";
position="pos cargo";
radius=1.000000;
condition="this animationPhase ""maindooranim"" >= 0.5";
statement="this animate [""maindooranim"", 0]";
};
class open_driverdoor
{
displayName="Open Driverdoor";
position="pos driver";
radius=1.000000;
condition="this animationPhase ""driverdooranim"" < 0.5";
statement="this animate [""driverdooranim"", 1]";
};
class close_driverdoor
{
displayName="Close Driverdoor";
position="pos driver";
radius=1.000000;
condition="this animationPhase ""driverdooranim"" >= 0.5";
statement="this animate [""driverdooranim"", 0]";
};
};
armor=100;
accuracy=0.80;
fuelCapacity=100;
model="\uscm_m577\M577_A1.p3d";
type=VArmor;
cost=100000;
terrainCoef=0.200000;
wheelCircumference=4.513;
turnCoef=8.0;
armorWheels=0.800000;
weapons[]={SportCarHorn};
magazines[]={};
soundEnviron[]={Vehicles\OldRolling_Tr eads1,db-10,0.7};
soundEngine[]={Vehicles\dieseltruckloo p2,db-20,1};
soundCrash[]={Vehicles\crash_small2,db-10,1};
soundGear[]={Vehicles\Gear_Trans1,db-40,1};
soundDammage[]={Objects\alarm_loop1,db-40,1};
attendant = true;
transportAmmo = 1;
transportMaxMagazines = 100;
transportMaxWeapons = 25;
};
};
class All{};
class AllVehicles: All{};
class Land: AllVehicles{};
class Man: Land{};
class Soldier: Man{};
class SoldierWB: Soldier{};
class vag_APCfake: SoldierWB
{
displayName="APC";
nameSound="apc";
model="\vag_apc\apc_fake";
vehicleClass="";
scope=1;
side=TWest;
cost=100000
sensitivity=1.25;
accuracy=2.500000;
armor=5;
armorStructural=2.0;
armorHead=0.7;
armorBody=5.5;
armorHands=0.5;
armorLegs=0.5;
weapons[]={};
magazines[]={};
animated=1;
};
};[/QUOTE]
ive added a cfgmodel to it but when i did that the apc wasnt in the list any more...
i´d be glad if someone coudl fix this
HOME
Reply With Quote

