Hello all.
I am soon setting up a race event for vanilla 42. I am taking vehicles from mods and put them into my map. This is working all fine but there is one thing that i cant figure out.
I took vehicles (cars but also planes) and they work. But for motorbikes like this one (but also others) I have a missing animation(or atleast i think this is a missing animation). I cannot find a file for this anywhere. Should also be in the expansion packs since Secret Weapons has Motorbikes too.
See the picture this is what i mean. He aint holding the steering wheel.
Has anyone any idea that can help me further?. I dont know where to look for this.
Missing animation
- Kuyong_Chuin
- Posts: 80
- Joined: Wed May 05, 2010 2:34 pm
- Location: Middle Tennessee, USA
- Contact:
Re: Missing animation
I have not found the animation file yet ether but I will keep looking for it for you. I did notice something though when adding the scout bike to your map did you add the AI Object, physic and the regular object files to your map? If you look in those files you will see code for where the arms hands and feet go while on the bike for both the driver and passenger. From the looks of the picture that is what is missing and the character is positioned as if it is in a different type of vehicle. Look in the Object.con file of SW of WWII folder for those files I mentioned.
If thy sleepth in a bed of roses, thy will most likely awake with thorns in thy backside if thou doeth not prepareth thy bed beforeth thy lie down.
Re: Missing animation
this isn't a predefined animation. it is a dummy steering wheel. you need to create this so the hands move with the steering.
the "AnimatedBundle" is addtemplated to the LOD. the hands should move with the steering properly after.
you'll have to tweak...
for your vehicle.
Code: Select all
rem *** ForkliftSteeringDummy ***
ObjectTemplate.create AnimatedBundle WheelChairSteeringDummy
rem -------------------------------------
ObjectTemplate.addTemplate WheelChairSteering
rem -------------------------------------
rem ObjectTemplate.addSkeletonIK Bip01_R_Hand 0.24/.5/0 -80/60/50
rem ObjectTemplate.addSkeletonIK Bip01_L_Hand -0.26/.5/0 -80/-60/50
ObjectTemplate.addSkeletonIK Bip01_R_Hand 0.4/.5/0 -80/60/50
ObjectTemplate.addSkeletonIK Bip01_L_Hand -0.4/.5/0 -80/-60/50
rem *** WheelChairSteering ***
ObjectTemplate.create RotationalBundle WheelChairSteering
ObjectTemplate.setNetworkableInfo WheelChairSteeringInfo
rem -------------------------------------
ObjectTemplate.addTemplate lodWheelChairSteering
rem -------------------------------------
ObjectTemplate.setMinRotation 0/0/-60
ObjectTemplate.setMaxRotation 0/0/60
ObjectTemplate.setMaxSpeed 0/0/180
ObjectTemplate.setAcceleration 0/0/-180
ObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.setAutomaticReset 1
rem *** lodWheelChairSteering ***
ObjectTemplate.create LodObject lodWheelChairSteering
rem -------------------------------------
ObjectTemplate.addTemplate WheelChairHighRSteering
ObjectTemplate.addTemplate WheelChairLowSteering
rem -------------------------------------
ObjectTemplate.lodSelector WheelChairSteeringSelector
rem ***WheelChairHighRSteering ***
ObjectTemplate.create SimpleObject WheelChairHighRSteering
rem ObjectTemplate.geometry 1P_Forklift_Str_M1
ObjectTemplate.geometry NULL
rem *** WheelChairLowSteering ***
ObjectTemplate.create SimpleObject WheelChairLowSteering
rem ObjectTemplate.geometry Forklift_Steering_M1
ObjectTemplate.geometry NULL
LodSelectorTemplate.create DistanceSelector WheelChairSteeringSelector
LodSelectorTemplate.addLodDistance 10
you'll have to tweak...
Code: Select all
ObjectTemplate.addSkeletonIK Bip01_R_Hand 0.4/.5/0 -80/60/50
ObjectTemplate.addSkeletonIK Bip01_L_Hand -0.4/.5/0 -80/-60/50
...
ObjectTemplate.setMinRotation 0/0/-60
ObjectTemplate.setMaxRotation 0/0/60
Pray hard, die fast
Re: Missing animation
Thanks for the replies.
Yes i think I have all files. I have alos looked up custom maps made by others that have a motorbike and they dont have this fixed either.
I wonder why it is good in secret weapons for example, but not in a custom map. Is there a file elsewhere that need to be changed?.
This is the code of my objects.con and where I try to change it:
When I add your code nothing changes either. Am I doing something wrong?.
Yes i think I have all files. I have alos looked up custom maps made by others that have a motorbike and they dont have this fixed either.
I wonder why it is good in secret weapons for example, but not in a custom map. Is there a file elsewhere that need to be changed?.
Thanks this is something where I see possibilitys. However when I tweaked these numbers nothing had changed.Coroner47 wrote:you'll have to tweak...
Code: Select all
ObjectTemplate.addSkeletonIK Bip01_R_Hand 0.4/.5/0 -80/60/50
ObjectTemplate.addSkeletonIK Bip01_L_Hand -0.4/.5/0 -80/-60/50
...
ObjectTemplate.setMinRotation 0/0/-60
ObjectTemplate.setMaxRotation 0/0/60
for your vehicle.
This is the code of my objects.con and where I try to change it:
Code: Select all
ObjectTemplate.create PlayerControlObject Harley
ObjectTemplate.NameTagOffset -0.3/-0.2/0
ObjectTemplate.setNetworkableInfo HarleyBodyInfo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.cullRadiusScale 5
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.explosionRadius 1
ObjectTemplate.explosionDamage 1
ObjectTemplate.mass 2500
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.HasArmor 1
ObjectTemplate.Hitpoints 50
ObjectTemplate.maxhitpoints 50
ObjectTemplate.material 45
ObjectTemplate.speedMod 0.5
ObjectTemplate.criticalDamage 10
ObjectTemplate.explosionForceMod 2
ObjectTemplate.hpLostWhileCriticalDamage 2
ObjectTemplate.hpLostWhileUpSideDown 5
ObjectTemplate.hpLostWhileDamageFromWater 5
ObjectTemplate.addArmorEffect 30 e_mbikeDamage 0/1.5/-1
ObjectTemplate.addArmorEffect 10 e_mbikeFire 0/0.5/0
ObjectTemplate.addArmorEffect 0 e_ExplosionTank 0/1.2/0
ObjectTemplate.addArmorEffect -1 WaterWaterExplosion 0/0/0
ObjectTemplate.WaterDamageDelay 15
ObjectTemplate.damageFromWater 1
ObjectTemplate.aiTemplate Harley
rem --------------------------------
ObjectTemplate.addTemplate lodHarley
rem --------------------------------
ObjectTemplate.setSoldierExitLocation -1.5/0/-0.8 0/0/0
ObjectTemplate.GUIIndex 26
ObjectTemplate.setVehicleIcon "Vehicle/icon_harley.tga"
ObjectTemplate.setVehicleIconPos 75/78
ObjectTemplate.setNumberOfWeaponIcons 1
ObjectTemplate.setPrimaryAmmoIcon "Ammo/icon_laut.tga"
ObjectTemplate.setPrimaryAmmoBar ABNone
ObjectTemplate.setCrossHairType CHTNone
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType VTScoutCar
ObjectTemplate.setToolTipType TTScoutCar
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_motorcycle_16x16.tga"
ObjectTemplate.hasRestrictedExit 1
rem *** lodHarley ***
ObjectTemplate.create LodObject lodHarley
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem ------------------------------------
ObjectTemplate.addTemplate HarleyComplex
ObjectTemplate.addTemplate HarleySimple
ObjectTemplate.addTemplate HarleyWreck
rem ------------------------------------
ObjectTemplate.lodselector HarleyLodSelector
rem *** HarleyComplex ***
ObjectTemplate.create Bundle HarleyComplex
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.addTemplate HarleyRotate
ObjectTemplate.addTemplate HarleyEngine
ObjectTemplate.addTemplate HarleyEntry
rem *** HarleyRotate ***
ObjectTemplate.create RotationalBundle HarleyRotate
ObjectTemplate.setNetworkableInfo HarleySteeringInfo
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem ---------------------------------------------
ObjectTemplate.addTemplate HarleyCamera
ObjectTemplate.setPosition 0.1154/1.25/-1.0
ObjectTemplate.addTemplate lodHarleyCockpit
ObjectTemplate.addTemplate HarleySeat
ObjectTemplate.setPosition 0.0184/0.96/-0.204
ObjectTemplate.addTemplate HarleySteeringDummy
ObjectTemplate.setPosition -0.0016/0.7/0.4
ObjectTemplate.setRotation -180.0/-65.0/180.0
ObjectTemplate.addTemplate HarleyHorn
ObjectTemplate.addTemplate Harley_attachRightFoot
ObjectTemplate.setPosition 0.2264/0.35/0.1
ObjectTemplate.setRotation -110.068/-5.98/-69.78
ObjectTemplate.addTemplate Harley_attachLeftFoot
ObjectTemplate.setPosition -0.2036/0.36/0.08
ObjectTemplate.setRotation -80.219/1.859/-84.09
rem ---------------------------------------------
ObjectTemplate.setMinRotation 0/0/-15
ObjectTemplate.setMaxRotation 0/0/15
ObjectTemplate.setMaxSpeed 0/0/10
ObjectTemplate.setAcceleration 0/0/-30
ObjectTemplate.setInputToRoll c_PIYaw
ObjectTemplate.setAutomaticReset 1
rem *** lodHarleyCockpit ***
ObjectTemplate.create LodObject lodHarleyCockpit
rem --------------------------------------------
ObjectTemplate.addTemplate HarleyCockpitExternal
ObjectTemplate.addTemplate HarleyCockpitInternal
rem --------------------------------------------
ObjectTemplate.lodselector HarleyCockpitSelector
rem *** HarleyCockpitExternal ***
ObjectTemplate.create SimpleObject HarleyCockpitExternal
ObjectTemplate.geometry Harley_cycle_M1
ObjectTemplate.hasDynamicShadow 1
rem *** HarleyCockpitInternal ***
ObjectTemplate.create SimpleObject HarleyCockpitInternal
rem *** HarleyCockpitSelector ***
LodSelectorTemplate.create DistCompareSelector HarleyCockpitSelector
LodSelectorTemplate.addLodDistance 3.05
LodSelectorTemplate.addLodComparison 0.5
rem *** HarleyCamera ***
ObjectTemplate.create Camera HarleyCamera
ObjectTemplate.setMinRotation -110/-40/0
ObjectTemplate.setMaxRotation 110/10/0
ObjectTemplate.setPivotPosition 0/0.25/0.3
ObjectTemplate.setMaxSpeed 90/90/0
ObjectTemplate.setAcceleration 900/900/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY
rem *** HarleySeat ***
ObjectTemplate.create SeatObject HarleySeat
ObjectTemplate.seatFlags c_SeatShowFullBodySoldier
ObjectTemplate.seatFlags c_SeatIsOutside
ObjectTemplate.seatAnimationUpperBody Ub_PassengerInHanomag
rem *** HarleyEntry ***
ObjectTemplate.create EntryPoint HarleyEntry
ObjectTemplate.setEntryRadius 3.3
rem *** HarleyFrontWheel ***
ObjectTemplate.create RotationalBundle HarleyFrontWheel
ObjectTemplate.setNetworkableInfo HarleySteeringInfo
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem ----------------------------------------
ObjectTemplate.addTemplate HarleyFrontSpring
rem ----------------------------------------
ObjectTemplate.setMinRotation -30/0/-15
ObjectTemplate.setMaxRotation 30/0/15
ObjectTemplate.setMaxSpeed 200/0/10
ObjectTemplate.setAcceleration 200/0/-30
ObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.setInputToRoll c_PIYaw
ObjectTemplate.setAutomaticReset 1
rem *** HarleyBackWheel ***
ObjectTemplate.create RotationalBundle HarleyBackWheel
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem ---------------------------------------
ObjectTemplate.addTemplate HarleyBackSpring
rem ---------------------------------------
ObjectTemplate.setMinRotation 0/0/-15
ObjectTemplate.setMaxRotation 0/0/15
ObjectTemplate.setMaxSpeed 0/0/10
ObjectTemplate.setAcceleration 0/0/-30
ObjectTemplate.setInputToRoll c_PIYaw
ObjectTemplate.setAutomaticReset 1
rem *** HarleyPowerWheel ***
ObjectTemplate.create RotationalBundle HarleyPowerWheel
ObjectTemplate.setNetworkableInfo HarleySteeringInfo
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem ---------------------------------------------
ObjectTemplate.addTemplate HarleyPowerFrontSpring
rem ---------------------------------------------
ObjectTemplate.setMinRotation -30/0/0
ObjectTemplate.setMaxRotation 30/0/0
ObjectTemplate.setMaxSpeed 200/0/0
ObjectTemplate.setAcceleration 200/0/0
ObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.setAutomaticReset 1
rem *** HarleySteeringDummy ***
ObjectTemplate.create Bundle HarleySteeringDummy
ObjectTemplate.addTemplate Harley_forks_M1
ObjectTemplate.setPosition 0.0/-0.1/0.0
rem *** lodHarleySteering ***
ObjectTemplate.create LodObject lodHarleySteering
rem ------------------------------------------
ObjectTemplate.addTemplate HarleyHighRSteering
ObjectTemplate.setPosition 0.0/-0.7/-0.5
ObjectTemplate.addTemplate HarleyLowSteering
ObjectTemplate.setPosition 0.0/-0.7/-0.5
rem ------------------------------------------
ObjectTemplate.lodselector HarleySteeringSelector
rem *** HarleyHighRSteering ***
ObjectTemplate.create SimpleObject HarleyHighRSteering
ObjectTemplate.geometry Harley_forks_1P_M1
rem *** HarleyLowSteering ***
ObjectTemplate.create SimpleObject HarleyLowSteering
ObjectTemplate.geometry Harley_forks_M1
rem *** HarleySteeringSelector ***
LodSelectorTemplate.create DistanceSelector HarleySteeringSelector
LodSelectorTemplate.addLodDistance 12
rem *** Harley_forks_M1 ***
ObjectTemplate.create RotationalBundle Harley_forks_M1
ObjectTemplate.setNetworkableInfo HarleySteeringInfo
rem ---------------------------------------------
ObjectTemplate.addTemplate lodHarleySteering
ObjectTemplate.setPosition 0.0/0.7/0.5
ObjectTemplate.addTemplate Harley_throttleControl
ObjectTemplate.setPosition 0.4/0.24/0.38
ObjectTemplate.addTemplate Harley_attachLeftHand
ObjectTemplate.setPosition -0.389/0.205/0.39
rem ---------------------------------------------
ObjectTemplate.setHasCollisionPhysics 0
ObjectTemplate.setMinRotation 0/0/-30
ObjectTemplate.setMaxRotation 0/0/30
ObjectTemplate.setMaxSpeed 0/0/200
ObjectTemplate.setAcceleration 0/0/200
ObjectTemplate.setInputToRoll c_PIYaw
ObjectTemplate.setAutomaticReset 1
rem *** Harley_throttleControl ***
ObjectTemplate.create RotationalBundle Harley_throttleControl
rem ---------------------------------------------
ObjectTemplate.addTemplate Harley_attachRightHand
rem ---------------------------------------------
ObjectTemplate.setMinRotation -10/0/0
ObjectTemplate.setMaxRotation 30/0/0
ObjectTemplate.setMaxSpeed 200/0/0
ObjectTemplate.setAcceleration 200/0/0
ObjectTemplate.setInputToYaw c_PIThrottle
ObjectTemplate.setAutomaticReset 1
rem *** Harley_attachRightHand ***
ObjectTemplate.create AnimatedBundle Harley_attachRightHand
ObjectTemplate.addSkeletonIK Bip01_R_Hand 0/0/0 96.633/-37.887/-59.629
rem *** Harley_attachRightFoot ***
ObjectTemplate.create AnimatedBundle Harley_attachRightFoot
ObjectTemplate.addSkeletonIK Bip01_R_Foot 0/0/0 0/0/0
rem *** Harley_attachLeftHand ***
ObjectTemplate.create AnimatedBundle Harley_attachLeftHand
ObjectTemplate.addSkeletonIK Bip01_L_Hand 0/0/0 76.515/40.205/-38.802
rem *** Harley_attachLeftFoot ***
ObjectTemplate.create AnimatedBundle Harley_attachLeftFoot
ObjectTemplate.addSkeletonIK Bip01_L_Foot 0/0/0 0/0/0
rem *** HarleySimple ***
ObjectTemplate.create SimpleObject HarleySimple
ObjectTemplate.geometry Harley_Hull_L1
rem *** HarleyWreck ***
ObjectTemplate.create SimpleObject HarleyWreck
ObjectTemplate.geometry Wreck_Harley_m1
rem *** HarleyLodSelector ***
LodSelectorTemplate.create DistCompareSelector2 HarleyLodSelector
LodSelectorTemplate.hasDestroyedLod 1
LodSelectorTemplate.addLodDistance 300