OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Loup-Garou 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 ?
-
You could do:
this setFace "eva"
in the init field
That might work ok.
Planck
-
I've already tried that. Alas, it doesn't work :-\.
-
If Init Eventhandlers work with men classed vehicles, try some thing like this:
Add the to the config:
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:
_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?
-
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.
-
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?
-
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
-
Hm......ok, have a bash with this config instead.
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
-
It works fine ! Thanks a lot, Planck ;) !