OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: iD_999 on 11 Sep 2003, 11:18:13
-
Hi everyone
I really need help regard with my solider,
currently i have make a solider and i have successfully import it into the game .
The problem with the solider is that when i shot him the bloods appear, but the blood doesn't stain the clothes.
I really dont know why?
Is because of my config.cpp or what???
Can someone please tell me why?? ???
thanks in advance
-
You need to make special textures for the damaged areas.
-
I have the blood textures for the clothes
but still does show the blood stain when i shot him
i think it is due to the config.cpp
can some one please post his/her config.cpp for the soldier.
By the way what does wounds[], selections[], hiddenSelections[] and selectionsInherit = Head do?
Is wounds[] relate to other classes??
Does there any available tutorial or API for the config classes???
i dont know what some of the code does>?? ???
thanks in advance..
-
Hello...
Can anyone help me???
I need the know how to solve it to continue
thanks
-
i suggest de-pboing a old old old model and just LOOKing at the model and seeing how it is done.......... then you will figure out hopefully what it is about with the config as well
-
I manage to get my solider helmet to have the blood texture when i shot him , but the body and the leg still have no blood texture
Is there a specific order to follow for the wounds[]?
???
Is the wounds[] have any relationship with the sections[]?
How to write a sections code?
What order does it follow?
-
This is my Config.cpp
Can someone please tell me what the problem???????????
class CfgPatches
{
class SAF_Soldier
{
units[]= {"SAF_Soldier"};
weapons[]= {};
requiredVersion=1.200000;
};
};
class CfgModels
{
class All{};
class AllVehicles:All{};
class Man: AllVehicles{};
class SAF_Soldier: Man
{
sections[] =
{
"head injury","body injury",
"l arm injury","r arm injury","p arm injury",
"l leg injury","r leg injury","p leg injury",
"hlava",
"krk",
"hrudnik",
"medic",
"lzadek",
"mireni",
"pzadek"
};
sectionsInherit=Head;
};
};
class CfgVehicles
{
class All
{
};
class AllVehicles: All
{
};
class Land: AllVehicles
{
};
class Man: Land
{
};
class Soldier: Man
{
};
class SoldierEB : Soldier
{
};
class SAF_Soldier : SoldierEB
{
displayName=$STR_DN_SAF_SOLDIER;
model="\SAF_soldier\singapore";
vehicleClass="Men";
weapons[]={"M16", "Put","Throw"};
wounds[] ={"\SAF_soldier\w_helma_front.pac","\SAF_soldier\w_helma_front_D.pac","\SAF_soldier\w_helma_side2.pac","\SAF_soldier\w_helma_side2_D.pac","\SAF_soldier\w_helma_vnitrek.pac","\SAF_soldier\w_helma_vnitrek_D.pac",
"\SAF_soldier\w_hrud_p.pac","\SAF_soldier\w_hrud_p_D.pac","\SAF_soldier\w_zadaruce_z.pac","\SAF_soldier\w_zadaruce_z_D.pac",
"\SAF_soldier\w_ruka_bok_l.pac","\SAF_soldier\w_ruka_bok_l_D.pac","\SAF_soldier\w_ruka_bok_p.pac","\SAF_soldier\w_ruka_bok_p_D.pac",
"\SAF_soldier\w_ramena.pac","\SAF_soldier\w_ramena_D.pac","\SAF_soldier\w_tank_ramena.pac","\SAF_soldier\w_tank_ramena_d.pac",
"\SAF_soldier\w_nohy_bok_l.pac","\SAF_soldier\w_nohy_bok_l_D.pac","\SAF_soldier\w_nohy_bok_p.pac","\SAF_soldier\w_nohy_p_D.pac","\SAF_soldier\w_nohy_z.pac","\SAF_soldier\w_nohy_z_D.pac"};
hiddenSelections[]={"medic","pzadek","mireni"};
magazines[]=
{
M16, M16, M16, M16,
HandGrenade, HandGrenade, HandGrenade, HandGrenade, HandGrenade, HandGrenade
};
};
};