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: Side changeing  (Read 3753 times)

0 Members and 1 Guest are viewing this topic.

Offline moviemaker100

  • Members
  • *
Side changeing
« on: 05 Jan 2012, 12:02:05 »
I just wanted to change the side of an unit.
Ok. I edited the config.cpp and changed the side entry.
Ok. The unit now was in the editor on the other, wished side.
BUT:
Not ok. The unit didn“t attack the "new" enemies as they normally have done.

So the side change must have any more entries to change, to make all game attacking scripts real work.

So: Has anyone any idea, what else I have to change to get an unit "fully" from east to west ?

Thanx!!

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Side changeing
« Reply #1 on: 05 Jan 2012, 15:12:12 »
Just curious, is this for OFP Elite, the xbox OFP or the PC version?
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline moviemaker100

  • Members
  • *
Re: Side changeing
« Reply #2 on: 06 Jan 2012, 00:29:33 »
PC Version.

*ooops*
I estimate, I have choosen the wrong forum - as it seems.

May I ask you to move it to the right forum..?

Thanx!

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Side changeing
« Reply #3 on: 06 Jan 2012, 09:25:07 »
Moved :)
Assuming that this is a addon related question since it involves config editing..

Sorry that I have no useful hints for your problem to offer.
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Mikero

  • Former Staff
  • ****
  • ook?
    • Linux Step by Step
Re: Side changeing
« Reply #4 on: 28 Jan 2012, 08:51:20 »
there is nothing further in an ofp config.cpp that you need to do other than

side = 0,1,2,3

if the unit is not 'attacking' his experience level setFleeMode may have happened. but, it isn't the config per se

you are also better off deriving a class not altering an existing class, because cfgGroups might affect the outcome.

to derive a class:

class MyNewSoldier: SoldierEB // as an eg
{
   side=3; // make him a civilian
   Displayname="My new civilian";
};
Just say no to bugz