Home   Help Search Login Register  

Author Topic: Addon and women faces  (Read 1955 times)

0 Members and 1 Guest are viewing this topic.

Loup-Garou

  • Guest
Addon and women faces
« on: 10 Apr 2005, 18:59:14 »
Hi all !

I've made a basic addon of women soldiers with this config.cpp file :

class CfgPatches
{
class LG_unites
{
units[] = {"LG_res_rpg","LG_res_PK"};

weapons[] = {};
requiredVersion = 1.96;
requiredAddons[]={};
};
};
class CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Civilian: Man{};
class LG_res_rpg: Civilian
{
vehicleClass="LG units";
displayName="Soldate 1";
model="\O\Char\civilistka02c";
weaponSlots="1 + 16 + 10* 256 + 2* 4096 + 2 + 4* 32+65536";
side=2
weapons[]={"AK47","RPGLauncher","Throw","Put"};
magazines[]={"AK47","AK47","AK47","AK47","RPGLauncher","RPGLauncher","RPGLauncher"};
};
class LG_res_PK: Civilian
{
vehicleClass="LG units";
displayName="Soldate 2";
model="\O\Char\civilistka02b";
weaponSlots="1 + 16 + 10* 256 + 2* 4096 + 2 + 4* 32+65536";
side=2
weapons[]={"PK","Throw","Put"};
magazines[]={"PK","PK","PK","PK","PK"};
};
};

This only problem bears on women faces : indeed, the game pastes a face of a man on these women ??? ! Can anyone help me ?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Addon and women faces
« Reply #1 on: 10 Apr 2005, 20:57:25 »
You could do:

this setFace "eva"

in the init field

That might work ok.


Planck
« Last Edit: 10 Apr 2005, 20:57:50 by Planck »
I know a little about a lot, and a lot about a little.

Loup-Garou

  • Guest
Re:Addon and women faces
« Reply #2 on: 10 Apr 2005, 22:01:17 »
I've already tried that. Alas, it doesn't work :-\.

Offline Pilot

  • Contributing Member
  • **
Re:Addon and women faces
« Reply #3 on: 10 Apr 2005, 22:03:34 »
If Init Eventhandlers work with men classed vehicles, try some thing like this:
Add the to the config:
Code: [Select]
class EventHandlers
{
init = "[_this select 0] exec ""\YourAddonName\Faces.sqs"" ";
};

And then make a .sqs file and name it Faces.sqs
Then put the following code in Faces.sqs and save it:
Quote
_woman = _this select 0

_faces = ["Eva", "Kamila", "Lada", "Lucie", "Marketa", "Nada"]

_i = random 5
_i = _i - _i % 1

_woman setface (_faces select _i)
exit
If Init Eventhandlers don't work with men classes, then ignore my reply.

I hope that helps!

EDIT:
Are the selections on the model correct?
« Last Edit: 10 Apr 2005, 22:04:56 by Student Pilot »

Loup-Garou

  • Guest
Re:Addon and women faces
« Reply #4 on: 10 Apr 2005, 22:49:15 »
EDIT:
Are the selections on the model correct?

Excuse me, but what do you mean ? Are you talking about the face ? The weapons ?

- The man face is pasted on the woman hair  ??? (it's ugly !!)
- AK47 and PK are OK. The RPG launcher is invisible, but it's normal.

Offline Pilot

  • Contributing Member
  • **
Re:Addon and women faces
« Reply #5 on: 10 Apr 2005, 23:12:51 »
I am talking about the selections in the model.  When you open the model in  Oxygen, there should be a box on the right with names in it, are those names correct?

Also, do you have a CfgModels section in the config?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Addon and women faces
« Reply #6 on: 10 Apr 2005, 23:38:27 »
He is using the civilistka02b.p3d and civilistka02c.p3d from O.pbo, I think his addons only exists in config form.

EDIT:  Try adding:

woman=1

to the config for each unit


Planck
« Last Edit: 10 Apr 2005, 23:40:41 by Planck »
I know a little about a lot, and a lot about a little.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Addon and women faces
« Reply #7 on: 10 Apr 2005, 23:48:25 »
Hm......ok, have a bash with this config instead.

Code: [Select]
class CfgPatches
{
class LG_unites
{
units[] = {"LG_res_rpg","LG_res_PK"};

weapons[] = {};
requiredVersion = 1.96;
requiredAddons[]={};
};
};

class CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Civilian: Man{};
class Woman4: Civilian{};
class Woman5: Civilian{};
class LG_res_rpg: Woman5
{
vehicleClass="LG units";
displayName="Soldate 1";
model="\O\Char\civilistka02c";
weaponSlots="1 + 16 + 10* 256 + 2* 4096 + 2 + 4* 32+65536";
side=2
weapons[]={"AK47","RPGLauncher","Throw","Put"};
magazines[]={"AK47","AK47","AK47","AK47","RPGLauncher","RPGLauncher","RPGLauncher"};
};

class LG_res_PK: Woman4
{
vehicleClass="LG units";
displayName="Soldate 2";
model="\O\Char\civilistka02b";
weaponSlots="1 + 16 + 10* 256 + 2* 4096 + 2 + 4* 32+65536";
side=2
weapons[]={"PK","Throw","Put"};
magazines[]={"PK","PK","PK","PK","PK"};
};
};


Planck
I know a little about a lot, and a lot about a little.

Loup-Garou

  • Guest
Re:Addon and women faces
« Reply #8 on: 11 Apr 2005, 19:25:24 »
It works fine ! Thanks a lot, Planck  ;) !