Thanks fpr the TUT.
I have unpack a .pbo file for editing. i opened the .CPP file an wont to edit it. but i think i have made smethink wrong. can someone tell me whether the code really sit or not?:D
#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 CfgModels
{
class Default{};
class Vehicle: Default{};
class Tank: Vehicle{};
class Is_2: Tank{};
};
class CfgPatches
{
class IS_2
{
units[] = {IS_2};
weapons[] = {D25T,ISMG};
requiredVersion = 1.75;
};
};
class CfgAmmo
{
class Default{};
class Shell: Default{};
class BulletSingle:Default{};
class Bullet7_6: BulletSingle {};
class ISammo: Bullet7_6 {};
class Heat: Shell{};
class Heat73: Heat{};
class Heat105: Heat73{};
class Heat120: Heat105{};
class Heat125: Heat120{};
class 122mmShell1: Heat125
{
hit=400;
explosive=true;
indirectHit=200;
indirectHitRange=7;
cost=300;
};
};
class CfgWeapons
{
class Default{};
class MGun:Default{};
class MachineGun7_6:MGun{};
class D25T: Default
{
scopeWeapon=0;
scopeMagazine=2;
displayName="122mm Cannon D-25T";
displayNameMagazine="122mm cannon";
shortNameMagazine="75mm";
initspeed=650;
magazines[]={"D25T_S2"};
reloadTime=10;
sound[]={\Is_2\Gun.wav,db20,1};
ffCount=1;
irLock=true;
airLock=false;
laserLock=false;
};
class D25T_S2: D25T
{
ammo="122mmShell1";
count=40;
displayName="122mm Cannon D-25T";
displayNameMagazine="122mm cannon";
shortNameMagazine="75mm";
sound[]={\Is_2\Gun.wav,db20,1};
irLock=true;
airLock=false;
laserLock=false;
};
class ISMG: MachineGun7_6
{
ammo=ISammo;
displayName="Mgun DT";
displayNameMagazine="Mgun DT";
shortNameMagazine="34";
nameSound="mgun";
count=4000;
reloadTime=0.1;
sound[]={"\Is_2\MG.wav",db0,1};
soundContinuous=0;
};
};
class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Land: AllVehicles {};
class LandVehicle: Land {};
class Tank: LandVehicle {};
class M1Abrams: Tank{};
class IS_2: Tank
{
armor=1000;
armorStructural=8;
class HitTurret {armor=1.0;material=51;name=turet;passThrough=1;};
class HitGun {armor=0.8;material=52;name=gun;passThrough=1;};
outGunnerMayFire = false;
hascommander = true;
simulation=tank;
forcehidegunner = false;
forceHideDriver = false;
soundEngine[]={\Is_2\Engine.wav,db-10,1};
side=0;
scope=2;
nameSound="Tank";
crew=SoldierECrew;
displayName="IS-2 Resistance Captured";
maxSpeed=45;
transportSoldier = 1;
cost=100000;
picture="\Is_2\IconIs2";
model="\Is_2\Is_2";
nightVision=0;
weapons[]={D25T,ISMG};
magazines[]={D25T_S2,ISMG};
commanderAction = ManActBMPcommanderout;
commanderInAction = ManActBMPcommander;
driverAction = ManActBMPGunnerOut;
gunnerAction = ManActT55GunnerOut;
driverInAction = ManActT55Driver;
gunnerInAction = ManActZSUGunner;
class TurretBase
{
gunAxis = "OsaHlavne";
turretAxis = "OsaVeze";
soundServo[]={Vehicles\gun_elevate,db-30,1.0};
gunBeg = "usti hlavne";
gunEnd = "konec hlavne";
minElev=-5; maxElev=+15;
minTurn=-360; maxTurn=+360;
body = "OtocVez";
gun = "OtocHlaven";
};
class HatchDriver
{
selection="poklop_driver";
axis="osa_poklop_driver";
angle=-75;
};
class Turret: TurretBase {}
};
accuracy=0.20;
type=VArmor;
threat[]={0.8, 0.6, 0.4};
};
I hoe that someone can help me.