ACE3/addons/chemlights/CfgLights.hpp
voiperr fedad7f8f7 Ace_Chemlights (Chemlight Enhancements) (#3921)
* Add ace_chemlights.
Make chemlight intensity and dropoff more realistic.
Add orange, white, IR chemlights.
Add chemlight shields.
Make chemlight impact sounds more realistic.

* Moved impact sound changes to a different branch.

* Used QPATHTOF. Fixed scopes. Used initServer. Reduced lifetime duration.
Checked privates.

* Stringtable: 5 minute.

* Blue lifetime. Removed ref to deprecated function

* Use proper magazine macro. Add new chemlights to Misc box.
2016-08-27 10:19:39 +02:00

93 lines
2.0 KiB
C++

#define BASE_ATTENUATION \
class Attenuation { \
constant = 0; \
linear = 0; \
quadratic = 200; \
hardLimitStart = 1.75; \
hardLimitEnd = 3; \
};
#define HI_ATTENUATION \
class Attenuation { \
constant = 0; \
linear = 0; \
quadratic = 20; \
hardLimitStart = 3; \
hardLimitEnd = 4; \
};
class CfgLights {
class ChemLight_Green {
ambient[] = {0,0,0,0};
brightness = 1;
color[] = {0.1,1,0.1,1};
diffuse[] = {0.1,1,0.1};
drawLight = 0;
intensity = 4000;
position[] = {0,0,0};
BASE_ATTENUATION
};
class ChemLight_Blue: ChemLight_Green {
color[] = {0,0.6,1,1};
diffuse[] = {0,0.6,1};
BASE_ATTENUATION
};
class ChemLight_Red: ChemLight_Green {
color[] = {1,0.1,0.1,1};
diffuse[] = {1,0.1,0.1};
BASE_ATTENUATION
};
class ChemLight_Yellow: ChemLight_Green {
color[] = {1,1,0.1,1};
diffuse[] = {1,1,0.1};
BASE_ATTENUATION
};
class ACE_ChemlightLight_Orange: ChemLight_Green {
color[] = {1,0.64,0,1};
diffuse[] = {1,0.4,0};
};
class ACE_ChemlightLight_White: ChemLight_Green {
color[] = {1,1,1,1};
diffuse[] = {1,1,1};
};
class ACE_ChemlightLight_HiRed: ChemLight_Red {
intensity = 12000;
HI_ATTENUATION
};
class ACE_ChemlightLight_HiYellow: ChemLight_Yellow {
intensity = 12000;
HI_ATTENUATION
};
class ACE_ChemlightLight_HiOrange: ACE_ChemlightLight_Orange {
intensity = 12000;
HI_ATTENUATION
};
class ACE_ChemlightLight_HiWhite: ACE_ChemlightLight_White {
intensity = 12000;
HI_ATTENUATION
};
class ACE_ChemlightLight_IR: ChemLight_Green {
intensity = 0;
};
};