Need help ... lend me your eyes

Ask questions, discuss ideas, get answers
Post Reply
Coroner47
Posts: 213
Joined: Tue Nov 24, 2009 5:11 am
Location: Canada

Need help ... lend me your eyes

Post by Coroner47 »

I'm about to flip my wig! :evil: :cry: I can't see where im going wrong. I have a new wheel chair vehicle & i can't get the steering right. Its reversed! Left on keyboard makes vehicle go right, tho wheel geometry goes left. I need someone else's eyes ... i know im just over looking something simple.

Objects.con

Code: Select all

ObjectTemplate.create PlayerControlObject WheelChair
ObjectTemplate.NameTagOffset -0.3/-0.2/0
ObjectTemplate.setNetworkableInfo WheelChairBodyInfo
ObjectTemplate.saveInSeparateFile 1
objectTemplate.cullRadiusScale 5
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.explosionRadius 8
ObjectTemplate.explosionDamage 5
ObjectTemplate.damageFromWater 1
ObjectTemplate.drag 1.5
ObjectTemplate.mass 20000
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.hasArmor 1
ObjectTemplate.speedMod 1
rem ObjectTemplate.exitTimer 0.75
ObjectTemplate.hitpoints 80
ObjectTemplate.maxhitpoints 50
ObjectTemplate.material 45
ObjectTemplate.criticalDamage 6
ObjectTemplate.hpLostWhileCriticalDamage 2
ObjectTemplate.explosionForceMod 20
ObjectTemplate.hpLostWhileUpSideDown 5
ObjectTemplate.hpLostWhileDamageFromWater 5
ObjectTemplate.addArmorEffect 30 e_WillyDamage 0/1.7/0
ObjectTemplate.addArmorEffect 6 e_WillyFire 0/0.5/0.8
ObjectTemplate.addArmorEffect 0 e_scrapmetal_Forklift 0/0/0
ObjectTemplate.addArmorEffect 0 e_ExplGas_car 0/1.2/0
ObjectTemplate.addArmorEffect -1 WaterWaterExplosion  0/0/0
ObjectTemplate.aiTemplate WheelChair
rem -------------------------------------
ObjectTemplate.addTemplate lodWheelChair
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation -1.5/0/-0.8 0/0/0
ObjectTemplate.GUIIndex 26
ObjectTemplate.setVehicleIcon "Vehicle/Icon_WheelChair.tga"
ObjectTemplate.setVehicleIconPos 40/69
ObjectTemplate.setPrimaryAmmoBar ABNone
ObjectTemplate.setCrossHairType CHTNone
ObjectTemplate.setVehicleCategory VCSea
ObjectTemplate.setVehicleType  VTScoutCar
ObjectTemplate.setToolTipType  TTScoutCar
rem ObjectTemplate.setMinimapIcon "../bf1942/levels/DC_Al_Khafji_Docks/texture/minimap_icon_common_16x16.tga"
ObjectTemplate.hasRestrictedExit 1

rem *** lodWheelChair ***
ObjectTemplate.create LodObject lodWheelChair
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate WheelChairComplex
ObjectTemplate.addTemplate WheelChairSimple
ObjectTemplate.addTemplate WheelChairWreck
rem -------------------------------------
ObjectTemplate.lodSelector WheelChairLodSelector

rem *** WheelChairComplex ***
ObjectTemplate.create Bundle WheelChairComplex
ObjectTemplate.geometry WheelChair
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
rem ObjectTemplate.addTemplate lodForkliftCockpit
rem ObjectTemplate.setPosition 0/0.6/-0.999
ObjectTemplate.addTemplate WheelChairCamera
ObjectTemplate.setPosition 0/1.2/-0.2
ObjectTemplate.addTemplate WheelChairSeat
ObjectTemplate.setPosition 0/0.8/0
ObjectTemplate.setRotation 0/10/0
ObjectTemplate.addTemplate WheelChairEntry
ObjectTemplate.setPosition 1/0/0
ObjectTemplate.addTemplate WheelChairEntry
ObjectTemplate.setPosition -1/0/0
ObjectTemplate.addTemplate WheelChairPCO2
ObjectTemplate.setPosition 0/0.8/-0.5
ObjectTemplate.addTemplate WheelChairEngine
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.addTemplate WheelChairSteeringDummy
ObjectTemplate.setPosition 0/0.3/0.5
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.addTemplate GurneyBloodBagStick
ObjectTemplate.setPosition 0.25/0.5/-0.25
ObjectTemplate.setRotation 0/180/0
ObjectTemplate.addTemplate GurneyBloodBag
ObjectTemplate.setPosition 0.2/1.9/-0.25
ObjectTemplate.setRotation 0/0/-90
rem -------------------------------------
ObjectTemplate.addTemplate WheelChairHorn

