
zastanawiam sie czy addony nie wstawiane z edytora wogole maja wczytywany konfig, wstaw na mape czolg w programie do robienia mapy i sprawdz czy w grze bedzie w pelni funkcjonalny... pewnie nie, bo jego konfig bedzie pominiety.
dlatego obiekty robione pod katem wstawiania na mapie maja taka szeroka game wpisow w Named properties...
nie mam pojecia czy da sie tez tam zdefiniowac kolor takiej latarni.
jak narazie wyglada to tak ze nie zaleznie od tego jakie wartosci wpiszesz w cpp to latarnia wstawiona w trakcie tworzenia mapy zawsze bedzie swiecic tak samo...
moze wartoby bylo zrobic te latarnie zwyczajnie jak do edytora tylko wartosc odpowiadajaca za wyswietlanie na liscie w edytorze zmienic. a pozniej na poczatku misji skryptem poustawiac na mapie... wszystko zalezy od tego jak bardzo zalezy wm na takim a nie innym rozwiazaniu ktore opisales.
ponizej cpp z tego starego addonu swiatel kolorowych, moze bedzie pomocne.
- Kod: Zaznacz cały
#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
class CfgPatches
{
class RunwayMarkerWhite{units[]={RunwayMarkerWhite};};
class RunwayMarkerBlue{units[]={RunwayMarkerBlue};};
class RunwayMarkerGreen{units[]={RunwayMarkerGreen};};
class RunwayMarkerRed{units[]={RunwayMarkerRed};};
class RunwayMarkerYellow{units[]={RunwayMarkerYellow};};
class SmallRunwayMarkerWhite{units[]={SmallRunwayMarkerWhite};};
class SmallRunwayMarkerBlue{units[]={SmallRunwayMarkerBlue};};
class SmallRunwayMarkerGreen{units[]={SmallRunwayMarkerGreen};};
class SmallRunwayMarkerRed{units[]={SmallRunwayMarkerRed};};
class SmallRunwayMarkerYellow{units[]={SmallRunwayMarkerYellow};};
class LargeRunwayMarkerWhite{units[]={LargeRunwayMarkerWhite};};
class LargeRunwayMarkerYellow{units[]={LargeRunwayMarkerYellow};};
};
class CfgSounds
{
class empty
{
name="empty";
sound[]={"",0.000000,1.000000};
titles[]={};
};
}
class CfgVehicles
{
class All {};
class Static: All {};
class Building: Static {};
class Strategic : Building {};
class Target : Strategic {};
class RunwayMarkerWhite: Target
{
scope=public;
simulation="fire";
sound="empty";
VehicleClass="Objects";
displayName="Runway Marker White";
model="empty";
class smoke {
interval=0;
timetolive=0;
cloudletDuration=10;
cloudletAnimPeriod=0;
cloudletSize=0;
cloudletAlpha=0;
cloudletGrowUp=0;
cloudletFadeIn=0;
cloudletFadeOut=0;
cloudletAccY=0;
cloudletMinYSpeed=0;
cloudletMaxYSpeed=0;
cloudletShape=koulesvetlo;
cl_basic=0;
cloudletColor[]={0,0,0,0};
initT=0;
deltaT=0;
maxT=0;
class table{};
density=0;
size=0;
in=0;
out=0;
initYSpeed=0;
}
class Light
{
Shape="koulesvetlo";
color[] = {1.0, 1.0, 1.0, 1.0};
ambient[] = {0.0, 0.0, 0.0, 0.0};
position = "light";
size = 0.15;
brightness = 0.0;
};
};
class RunwayMarkerBlue: RunwayMarkerWhite
{
displayName="Runway Marker Blue";
class Light
{
Shape="koulesvetlo";
color[] = {0.1, 0.1, 1.0, 1.0};
ambient[] = {0.0, 0.0, 0.0, 0.0};
position = "light";
size = 0.15;
brightness = 0.0;
};
};
class RunwayMarkerGreen: RunwayMarkerWhite
{
displayName="Runway Marker Green";
class Light
{
Shape="koulesvetlo";
color[] = {0.0, 1.0, 0.0, 1.0};
ambient[] = {0.0, 0.0, 0.0, 0.0};
position = "light";
size = 0.15;
brightness = 0.0;
};
};
class RunwayMarkerRed: RunwayMarkerWhite
{
displayName="Runway Marker Red";
class Light
{
Shape="koulesvetlo";
color[] = {1.0, 0.2, 0.2, 1.0};
ambient[] = {0.0, 0.0, 0.0, 0.0};
position = "light";
size = 0.15;
brightness = 0.0;
};
};
class RunwayMarkerYellow: RunwayMarkerWhite
{
displayName="Runway Marker Yellow";
class Light
{
Shape="koulesvetlo";
color[] = {1.0, 1.0, 0.0, 1.0};
ambient[] = {0.0, 0.0, 0.0, 0.0};
position = "light";
size = 0.15;
brightness = 0.0;
};
};
class SmallRunwayMarkerWhite: RunwayMarkerWhite
{
displayName="Small Runway Marker White";
class Light
{
Shape="koulesvetlo";
color[] = {1.0, 1.0, 1.0, 1.0};
ambient[] = {0.0, 0.0, 0.0, 0.0};
position = "light";
size = 0.07;
brightness = 0.0;
};
};
class SmallRunwayMarkerBlue: RunwayMarkerWhite
{
displayName="Small Runway Marker Blue";
class Light
{
Shape="koulesvetlo";
color[] = {0.1, 0.1, 1.0, 1.0};
ambient[] = {0.0, 0.0, 0.0, 0.0};
position = "light";
size = 0.07;
brightness = 0.0;
};
};
class SmallRunwayMarkerGreen: RunwayMarkerWhite
{
displayName="Small Runway Marker Green";
class Light
{
Shape="koulesvetlo";
color[] = {0.0, 1.0, 0.0, 1.0};
ambient[] = {0.0, 0.0, 0.0, 0.0};
position = "light";
size = 0.07;
brightness = 0.0;
};
};
class SmallRunwayMarkerRed: RunwayMarkerWhite
{
displayName="Small Runway Marker Red";
class Light
{
Shape="koulesvetlo";
color[] = {1.0, 0.2, 0.2, 1.0};
ambient[] = {0.0, 0.0, 0.0, 0.0};
position = "light";
size = 0.07;
brightness = 0.0;
};
};
class SmallRunwayMarkerYellow: RunwayMarkerWhite
{
displayName="Small Runway Marker Yellow";
class Light
{
Shape="koulesvetlo";
color[] = {1.0, 1.0, 0.0, 1.0};
ambient[] = {0.0, 0.0, 0.0, 0.0};
position = "light";
size = 0.07;
brightness = 0.0;
};
};
class LargeRunwayMarkerWhite: RunwayMarkerWhite
{
displayName="Large Runway Marker White";
class Light
{
Shape="koulesvetlo";
color[] = {1.0, 1.0, 1.0, 1.0};
ambient[] = {0.0, 0.0, 0.0, 0.0};
position = "light";
size = 0.4;
brightness = 0.0;
};
};
class LargeRunwayMarkerYellow: RunwayMarkerWhite
{
displayName="Large Runway Marker Yellow";
class Light
{
Shape="koulesvetlo";
color[] = {1.0, 1.0, 0.0, 1.0};
ambient[] = {0.0, 0.0, 0.0, 0.0};
position = "light";
size = 0.4;
brightness = 0.0;
};
};
};
