OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: dth47 on 14 Jun 2004, 16:10:19
-
Ive made a wheely bin addon for a UK based island im making, problem is the mutha just gets wrecked after i ram into it. I want it to fall over when it gets hit like a barrel. Any ideas?
(http://dth47.pwp.blueyonder.co.uk/ofpisland/wheelyinprog2.jpg)
heres the config:
class CfgPatches
{
class wheelybin
{
units[] = {wheelybin};
weapons[] = {};
requiredVersion = 1.3;
};
};
class CfgVehicles
{
class All{};
class Static: All{};
class Building: Static{};
class NonStrategic: Building{};
class House: NonStrategic{};
class wheelybin: House
{
vehicleClass="Objects";
model="\wheelybin\wheelybin";
armor=100;
scope=2;
displayName="wheelybin";
accuracy=1000;
}
}
-
All I can suggest is to have a look at the config for the barrell, it'll either be a variable in there or the base class it uses that gives it that option.
-
try this one
class CfgPatches
{
class wheelybin
{
units[] = {wheelybin};
weapons[] = {};
requiredVersion = 1.3;
};
};
class CfgVehicles
{
class All{};
class Thing: All{};
class BarrelHelper: Thing{};
class BarrelBase: BarrelHelper{};
class wheelybin: BarrelBase
{
vehicleClass="Objects";
model="\wheelybin\wheelybin";
armor=100;
scope=2;
displayName="wheelybin";
accuracy=1000;
}
}
-
Once again you come to my rescue lol.
A BIG thanks. Youll be getting props in my releaese notes :)
I know absolutey nothing about configs really, hard enough just trying to make the models. Thanks again, hope im not being too much of a pain.
EXCEPT i can refuel at the wheelybin LOL
Does a pallet have any physics? or can u disable the refuel option?
-
Ok sussed it called it a pallet :D
New config =
class CfgPatches
{
class wheelybin
{
units[] = {wheelybin};
weapons[] = {};
requiredVersion = 1.3;
};
};
class CfgVehicles
{
class All{};
class Thing: All{};
class Object: Thing{};
class Pallet: Object{};
class wheelybin: Pallet
{
vehicleClass="Objects";
model="\wheelybin\wheelybin";
armor=300;
scope=2;
displayName="wheelybin";
accuracy=1000;
}
}
Thanks for putting me on track fellas.
-
no problem ,just for future stuff ill attach this config, which is a config for every object in the game :o
and to get rid of refueling in the cfg vehicles part you put
transportFuel=0;
-
thanks