bluevein 0 Posted September 28, 2008 OK, I decided to dable in a bit of Mod makeing but have come across a brick wall. I used the standard Civ BI model and just to learn how to use O2 and then start on one of my own but am having trouble with the unit. I can get it ingame apart form they are half in the ground and have no animations? Could someone point out to me where I'm going wrong please. Thanks <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#define private 0 #define protected 1 #define public 2 #define true 1 #define false 0 #define TEast 0 #define TWest 1 #define TGuerrila 2 #define TCivilian 3 #define TSideUnknown 4 #define TEnemy 5 #define TFriendly 6 #define TLogic 7 class CfgPatches { class CAF_CIVS Â { units[] = {"CIV_BASIC"}; requiredVersion = 1.0; Â Â Â }; }; class CfgVehicleClasses { class CAF_CIVS { displayName = "CAF CIVS"; }; }; class CfgVehicles { class Land; // External class reference class LandVehicle : Land { class NewTurret; class ViewOptics; class ViewPilot; }; class Man : Land {}; class Soldier : Man {}; class SoldierGB : Soldier {}; class SoldierWB : Soldier {}; class SoldierEB : Soldier {}; class officerw : Soldierwb {}; class CAF_CIV1 : SoldierGB { vehicleClass = "CIV_dresy"; displayName = "CCIV1"; model = "\CAFCIVS\CIV1"; scope = public; weapons[] = {"Throw","Put"}; Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â magazines[] = {}; }; }; Share this post Link to post Share on other sites
Jackal326 1181 Posted September 29, 2008 You need to define a functioning model.cfg OR a cfgmdoels section in your config, and a cfgskeletons section, something like this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgSkeletons { class Head { isDiscrete = 0; skeletonInherit = ""; skeletonBones[] = { "neck","", "neck1","neck", "head","neck1", "loboci","head", "soboci","head", "poboci","head", "lkoutek","head", "skoutek","head", "pkoutek","head", "vicka","head", "spodni ret","head" }; }; class OFP2_ManSkeleton { isDiscrete = 0; skeletonInherit = "Head"; skeletonBones[] = { "Weapon","", "launcher","", "Camera","", "Spine","", "Spine1","", "Spine2","", "Spine3","", "Pelvis","", //Left upper side "LeftShoulder","", "LeftArm","", "LeftArmRoll","", "LeftForeArm","", "LeftForeArmRoll","", "LeftHand","", "LeftHandRing","", "LeftHandRing1","", "LeftHandRing2","", "LeftHandRing3","", "LeftHandPinky1","", "LeftHandPinky2","", "LeftHandPinky3","", "LeftHandMiddle1","", "LeftHandMiddle2","", "LeftHandMiddle3","", "LeftHandIndex1","", "LeftHandIndex2","", "LeftHandIndex3","", "LeftHandThumb1","", "LeftHandThumb2","", "LeftHandThumb3","", //Right upper side "RightShoulder","", "RightArm","", "RightArmRoll","", "RightForeArm","", "RightForeArmRoll","", "RightHand","", "RightHandRing","", "RightHandRing1","", "RightHandRing2","", "RightHandRing3","", "RightHandPinky1","", "RightHandPinky2","", "RightHandPinky3","", "RightHandMiddle1","", "RightHandMiddle2","", "RightHandMiddle3","", "RightHandIndex1","", "RightHandIndex2","", "RightHandIndex3","", "RightHandThumb1","", "RightHandThumb2","", "RightHandThumb3","", //Left lower side "LeftUpLeg","", "LeftUpLegRoll","", "LeftLeg","", "LeftLegRoll","", "LeftFoot","", "LeftToeBase","", //Right lower side "RightUpLeg","", "RightUpLegRoll","", "RightLeg","", "RightLegRoll","", "RightFoot","", "RightToeBase","" }; Â }; class default; class Flag: Default {}; class FlagCarrier: Default { skeletonInherit = "Default"; skeletonBones[] = { "stozar","", "vlajka","" }; }; class Weapon: Default { isDiscrete = 0; skeletonInherit = "Default"; skeletonBones[]= { "magazine","", "ammo_belt","", "ammo_belt_bottom","" }; }; }; class CfgModels { class Default { sections[] = {}; sectionsInherit=""; }; class flag_vojak : Default { sections[] = {"latka"}; }; class Head: Default { sections[] = { "osobnost", "brejle" }; skeletonName = "Head"; }; class ArmaMan : Default { sections[] = { "osobnost","Head_Injury","Body_Injury","l_leg_injury","l_arm_injury","r_arm_injury","l_leg_injury","clan" }; Â skeletonName = "OFP2_ManSkeleton"; }; class CIV1: ArmaMan {}; // THIS IS YOUR MODEL NAME, MINUS THE .P3D EXTENSION }; Just put the above code inbetween cfgpatches and cfgvehicles. Share this post Link to post Share on other sites
bluevein 0 Posted September 29, 2008 Jackal326, you are a star, worked a treat, thankyou for your time and reply Share this post Link to post Share on other sites