PDA

View Full Version : Overwrite default classes in-game?



SNKMAN
Aug 26 2009, 22:50
Hi all,

is there any way to overwrite default classes in-game?

For example:



class CfgLights {
class ObjectDestructionLight {
color[] = {8.543, 4.124, 2.269};
ambient[] = {0.05, 0.05, 0.05};
brightness = "0.065 * fireIntensity + 0.065";
diffuse[] = {0, 0, 0};
};

class SmallFireLight {
color[] = {8.543, 4.124, 2.269};
ambient[] = {0.05, 0.05, 0.05};
brightness = 0.065;
diffuse[] = {1.0, 1.0, 1.0};
position[] = {0, 0, 0};
};

class ExploLight {
color[] = {20, 19, 17.74};
ambient[] = {4, 3.8, 3.4};
diffuse[] = {0, 0, 0};
brightness = "0.15 * fireIntensity + 0.15";
};

class ExploLightMed {
color[] = {20, 19, 17.74};
diffuse[] = {0, 0, 0};
ambient[] = {4, 3.8, 3.4};
brightness = "0.1 + fireIntensity * 0.1";
};

class GrenadeExploLight {
color[] = {10, 10, 9.37};
diffuse[] = {0, 0, 0};
ambient[] = {1, 1, 0.937};
brightness = "0.05 * fireIntensity + 0.05";
};

class RocketLight {
color[] = {3, 3, 2.7};
ambient[] = {1, 1, 0.9};
diffuse[] = {0, 0, 0};
brightness = "0.07 * fireIntensity + 0.07";
};

class SparksLight {
color[] = {8.543, 4.124, 2.269};
ambient[] = {0.05, 0.05, 0.05};
brightness = 0.0003;
diffuse[] = {0, 0, 0};
position[] = {0, 0, 0};
};
};


It's really annoying to every time shut down A2 edit thouse configs, save, .pbo the file and re-start A2.

.kju [PvPscene]
Aug 27 2009, 07:18
nope

however you might wanna try the particle test mission to tweak

SNKMAN
Aug 29 2009, 08:44
Well looks like i just have to collect some more experiance about config FX scripting.

Thanks for the replay kju.