This page is under construction
Archives/bf1942/levels/GC_BonusRace.rfa
Bf1942/Levels/GC_BonusRace/Objects/Vehicles/Air/EWing/Physics.con
rem *** EWingEngine ***
ObjectTemplate.create Engine EWingEngine
ObjectTemplate.setNetworkableInfo EWing_engine_info
ObjectTemplate.loadSoundScript Sounds/EWingEngine.ssc
rem -------------------------------------
ObjectTemplate.setMinRotation -0.3/0/0
ObjectTemplate.setMaxRotation 0.3/0/1000
ObjectTemplate.setMaxSpeed 1000/0/1000
ObjectTemplate.setAcceleration 500/0/10000
ObjectTemplate.setInputToRoll c_PIThrottle
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setEngineType c_ETPlane
ObjectTemplate.setTorque 80
ObjectTemplate.setDifferential 8

rem *** EWingVTOLEngineRack ***
ObjectTemplate.create RotationalBundle EWingVTOLEngineRack
ObjectTemplate.hasMobilePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate EWingVTOLEngine
rem -------------------------------------
ObjectTemplate.setMinRotation -20/-30/0
ObjectTemplate.setMaxRotation 20/30/0
ObjectTemplate.setMaxSpeed 150/50/0
ObjectTemplate.setAcceleration 150/100/0
ObjectTemplate.setInputToPitch c_PIPitch
ObjectTemplate.setInputToYaw c_PIRoll
ObjectTemplate.setAutomaticReset 1

rem *** EWingforwardEngine ***
ObjectTemplate.create Engine EWingforwardEngine
ObjectTemplate.setNetworkableInfo EWing_engine_info
ObjectTemplate.loadSoundScript Sounds/SnowSpeederVEngine.ssc
rem -------------------------------------
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/0/1
ObjectTemplate.setMaxSpeed 0/0/5000
ObjectTemplate.setAcceleration 0/0/5000
ObjectTemplate.setInputToRoll c_PIAltFire
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setEngineType c_ETPlane
ObjectTemplate.setTorque 50000
ObjectTemplate.setDifferential 100

rem *** EWingVTOLEngine ***
ObjectTemplate.create Engine EWingVTOLEngine
ObjectTemplate.setNetworkableInfo EWing_engine_info
ObjectTemplate.loadSoundScript Sounds/EWingVEngine.ssc
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/0/100
ObjectTemplate.setMaxSpeed 0/0/3
ObjectTemplate.setAcceleration 0/0/-10000
ObjectTemplate.setInputToRoll c_PIThrottle
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setEngineType c_ETPlane
ObjectTemplate.setTorque 8
ObjectTemplate.setDifferential 3

rem *** EWingFlaps1 ***
ObjectTemplate.create Wing EWingFlaps1
ObjectTemplate.setNetworkableInfo EWing_wing_info
ObjectTemplate.setMinRotation 0/-2/0
ObjectTemplate.setMaxRotation 0/2/0
ObjectTemplate.setMaxSpeed 0/30/0
ObjectTemplate.setAcceleration 0/120/0
ObjectTemplate.setPitchOffset 0.5
ObjectTemplate.setPositionOffset 1.862/-0.003/-0.15
ObjectTemplate.setFlapLift 4
ObjectTemplate.setRegulateToLift 4.91
ObjectTemplate.setWingToRegulatorRatio 1

rem *** EWingFlaps2 ***
ObjectTemplate.create Wing EWingFlaps2
ObjectTemplate.setNetworkableInfo EWing_wing_info
ObjectTemplate.setMinRotation 0/-2/0
ObjectTemplate.setMaxRotation 0/2/0
ObjectTemplate.setMaxSpeed 0/30/0
ObjectTemplate.setAcceleration 0/120/0
ObjectTemplate.setPitchOffset 0.5
ObjectTemplate.setPositionOffset -1.863/-0.003/-0.15
ObjectTemplate.setFlapLift 4
ObjectTemplate.setRegulateToLift 4.91
ObjectTemplate.setWingToRegulatorRatio 1

rem *** EWingRudderBackVertical ***
ObjectTemplate.create Wing EWingRudderBackVertical
ObjectTemplate.setNetworkableInfo EWing_wing_info
ObjectTemplate.setMinRotation 0/-15/0
ObjectTemplate.setMaxRotation 0/15/0
ObjectTemplate.setMaxSpeed 0/60/0
ObjectTemplate.setAcceleration 0/60/0
ObjectTemplate.setInputToPitch c_PIYaw
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setPositionOffset 0/-0.5/0
ObjectTemplate.setWingLift 1.5
ObjectTemplate.setFlapLift 1.5

rem *** EWingBodyWingVertical ***
ObjectTemplate.create Wing EWingBodyWingVertical
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setPositionOffset 0/0/-0.6
ObjectTemplate.setWingLift 4
ObjectTemplate.setFlapLift 0

rem *** EWingRudderBackLeft ***
ObjectTemplate.create Wing EWingRudderBackLeft
ObjectTemplate.setNetworkableInfo EWing_wing_info
ObjectTemplate.setMinRotation 0/-20/0
ObjectTemplate.setMaxRotation 0/20/0
ObjectTemplate.setMaxSpeed 0/80/0
ObjectTemplate.setAcceleration 0/-80/0
ObjectTemplate.setInputToPitch c_PIPitch
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setPositionOffset 0.5/0/0
ObjectTemplate.rememberExcessInput 1
ObjectTemplate.setWingLift 4
ObjectTemplate.setFlapLift 2

rem *** EWingRudderBackRight ***
ObjectTemplate.create Wing EWingRudderBackRight
ObjectTemplate.setNetworkableInfo EWing_wing_info
ObjectTemplate.setMinRotation 0/-20/0
ObjectTemplate.setMaxRotation 0/20/0
ObjectTemplate.setMaxSpeed 0/80/0
ObjectTemplate.setAcceleration 0/-80/0
ObjectTemplate.setInputToPitch c_PIPitch
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setPositionOffset -0.5/0/0
ObjectTemplate.rememberExcessInput 1
ObjectTemplate.setWingLift 4
ObjectTemplate.setFlapLift 2

rem *** EWingRudderFrontLeft ***
ObjectTemplate.create Wing EWingRudderFrontLeft
ObjectTemplate.setNetworkableInfo EWing_wing_info
ObjectTemplate.setMinRotation 0/-17/0
ObjectTemplate.setMaxRotation 0/17/0
ObjectTemplate.setMaxSpeed 0/120/0
ObjectTemplate.setAcceleration 0/-120/0
ObjectTemplate.setInputToPitch c_PIRoll
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setPitchOffset 0.4
ObjectTemplate.setPositionOffset 0.5/0/0.2
ObjectTemplate.setWingLift 3
ObjectTemplate.setFlapLift 2

rem *** EWingRudderFrontRight ***
ObjectTemplate.create Wing EWingRudderFrontRight
ObjectTemplate.setNetworkableInfo EWing_wing_info
ObjectTemplate.setMinRotation 0/-17/0
ObjectTemplate.setMaxRotation 0/17/0
ObjectTemplate.setMaxSpeed 0/120/0
ObjectTemplate.setAcceleration 0/120/0
ObjectTemplate.setInputToPitch c_PIRoll
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setPitchOffset 0.4
ObjectTemplate.setPositionOffset -0.5/0/0.2
ObjectTemplate.setWingLift 3
ObjectTemplate.setFlapLift 2