i wannated to make a cpp for a cigar, so i copied it from fire (I found it in Simonpro Config helper program) and changed some things (i didnt configure the smoke yet; that u see in cpp is fire) + add some basic defines. It sould work, but i get these 2 errors:
- (when i want to convert cpp ti bin (in cpp2bin program): "error on constant definion public"
- (if i dont convert cpp in bin, i get an error before game (should) start): on img
and here is the config:
#define TEast 1
#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 2class All{};
class CfgPatches
{
class Cigar
{
units[] = {};
weapons[] = {};
requiredVersion = 1.85;
};
};
class CfgVehicles
{
class Static: All{};
class Building: Static{};
class NonStrategic: Building{};
class Cigar: NonStrategic
{
scope=2;
simulation="fire";
vehicleClass="Objects";
icon="Unknown_object";
model="cigar.p3d";
displayName="CIGAR";
accuracy=0.200000;
typicalCargo[]={};
mapSize=1.200000;
cost=0;
armor=20;
class Smoke
{
interval=0.010000;
cloudletDuration=0.900000;
cloudletAnimPeriod=1.000000;
cloudletSize=0.100000;
cloudletAlpha=0.800000;
cloudletGrowUp=0.400000;
cloudletFadeIn=0.000000;
cloudletFadeOut=5.000000;
cloudletAccY=-0.100000;
cloudletMinYSpeed=0.300000;
cloudletMaxYSpeed=1.500000;
cloudletShape="cl_basic";
cloudletColor[]={1,1,1,0};
initT=1000;
deltaT=-500;
class Table
{
class T1
{
maxT=0;
color[]={0.800000,0.800000,0.800000,1};
};
class T2
{
maxT=900;
color[]={0.300000,0.300000,0.300000,1};
};
class T3
{
maxT=1000;
color[]={1,0.500000,0,0.500000};
};
};
density=0.500000;
size=0.100000;
initYSpeed=1.700000;
timeToLive=100000002004087734270.000000;
in=0.000000;
out=0.000000;
};
class Light
{
color[]={1.000000,0.500000,0.000000,1.000000};
ambient[]={0.300000,0.150000,0.000000,1.000000};
brightness=0.080000;
shape="koulesvetlo";
size=0.300000;
position="dimven"; //<-------point where i want the smoke would come out
};
}; //<---this here is not a problem, i tried with and without that!
};
:-\
PLZ HELP!
Have a nice day and thx in advance!