rem *** WheelChairCamera ***
ObjectTemplate.create Camera WheelChairCamera
ObjectTemplate.setMinRotation -120/-40/0
ObjectTemplate.setMaxRotation 120/20/0
ObjectTemplate.setPivotPosition 0/0.25/0.3
ObjectTemplate.setMaxSpeed 90/90/0
ObjectTemplate.setAcceleration 5000/5000/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY

rem *** WheelChairSeat ***
ObjectTemplate.create SeatObject WheelChairSeat
ObjectTemplate.seatFlags c_SeatShowFullBodySoldier
ObjectTemplate.seatFlags c_SeatIsOutside
beginrem
ObjectTemplate.LeftAngleMultiplier -0.4
ObjectTemplate.RightAngleMultiplier 0.0
ObjectTemplate.HeadMaxAngleMultiplier 0.0
ObjectTemplate.UpAngleMultiplier 0.0
ObjectTemplate.DownAngleMultiplier 0.0
endrem

rem *** WheelChairEntry ***
ObjectTemplate.create EntryPoint WheelChairEntry
ObjectTemplate.setEntryRadius 2.3

rem *** WheelChairPCO2 ***
ObjectTemplate.create PlayerControlObject WheelChairPCO2
ObjectTemplate.setNetworkableInfo WheelChairBodyInfo
ObjectTemplate.aiTemplate WheelChairPassenger
rem -------------------------------------
ObjectTemplate.addTemplate WheelChairEntry
ObjectTemplate.addTemplate WheelChairCamera
ObjectTemplate.setPosition 0/0.6/-0.2
ObjectTemplate.addTemplate WheelChairPassengerSeat
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation 1.5/0/0 0/0/0
ObjectTemplate.GUIIndex 53
ObjectTemplate.setVehicleIcon "Vehicle/Icon_WheelChair.tga"
ObjectTemplate.setVehicleIconPos 56/77
ObjectTemplate.setPrimaryAmmoBar ABNone
ObjectTemplate.setCrossHairType CHTNone
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType  VTScoutCar
ObjectTemplate.setToolTipType  TTScoutCar
ObjectTemplate.hasRestrictedExit 1

rem *** WheelChairPassengerSeat ***
ObjectTemplate.create SeatObject WheelChairPassengerSeat
ObjectTemplate.seatFlags c_SeatShowFullBodySoldier
ObjectTemplate.seatFlags c_SeatIsOutside
ObjectTemplate.seatFlags c_SeatShowStandingSoldier
rem ObjectTemplate.seatAnimationUpperBody Ub_PassengerInWilly
rem ObjectTemplate.seatAnimationLowerBody Lb_RunForward

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

rem *** WheelChairSimple ***
ObjectTemplate.create SimpleObject WheelChairSimple
ObjectTemplate.geometry WheelChair

rem *** WheelChairWreck ***
ObjectTemplate.create SimpleObject WheelChairWreck
ObjectTemplate.geometry WheelChair

rem *** WheelChairLodSelector ***
LodSelectorTemplate.create DistCompareSelector2 WheelChairLodSelector
LodSelectorTemplate.hasDestroyedLod 1
LodSelectorTemplate.addLodDistance 135

rem *** WheelChairFrontWheelL ***
ObjectTemplate.create RotationalBundle WheelChairFrontWheelL
ObjectTemplate.setNetworkableInfo WheelChairSteeringInfo
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate WheelChairFrontSpringL
ObjectTemplate.setPosition 0/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation -20/0/0
ObjectTemplate.setMaxRotation 20/0/0
ObjectTemplate.setMaxSpeed 50/0/0
ObjectTemplate.setAcceleration -50/0/0
ObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.setAutomaticReset 1


