Jump to content
Sign in to follow this  
nullsystems

Reflectors no longer working ?!

Recommended Posts

Hello,

Im getting really frustrated with reflectos in configs.

Basically, ive added a new searchlight with a new model.

This has "main" and "endoflamp" sections.

As you can see, im simply using the "Searchlight" class, but renaming it, changing it to the correct model and new reflector values.

This doesnt even appear in the game, very odd.

Any idea why searchlights are incredibly hard to replicate, or how to get reflectors working now?

class Lamp : SearchLight {
	scope = public;
	side = TWest;
	faction = USMC;
	crew = "USMC_Soldier";
	model = "@Test\Addons\lamp.p3d";
	picture = "\ca\Weapons\data\ico\searchlight_manual_CA.paa";
	icon = "\Ca\weapons\Data\map_ico\icomap_searchlight_manual_CA.paa";
	mapSize = 3;
	nameSound = "light";
	typicalCargo[] = {"USMC_Soldier"};
	displayName = $STR_DN_SEARCHLIGHT;
	gunnerHasFlares = true;



	class Reflectors {
		class main_reflector {
			color[] = {0.8, 0.8, 0.9, 1.0};
			ambient[] = {0.1, 0.1, 0.1, 1.0};
			position = "main";
			direction = "endoflamp";
			hitpoint = "main";
			selection = "main";
			size = 1.0;
			brightness = 5.0;
		};
	};

	class Library {
		libTextDesc = $STR_LIB_SEARCHLIGHT;
	};
};

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  

×