Posted by: WielkiKaszaniarz - Friday, April 7, 2017 2:24:16 PM
Would you like to describe me point by point, how to add "unpack" ability to a unit? I've copied original code from GDI Rig and modified it, and a unit looks right in game (with turn left-right, OBBox, textures), so just adding a unit isn't a problem for me. But what is needed to add "Unpack/Repack"? The files which I've created in 3DSMax:
AUTruck_SKN.w3x (Hierarchical Model), AUTruck_SKL.w3x (Skeleton), AUTruckTRL.w3x (or TRR).w3x (Pure Animation, turn left-right), AUTruckDEP.w3x (Pure Animation of deploying), ABTruck.w3x (Hierarchical Model with Skeleton, version after deployment). My unit doesn't have any slots for cannons or repair drones, to make this easier. Do I need more w3x files? And if yes, which ones should be in ModelConditionState and which ones in AnimationState? Which parts of code should I look closer and which xml files do I need to code it right?
If you can, please help me. I'm single-person team (nobody interested cooperating, and even if somebody's declaring help, he does almost nothing) and I don't want to stop work on my mod (even if many think that it's dead).
I appreciate universal tips, but if they won't help, of course I can upload my code here.
Posted by: CommieDog - Sunday, April 9, 2017 6:30:18 PM
I'm a bit confused here. Have you already gotten the deploy and undeploy abilities to work, and now you're just trying to get the graphics right?
Posted by: WielkiKaszaniarz - Sunday, April 9, 2017 6:40:22 PM
No, in-game I don't have even "Deploy" button
Posted by: CommieDog - Monday, April 10, 2017 2:53:12 AM
Then you should probably fix that before you worry about the graphical code.
If you copied the Rig code for your unit, then you'll need to add Command_UnpackRig to your unit's CommandSet.
Posted by: WielkiKaszaniarz - Tuesday, April 11, 2017 7:48:37 AM
Posted by: CommieDog - Tuesday, April 11, 2017 10:52:51 PM
I see that you reference a NODAmmoVanCommandSet in your new unit, but the CommandSet you posted is for the Rig. What does NODAmmoVanCommandSet look like?
Posted by: WielkiKaszaniarz - Thursday, April 13, 2017 7:41:02 AM