OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: dth47 on 14 Jun 2004, 16:10:19

Title: Bounce godammit!!!
Post 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;
   }
}
Title: Re:Bounce godammit!!!
Post by: DeLiltMon on 14 Jun 2004, 16:43:17
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.
Title: Re:Bounce godammit!!!
Post by: oyman on 14 Jun 2004, 16:45:06
try this one
Code: [Select]
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;
   }
}
Title: Re:Bounce godammit!!!
Post by: dth47 on 14 Jun 2004, 17:14:53
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?
Title: Re:Bounce godammit!!!
Post by: dth47 on 14 Jun 2004, 17:51:41
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.
Title: Re:Bounce godammit!!!
Post by: oyman on 14 Jun 2004, 18:54:45
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

Code: [Select]
transportFuel=0;
Title: Re:Bounce godammit!!!
Post by: dth47 on 14 Jun 2004, 19:35:14
thanks