Jump to content
Sign in to follow this  
Furriatomico

Some objects in cpp

Recommended Posts

hello guys, this is my first post, SALUDAIONS!!

I created 2 bunkers i take a used cpp, and i replaced it ,, but i wnt to inlclude some bumker more,, & i dnt know how i do that..

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">RKSL US CAMO Nets FINAL v1.0R converted to arma by BK1276//

#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 Bunker4

{

units[] = {"Bunker4Entradas"};

weapons[] = {};

requiredVersion = 1.00;

};

};

class CfgVehicleClasses

{

class Bunker4

{

displayName = "Objetos CTF";

};

};

class CfgVehicles

{

class All {};

class Static : All {};

class Building : Static {};

class Strategic : Building {};

class CAMP: Strategic {};

class Bunker4: Camp

{

model="\Objetos_CTF\Data\Bunker4.p3d";

scope=2;

attendant=1;

mapSize=20;

vehicleClass="Bunker4";

displayName="Bunker4BluFor";

icon = "\ca\data\data\Unknown_object.paa";

Destrtype= Destructno;

};

class Bunker4_2: Camp

{

model="\Objetos_CTF\Data\Bunker4Op.p3d";

scope=2;

attendant=1;

mapSize=20;

vehicleClass="Bunker4";

displayName="Bunker4OpFor";

icon = "\ca\data\data\Unknown_object.paa";

Destrtype= Destructno;

};

};

};

here´s my cpp, but has a error, i cant compile. help.gif

Share this post


Link to post
Share on other sites

class CfgVehicles

{

class CAMP;

class Bunker4: Camp

...

should be enough

also dont need the definies on the top because you dont use them (scope=2wink_o.gif

Share this post


Link to post
Share on other sites

thx, but it didnt work. banghead.gif

i have this

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">//RKSL US CAMO Nets FINAL v1.0R converted to arma by BK1276//

#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 Bunker4

{

units[] = {"Bunker4Entradas"};

weapons[] = {};

requiredVersion = 1.00;

};

};

class CfgVehicleClasses

{

class Bunker4

{

displayName = "Objetos CTF";

};

};

class CfgVehicles

{

class All {};

class Static : All {};

class Building : Static {};

class Strategic : Building {};

class CAMP: Strategic {};

/* ---------------BunkerBluFor------------------- */

class BunkerBlufor: Camp

{

model="\Objetos_CTF\Data\Bunker4.p3d";

scope=2;

attendant=1;

mapSize=20;

vehicleClass="Bunker4";

displayName="Bunker Blufor";

icon = "\ca\data\data\Unknown_object.paa";

Destrtype= Destructno;

};

};

this work perfectly, and i want to add another bunker called bunker Opfor with different P3d, in the same class CfgVehicleClasses.. how? banghead.gif

Share this post


Link to post
Share on other sites

i answer myself,,i fixed it, in class CfgPatches add in units[] = {" the class names i include in

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches

{

class BunkerBlufor

{

units[] = {"BunkerBlufor","BunkerOpfor"};

weapons[] = {};

requiredVersion = 1.00;

};

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

/* ---------------Bunker BluFor------------------- */

class BunkerBlufor: Camp

{

model="\Objetos_CTF\Data\Bunker4.p3d";

scope=2;

attendant=1;

mapSize=20;

side=1

vehicleClass="Bunker4";

displayName="Bunker Blufor";

icon = "\ca\data\data\Unknown_object.paa";

Destrtype= Destructno;

};

/* ---------------Bunker Opfor------------------- */

class BunkerOpfor: Camp

{

model="\Objetos_CTF\Data\Bunker4OP.p3d";

scope=2;

attendant=1;

mapSize=20;

side=0

vehicleClass="Bunker4";

displayName="Bunker Opfor";

icon = "\ca\data\data\Unknown_object.paa";

Destrtype= Destructno;

};

};

it works correctly

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×