This page is under construction
Archives/bf1942/levels/DC_Urban_Siege.rfa
bf1942/levels/DC_Urban_Siege/objects/Leo2a4/Physics.con



rem *** Leo2a4Engine ***
ObjectTemplate.create Engine Leo2a4Engine
ObjectTemplate.setNetworkableInfo Leo2a4EngineInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript ../../../../../Objects/Vehicles/Land/Engines/Sounds/V-2-SNEngine.ssc
ObjectTemplate.hasMobilePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate Leo2a4TrackR
ObjectTemplate.setPosition 1.3599/0.15/0

ObjectTemplate.addTemplate Leo2a4TrackL
ObjectTemplate.setPosition -1.3599/0.15/0
rem -------------------------------------
ObjectTemplate.setMinRotation -1/0/-1
ObjectTemplate.setMaxRotation 1/0/1
ObjectTemplate.setMaxSpeed 4/0/5
ObjectTemplate.setAcceleration 4/0/5
ObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.setInputToRoll c_PIThrottle
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setEngineType c_ETTank
ObjectTemplate.setTorque 6.5
ObjectTemplate.setDifferential 4.0
rem 0.40: 3.2
ObjectTemplate.setNumberOfGears 2
ObjectTemplate.setGearUp 0.95
ObjectTemplate.setGearDown 0.45
ObjectTemplate.setGearChangeTime 0.05


rem Drivande hjul

rem *** Leo2a4_RDwheel ***
ObjectTemplate.create Spring Leo2a4_RDwheel
ObjectTemplate.geometry Leo2a4_RDwheel_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.Grip c_PGFEngineDummyGrip
rem -------------------------------------
ObjectTemplate.addTemplate e_wdustPanzL
ObjectTemplate.addTemplate e_wdustPanz
rem -------------------------------------
ObjectTemplate.setStrength 10
ObjectTemplate.setDamping 3

rem *** Leo2a4_LDwheel ***
ObjectTemplate.create Spring Leo2a4_LDwheel
ObjectTemplate.geometry Leo2a4_LDwheel_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.Grip c_PGFEngineDummyGrip
rem -------------------------------------
ObjectTemplate.addTemplate e_wdustPanzL
ObjectTemplate.addTemplate e_wdustPanz
rem -------------------------------------
ObjectTemplate.setStrength 10
ObjectTemplate.setDamping 3



rem bakre hjulen

rem *** Leo2a4_RFwheel ***
ObjectTemplate.create Spring Leo2a4_RFwheel
ObjectTemplate.geometry Leo2a4_RFwheel_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.Grip c_PGFEngineDummyGrip
rem -------------------------------------
ObjectTemplate.addTemplate e_wdustPanzL
ObjectTemplate.addTemplate e_wdustPanz
rem -------------------------------------
ObjectTemplate.setStrength 10
ObjectTemplate.setDamping 3

rem *** Leo2a4_LDwheel ***
ObjectTemplate.create Spring Leo2a4_LFwheel
ObjectTemplate.geometry Leo2a4_LFwheel_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.Grip c_PGFEngineDummyGrip
rem -------------------------------------
ObjectTemplate.addTemplate e_wdustPanzL
ObjectTemplate.addTemplate e_wdustPanz
rem -------------------------------------
ObjectTemplate.setStrength 10
ObjectTemplate.setDamping 3




rem *** Leo2a4WheelL3Dummy ***
ObjectTemplate.create Spring Leo2a4WheelL3Dummy
ObjectTemplate.geometry Leo2a4_whe3L_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.Grip c_PGFEngineDummyGrip
rem -------------------------------------
rem ObjectTemplate.addTemplate e_wdustPanzL
rem ObjectTemplate.addTemplate e_wdustPanz
rem -------------------------------------
ObjectTemplate.setStrength 10
ObjectTemplate.setDamping 3

rem *** Leo2a4WheelL3DummyMiddle ***
ObjectTemplate.create Spring Leo2a4WheelL3DummyMiddle
ObjectTemplate.geometry Leo2a4_whe3L_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.Grip c_PGFEngineDummyGrip
rem -------------------------------------
rem ObjectTemplate.addTemplate e_wdustPanzL
rem ObjectTemplate.addTemplate e_wdustPanz
rem -------------------------------------
ObjectTemplate.setStrength 10
ObjectTemplate.setDamping 3


rem *** Leo2a4WheelL3 ***
ObjectTemplate.create Spring Leo2a4WheelL3
ObjectTemplate.setNetworkableInfo SpringInfo
ObjectTemplate.geometry Leo2a4_whe3L_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.Grip c_PGFEngineGrip
rem -------------------------------------
ObjectTemplate.addTemplate e_wdustPanzL
ObjectTemplate.addTemplate e_wdustPanz
rem -------------------------------------
ObjectTemplate.setStrength 10
rem was 14
ObjectTemplate.setDamping 3
rem 8

rem *** Leo2a4WheelR3Dummy ***
ObjectTemplate.create Spring Leo2a4WheelR3Dummy
ObjectTemplate.geometry Leo2a4_whe3R_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.Grip c_PGFEngineDummyGrip
rem -------------------------------------
rem ObjectTemplate.addTemplate e_wdustPanzL
rem ObjectTemplate.addTemplate e_wdustPanz
rem -------------------------------------
ObjectTemplate.setStrength 10
ObjectTemplate.setDamping 3

rem *** Leo2a4WheelR3DummyMiddle ***
ObjectTemplate.create Spring Leo2a4WheelR3DummyMiddle
ObjectTemplate.geometry Leo2a4_whe3R_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.Grip c_PGFEngineDummyGrip
rem -------------------------------------
rem ObjectTemplate.addTemplate e_wdustPanzL
rem ObjectTemplate.addTemplate e_wdustPanz
rem -------------------------------------
ObjectTemplate.setStrength 10
ObjectTemplate.setDamping 3


rem *** Leo2a4WheelR3 ***
ObjectTemplate.create Spring Leo2a4WheelR3
ObjectTemplate.setNetworkableInfo SpringInfo
ObjectTemplate.geometry Leo2a4_whe3R_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.Grip c_PGFEngineGrip
rem -------------------------------------
ObjectTemplate.addTemplate e_wdustPanzL
ObjectTemplate.addTemplate e_wdustPanz
rem -------------------------------------
ObjectTemplate.setStrength 10
rem was 14
ObjectTemplate.setDamping 3
rem was 8