05-10-2009, 06:29 AM
MJ,
I've been working on the the same thing but trying to convert either the Taliban pack or the LoBo Terrorists pack to WGL weapons+loadouts - but the Taliban pack is very complicated with vehicles etc. The terrorists pack has nicer sounds.
Under \@wgl5\addons there is wgl_men_config.pbo I unpbo'ed it and in it is a file config.cpp with this line:
then in one of the files of the unit classes for example the USMC units cfgsoldierswusmc.hpp for a particular soldier type there is:
Note in the weapons there is the rucksack (WGL_RucksackAlice) and DefaultManWeapons. So I think you need to add the rucksacks as weapons and also add DefaultManWeapons or just add all those as weapons separately as well (ie Throw,Put,WGL_Put,WGL_Throw,WGLObjCarry).
Please let me know how you go because as I said Im trying to convert the terrorists units and also maybe the Russian afghan units (ie from the 80's) - for the afghan islands....
Also if you use addon units like these are the WGL effects automatically applied ie the AI and the wounding effects?
Martin.
I've been working on the the same thing but trying to convert either the Taliban pack or the LoBo Terrorists pack to WGL weapons+loadouts - but the Taliban pack is very complicated with vehicles etc. The terrorists pack has nicer sounds.
Under \@wgl5\addons there is wgl_men_config.pbo I unpbo'ed it and in it is a file config.cpp with this line:
Code:
#define DefaultManWeapons Throw,Put,WGL_Put,WGL_Throw,WGLObjCarry
then in one of the files of the unit classes for example the USMC units cfgsoldierswusmc.hpp for a particular soldier type there is:
Code:
class WGL_USMC0311D2: WGL_USMC0311A
{
WGL_USMC0311D2_MODEL
WGL_USMC0311D2_WOUNDS
WGL_USMC0311D2_HS
displayName="0311D Grenadier";
camouflage=0.72;
accuracy=4;
cost=605000;
weapons[]={WGL_M16GL, WGL_RucksackAlice, DefaultManWeapons};
magazines[]=
{
WGL_M16Mag, WGL_M16Mag, WGL_M16Mag, WGL_M16Mag,
WGL_M433Grenade, WGL_M433Grenade, WGL_M433Grenade,
WGL_M433Grenade, WGL_M433Grenade, WGL_M433Grenade,
WGL_M16_PDM, WGL_M16_PDM, WGL_GrenadeW_PDM, WGL_GrenadeW_PDM
};
};
Note in the weapons there is the rucksack (WGL_RucksackAlice) and DefaultManWeapons. So I think you need to add the rucksacks as weapons and also add DefaultManWeapons or just add all those as weapons separately as well (ie Throw,Put,WGL_Put,WGL_Throw,WGLObjCarry).
Please let me know how you go because as I said Im trying to convert the terrorists units and also maybe the Russian afghan units (ie from the 80's) - for the afghan islands....
Also if you use addon units like these are the WGL effects automatically applied ie the AI and the wounding effects?
Martin.
Marto