OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: TakanoFukada on 26 Nov 2002, 23:16:11
-
Situation : damageHALF [] / damageFULL [] ...
Question :I saw these lines somewhere but couldn't remember where. eh, exactly where/how to I define this ? I want to customise my tank's death.
-
awwmm, you talking about the armor? If so, just edit the armore of the tanks in the .cpp
armor=400.8;
is for my abrams tank (CATM1A1 Abrams)
-
No i wasn't referring to the armour... I was hoping to learn how to change an object's normal texture to black when the vehicle explodes.... and I thought that the damageHalf & damageFull refer to the extent of damage done to the tank...
Thanks ! Any assistance would be greatly appreciated !
-
here goes an example:
// damage textures
dammagehalf[]=
{
"\data\uh60_kab_sklo2.paa","\data\uh60_kab_sklo2b.paa",
"\CWK_Huey\sidea.pac","\cwk_huey\sideadam.pac"
};
dammagefull[]=
{
"\data\uh60_kab_sklo2.paa","\data\uh60_kab_sklo2c.paa",
"\CWK_Huey\sidea.pac","\cwk_huey\sideadam1.pac"
};
each damage condition (dammagehalf[]) has pairs of textures which are separated by commas.
The first texture is the original undamged one, and the second is the name and path of the replacement texture.
E.g for glass half damage"\data\uh60_kab_sklo2.paa","\data\uh60_kab_sklo2b.paa"
and for glass full damage:
"\data\uh60_kab_sklo2.paa","\data\uh60_kab_sklo2c.paa"
the other pair of damage textures in the example above are for the body damage on my chopper.
I hope this is helpful.