Forum Jump :

Author Message


Posts: 1
Rank:


Level: Member

Country: de
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2017-08-23 09:18        
     
Hey guys,
I'm currently working on a replacement-package which adds the possibility to various editor-placed objects to move them around via ACE Carrying/Dragging-Framework. I noticed some dissonants. For example: I have a those portable lights replaced through my config so they are draggable, carryable and loadable. I did the same with all the Sandbags and concrete barrieres but for some reason, it doesn't work with the sandbags and concrete barriers. In the following i show you my config.

        class Lamps_base_F;
	class TRG_PortableLight_single_F: Lamps_base_F
	{
		author="$STR_A3_Bohemia_Interactive";
		mapSize=0.824;
		class SimpleObject
		{
			eden=0;
			animate[]=
			{
				
				{
					"light_1_pitch_rot",
					0
				},
				
				{
					"light_1_jaw_rot",
					0.13
				}
			};
			hide[]=
			{
				"light_1_hide"
			};
			verticalOffset=1.084;
			verticalOffsetWorld=0;
		};
		editorPreview="\A3\EditorPreviews_F\Data\CfgVehicles\Land_PortableLight_single_F.jpg";
		_generalMacro="Land_PortableLight_single_F";
		scope=0;
		scopeCurator=0;
		displayName="$STR_A3_portable_lights_single";
		model="\A3\Structures_F_EPA\Civ\Constructions\PortableLight_single_F.p3d";
		icon="iconObject_5x4";
		editorCategory="EdCat_Things";
		editorSubcategory="EdSubcat_Lamps";
		vehicleClass="Cargo";
		class AnimationSources
		{
			class Light_1_pitch_source
			{
				source="user";
				initPhase=0;
				animPeriod="1/45";
			};
			class Light_1_jaw_source
			{
				source="user";
				initPhase=0.13;
				animPeriod=2;
			};
		};
		class Reflectors
		{
			class Light_1
			{
				color[]={1000,1000,1200};
				ambient[]={10,10,12};
				intensity=5;
				size=1;
				innerAngle=60;
				outerAngle=130;
				coneFadeCoef=6;
				position="Light_1_pos";
				direction="Light_1_dir";
				hitpoint="Light_1_hitpoint";
				selection="Light_1_hide";
				useFlare=1;
				flareSize=0.89999998;
				flareMaxDistance=250;
				class Attenuation
				{
					start=0;
					constant=0;
					linear=2;
					quadratic=0.5;
					hardLimitStart=50;
					hardLimitEnd=70;
				};
			};
		};
	};
	class Land_PortableLight_single_F: TRG_PortableLight_single_F
	{
		scope = 2;
		scopeCurator = 2;
		ace_dragging_canDrag = 1;
		ace_dragging_dragPosition[] = {0,1.2,0};
		ace_dragging_dragDirection = 0;
		ace_dragging_canCarry = 1;
		ace_dragging_carryPosition[] = {0,1.2,0};
		ace_dragging_carryDirection = 0;
		ace_cargo_canLoad = 1;
		ace_cargo_size = 1;
	};
class BagFence_base_F;
	class TRG_BagFence_Corner_F: BagFence_base_F
	{
		author="$STR_A3_Bohemia_Interactive";
		mapSize=1.25;
		class SimpleObject
		{
			eden=0;
			animate[]={};
			hide[]={};
			verticalOffset=0.421;
			verticalOffsetWorld=0;
		};
		editorPreview="\A3\EditorPreviews_F\Data\CfgVehicles\Land_BagFence_Corner_F.jpg";
		_generalMacro="Land_BagFence_Corner_F";
		scope=0;
		scopeCurator=0;
		displayName="$STR_A3_CfgVehicles_Land_BagFence_Corner_F0";
		model="A3\Structures_F\Mil\BagFence\BagFence_Corner_F.p3d";
		icon="iconObject_5x4";
	};
	class Land_BagFence_Corner_F: TRG_BagFence_Corner_F
	{
		scope = 2;
		scopeCurator = 2;
		ace_dragging_canDrag = 1;
		ace_dragging_dragPosition[] = {0,2,0};
		ace_dragging_dragDirection = 45;
		ace_dragging_canCarry = 1;
		ace_dragging_carryPosition[] = {0,2,0};
		ace_dragging_carryDirection = 45;
		ace_cargo_canLoad = 1;
		ace_cargo_size = 1;
	};
As you see I defined the base class, created my own object (TRG-prefix) and added the ace-stuff to the A3-Vanilla Object. I sadly have no idea why it doesn't work with the sandbags... I tried changing the base class "BagFence_base_F" to some other base class e.g. ThingX but that didn't give me the solution I wanted to get...

Do you guys have any idea which config line I gotta change, for example in the base-class so I can interract with the sandbags, HBarriers and CNC-Barricades?

EDIT
For your intel, all the stuff wrote down in the TRG_* is directly from the BIs config.