Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Config Questions(Jakerod)  (Read 1312 times)

0 Members and 1 Guest are viewing this topic.

Jakerod

  • Guest
Config Questions(Jakerod)
« on: 10 Jul 2003, 00:29:37 »
#1.) In the config.cpp file how can i change the team of a unit?
#2.) What does each one of these lines do:

class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class Soldier:Man{};
   class SoldierWB:Soldier{};
   class SoldierWG:SoldierWB{};

I am new at config.cpps for units cuz im usually a mission maker and island maker. Thanks for the replies.

Frosty

  • Guest
Re:Config Questions(Jakerod)
« Reply #1 on: 10 Jul 2003, 02:37:39 »
Those lines are defining pre-existing troops, so you can 'build' on them with new units. That is to say, if you have:

class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class Soldier:Man{};
   class SoldierWB:Soldier{};
   class OfficerW:SoldierWB{};

   class bdm_OfficerW_new: OfficerW
   {
      vehicleclass="Bloody Days - US Men";
   };
};

You'll be using all the pre-existing data for the Officer(West) such as name, loadout, health, ect, while only changing the vehicle class. You must use the
class NAMEX:NAMEY{}; if you are going to base a unit on a preexisting one.

Do you understand?

Jakerod

  • Guest
Re:Config Questions(Jakerod)
« Reply #2 on: 10 Jul 2003, 05:13:08 »
Yep thanks!!!