Added additional cargo and dragging for crates (#4129)

* Added Cargo and Dragging for `Land_WoodenBox_F` and `Land_WoodenCrate_01_F`.
This commit is contained in:
Broström.A | Evul 2016-08-13 11:33:41 +02:00 committed by Glowbal
parent f354bab3c2
commit 0dfee34a56
2 changed files with 57 additions and 0 deletions

View File

@ -403,6 +403,36 @@ class CfgVehicles {
};
};
};
class Constructions_base_F;
class Land_WoodenBox_F: Constructions_base_F {
class EventHandlers {
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {};
};
GVAR(space) = 2;
GVAR(hasCargo) = 2;
GVAR(size) = 3;
GVAR(canLoad) = 1;
maximumLoad = 2000;
transportMaxBackpacks = 12;
transportMaxMagazines = 64;
transportMaxWeapons = 12;
};
class Land_WoodenCrate_01_F: ThingX {
class EventHandlers {
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {};
};
GVAR(space) = 3;
GVAR(hasCargo) = 3;
GVAR(size) = 3;
GVAR(canLoad) = 1;
maximumLoad = 2000;
transportMaxBackpacks = 12;
transportMaxMagazines = 64;
transportMaxWeapons = 12;
};
class Cargo_base_F: ThingX {
GVAR(space) = 4;

View File

@ -162,6 +162,33 @@ class CfgVehicles {
GVAR(carryPosition)[] = {0,1,0.300671};
};
// Misc crates
class Constructions_base_F;
class Land_WoodenBox_F: Constructions_base_F {
class EventHandlers {
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {};
};
GVAR(canCarry) = 1;
GVAR(carryPosition[]) = {0,1,1};
GVAR(carryDirection) = 270;
GVAR(canDrag) = 1;
GVAR(dragPosition[]) = {0,1.4,0};
GVAR(dragDirection) = 0;
};
class Land_WoodenCrate_01_F: ThingX {
class EventHandlers {
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {};
};
GVAR(canCarry) = 1;
GVAR(carryPosition[]) = {0,1,1};
GVAR(carryDirection) = 270;
GVAR(canDrag) = 1;
GVAR(dragPosition[]) = {0,1.5,0};
GVAR(dragDirection) = 90;
};
class ACE_RepairItem_Base: ThingX {};
class ACE_Track: ACE_RepairItem_Base {