Home   Help Search Login Register  

Author Topic: how to use 02 object in ofp  (Read 1326 times)

0 Members and 1 Guest are viewing this topic.

slyfox

  • Guest
how to use 02 object in ofp
« on: 06 Aug 2004, 17:16:39 »
I just modeled a house and i create the buildling in o2light, but now what do i have to do in order for me to be able to use it in ofp.

Dubieman

  • Guest
Re:how to use 02 object in ofp
« Reply #1 on: 06 Aug 2004, 17:37:57 »
This belongs in addons somewhere...

slyfox

  • Guest
Re:how to use 02 object in ofp
« Reply #2 on: 06 Aug 2004, 17:48:36 »
sorry, im kinda new here, so i didnt know exactly where to post my question.

Dubieman

  • Guest
Re:how to use 02 object in ofp
« Reply #3 on: 06 Aug 2004, 17:50:24 »
That's alright, I did thesame sorta things when I started here... ::) ;D

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:how to use 02 object in ofp
« Reply #4 on: 06 Aug 2004, 17:55:53 »
Slyfox, just click on the "report to moderator" button and ask if the thread can be moved to the right place.   ;)

Welcome to the forum!
Plenty of reviewed ArmA missions for you to play

Offline oyman

  • Members
  • *
  • king of pings
Re:how to use 02 object in ofp
« Reply #5 on: 06 Aug 2004, 18:26:47 »
copy and paste all this code into notepad or something and save it as a .cpp file and change all the model file paths according to your addon
Code: [Select]
// some basic defines
#define TEast 0
#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 SLY_house
   {
      units[] = {SLY_house};
      weapons[] = {};
      requiredVersion = 1.00;
   };
};

class CfgVehicles
{
class All{};
class Static: All{};
class Building: Static{};
class Strategic: Building{};
class SLY_house: Strategic
{
   scope=2;
   vehicleClass="Objects";
   icon="Unknown_object";
   model="\SLY_house\SLY_house";
   displayName="SLY_house";
   accuracy=0.200000;
   typicalCargo[]={};
   destrType="DestructBuilding";
   transportAmmo=0;
   transportRepair=0;
   transportFuel=0;
   mapSize=11;
   cost=0;
   armor=8000;
};
};