rem *** WheelChairFrontWheelR ***
ObjectTemplate.create RotationalBundle WheelChairFrontWheelR
ObjectTemplate.setNetworkableInfo WheelChairSteeringInfo
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate WheelChairFrontSpringR
ObjectTemplate.setPosition 0/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation -20/0/0
ObjectTemplate.setMaxRotation 20/0/0
ObjectTemplate.setMaxSpeed 50/0/0
ObjectTemplate.setAcceleration -50/0/0
ObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.setAutomaticReset 1
Physics.con

Code: Select all

rem *** WheelChairEngine ***
ObjectTemplate.create Engine WheelChairEngine
ObjectTemplate.setNetworkableInfo WheelChairEngineInfo
ObjectTemplate.setAttachToListener 1
rem ObjectTemplate.loadSoundScript Sounds/WheelChairEngine.ssc
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate WheelChairFrontWheelL
ObjectTemplate.setPosition -0.33/0.2/0.35
ObjectTemplate.addTemplate WheelChairFrontWheelR
ObjectTemplate.setPosition 0.33/0.2/0.35
ObjectTemplate.addTemplate WheelChairBackSpringL
ObjectTemplate.setPosition -0.35/0.2/-.29
ObjectTemplate.addTemplate WheelChairBackSpringR
ObjectTemplate.setPosition 0.35/0.2/-.29
rem -------------------------------------
ObjectTemplate.setMinRotation 0/0/-5000
ObjectTemplate.setMaxRotation 0/0/5000
ObjectTemplate.setMaxSpeed 0/0/55000
ObjectTemplate.setAcceleration 0/0/55000
ObjectTemplate.setInputToRoll c_PIThrottle
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setEngineType c_ETCar
ObjectTemplate.setTorque 5.5
ObjectTemplate.setDifferential 2
ObjectTemplate.setNumberOfGears 2
ObjectTemplate.setGearUp 0.95
ObjectTemplate.setGearDown 0.4


rem *** WheelChairFrontSpringL ***
ObjectTemplate.create Spring WheelChairFrontSpringL
ObjectTemplate.setNetworkableInfo SpringInfo
ObjectTemplate.geometry WheelChair_WheelFL_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.Grip c_PGFRollGrip
ObjectTemplate.setStrength 30
ObjectTemplate.setDamping 5


rem *** WheelChairFrontSpringR ***
ObjectTemplate.create Spring WheelChairFrontSpringR
ObjectTemplate.setNetworkableInfo SpringInfo
ObjectTemplate.geometry WheelChair_WheelFL_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.Grip c_PGFRollGrip
ObjectTemplate.setStrength 30
ObjectTemplate.setDamping 5


rem *** WheelChairBackSpringL ***
ObjectTemplate.create Spring WheelChairBackSpringL
ObjectTemplate.setNetworkableInfo SpringInfo
ObjectTemplate.geometry WheelChair_WheelRL_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.Grip c_PGFEngineGrip
ObjectTemplate.setStrength 30
ObjectTemplate.setDamping 5


rem *** WheelChairBackSpringR ***
ObjectTemplate.create Spring WheelChairBackSpringR
ObjectTemplate.setNetworkableInfo SpringInfo
ObjectTemplate.geometry WheelChair_WheelRR_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.Grip c_PGFEngineGrip
ObjectTemplate.setStrength 30
ObjectTemplate.setDamping 5
Image
Pray hard, die fast
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Need help ... lend me your eyes

Post by Apache Thunder »

Try reversing the number for the acceleration set on the wheel bundles:

Code: Select all

ObjectTemplate.create RotationalBundle WheelChairFrontWheelR
rem *** Excess code removed. Example only! ***
ObjectTemplate.setAcceleration 50/0/0
(do this with WheelChairFrontWheelL too! Make sure the acceleration values for them are the same!)


Currently it is set to -50. Making that a positive number should reverse the direction it goes. It should make it turn in the direction intended.
ImageImageImage
I have cameras in your head!
Coroner47
Posts: 213
Joined: Tue Nov 24, 2009 5:11 am
Location: Canada

Re: Need help ... lend me your eyes

Post by Coroner47 »

Right on!! It works! I have a fully functioning wheel chair lol! Thanx Apache :D
Image
Pray hard, die fast
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Need help ... lend me your eyes

Post by Apache Thunder »

Glad it worked out! :D
ImageImageImage
I have cameras in your head!
Post Reply