OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: andersson on 02 Oct 2003, 01:23:43
-
I made a ammocrate and I cant put magazines in it!!
I can fill it with magazines from the editor (this addmagazinecargo ["m16",10]) but I cant put any ammo to it as a player, only weapons.
So when I put my M16 into the crate all magazines is spread around the crate!
This is the config:
// some basic defines
#define TEast 1
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7
#define true 1
#define false 0
// type scope
#define private 0
#define protected 1
#define public 2
#define WeaponNoSlot 0// dummy weapons
#define WeaponSlotPrimary 1// primary weapons
#define WeaponSlotSecondary 16// secondary weapons
#define WeaponSlotItem 256// items
#define WeaponSlotBinocular 4096// binocular
#define WeaponHardMounted 65536
class CfgPatches
{
class bpcrate
{
units[] = {JON_bpcrate};
weapons[] = };
};
};
class CfgVehicles
{
class All{};
class Static: All {};
class Building: Static {};
class Strategic : Building {};
class ReammoBox: Strategic {};
class JON_bpcrate: ReammoBox
{
scope = 2;
displayName="backpack";
model="\JON_backpack\JON_bpcrate";
transportMaxMagazines=20;
transportMaxWeapons=4;
};
};
Any help?
-
I've run into the same problem. I think crates might have a maximum capacity in the game (maybe not in the editor, but in the game). So if the crate is "full" you cannot add more stuff to it. This same thing happens with vehicles. Once they are full you can't put any more weapons or ammo in them. Also, if the vehicle is almost full, but still has room for, say, your M16. You can put your M16 in the vehicle but the magazines end up on the ground (if your lucky, because sometimes they just dissapear).
-
But my crate is empty.
As you can see there s room for 4 weapons and 20 magazines
transportMaxMagazines=20;
transportMaxWeapons=4;
I can put 4 weapons into it, not 5 or more, but no magazines.
Maybe the magazines take more room than just 1?
hmmm...
-
I played around a little and this is what I know now:
When I take any crate from the game and put a weapon that is an addon into it the ammo dissapear or are scattered around the crate.
The same if I use a Jeep or another vehicle.
Anyone know anything about this?
-
IÂ've got it working now!
I used crate II
So this is my config:
// some basic defines
#define TEast 1
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7
#define true 1
#define false 0
// type scope
#define private 0
#define protected 1
#define public 2
#define WeaponNoSlot 0// dummy weapons
#define WeaponSlotPrimary 1// primary weapons
#define WeaponSlotSecondary 16// secondary weapons
#define WeaponSlotItem 256// items
#define WeaponSlotBinocular 4096// binocular
#define WeaponHardMounted 65536
class CfgPatches
{
class jon_bergen
{
units[] = {JON_bpcrate};
weapons[] = {};
};
};
class CfgVehicles
{
class All{};
class Static: All {};
class Building: Static {};
class Strategic : Building {};
class HeavyReammoBox : Strategic {};
class JON_bpcrate: HeavyReammoBox
{
scope=2;
accuracy=1000;
displayName="backpack";
transportMaxWeapons=4;
transportMaxMagazines=20;
};
};
And the topic are closed ;D