Then replace the...The..entire W3d model with the ak47 one
You shouldn't have to do anything to the actual .w3d file. you just need to change the Model line in the INIs and the fire bones;
Show Spoiler
DefaultConditionState
Model = UNI_Ranger
WeaponFireFXBone = PRIMARY 101
WeaponMuzzleFlash = PRIMARY 101
End
Changed;
DefaultConditionState
Model = NKI_Conscript
WeaponFireFXBone = PRIMARY Gun1
WeaponMuzzleFlash = PRIMARY Gun1
End
Realisticly, all you need to do is copy/paste a unit's inis, like the ranger for example, and give it a new name, like changing AmericaInfantryRanger to AmericaInfantryTimmy. then change the weapon stuff if you want.
To make it buildable you would need to put this in commandbutton.ini
Show Spoiler
CommandButton Command_ConstructAmericaInfantryTimmy
Command = UNIT_BUILD
Object = AmericaInfantryTimmy
TextLabel = CONTROLBAR:ConstructAmericaInfantryRanger
ButtonImage = SARanger
ButtonBorderType = BUILD ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:ToolTipUSABuildRanger
End
and add this line to CommandSet AmericaBarracksCommandSet inside of commandset.ini;
9 = Command_ConstructAmericaInfantryTimmy
tada, new unit! lol.
edit; i think to add these to a map, you make a notepad file and name it the same as the ini needed, for example CommandSet.INI. not entirely sure, as i dont do much mapping at the moment.
Conformation/help from those more experienced in mapping would be nice.
Edited by user
13 years ago |
Reason: Not specified