Require( "animob/animob.ts" ) function rgb8Color( r, g, b ) return ( r*65536 + g*256 + b ) end return AnimobAconf({ version = 1, -- All aconf files have a version number. We will be backwards compatable default = "hc/hovercraft.aconf", object = { productName = "Hovercraft", gameKitVehicleControls = { class = "HBCruiser", }, appearance = { modelName = "mhc001hb_lightning.model", modelSettings = { main = { colormap = "hc/thc01hb004_lightning.jpg", }, }, }, }, appKeys = { -- levitation physics variables levitationSpringCompressionConstant = 840.0, levitationSpringCompressionExponent = 0.8, levitationSpringExtensionConstant = 2000.0, levitationSpringExtensionExponent = 0.85, levitationSpringLength = 3.1, levitationDamperConstant = 120.0, -- avatar animation avAnimSpeedMax = 17.0, -- doesn't have to be same as maxVelocity avAnimSpeedInfluence = 0.7, -- if the influences don't sum to 1, their sum will be clamped. Allowed. avAnimPitchDownInfluence = 1.3, -- the effect of pitching down the board on avatar's FB axis. avAnimPitchDownMax = 0.32, -- 1.0 means pitching straight down, 0.0 means horizontal -- drive physics maxVelocity = 17.0, maxAcceleration = 15.0, maxDeceleration = 11.0, lateralStaticFrictionForce = 1500.0, lateralDynamicFrictionForce = 0.125, -- motion forces brakeRotationForce = 320.0, brakeRotationSpeed = 0.0, internalFrictionDamperConstant = 275.0, trickDefs = { AirTurnLeft = { key = {"HbLeftKey","HbForwardKey"}, riderTriggerName = "HcJump", leanInfluence = {5.0, 0.0, 0.0}, forces = { { type = "HbRotate", direction = "HbYAxis", magnitude = -2200, }, }, }, AirTurnRight = { key = {"HbRightKey","HbForwardKey"}, riderTriggerName = "HcJump", leanInfluence = {-5.0, 0.0, 0.0}, forces = { { type = "HbRotate", direction = "HbYAxis", magnitude = 2200, }, }, }, }, tricks = { "NoseGrab", "BacksideGrab", "TailGrab", "FrontsideGrab", "Rocket", "AirTurnLeft", "AirTurnRight", "RocketRoll", }, fxDefs = { dirtKick = { type = "TerrainKickUp", kickUpCone = 80.0, particlePerSecond = 100.0, speed = 0.2, offset = { 0, -.18, -1.5 }, velSource = "rearBall", }, thrustSmokeLeft = { type = "Flame", joint = "Exhaust00", flameAngle = 30.0, particleStartWidth = 0.05, flameHeight = 0.02, flameSpeed = 1.5, particlePerFrame = 2.0, direction = { 0, 0.0, 1.0 }, velSource = "root", velSourceInfluence = 0.8, flameTexture = "fx/t0000fx6_hpxawstblue.png", }, thrustSmokeRight = { type = "Flame", joint = "Exhaust01", flameAngle = 30.0, particleStartWidth = 0.05, flameHeight = 0.02, flameSpeed = 1.5, particlePerFrame = 2.0, velSource = "root", velSourceInfluence = 0.8, direction = { 0, 0.0, 1.0 }, flameTexture = "fx/t0000fx6_hpxawstblue.png", }, nitroSmokeLeft = { type = "SmokeTrail2", joint = "Exhaust00", puffInitialRadius = 0.1, puffRadiusGrowthRate = -0.2, color = rgb8Color( 142, 188, 197 ), density = 1.2, puffLifespan = 0.4, trailRandomSeed = 1.0, direction = { 0, 0.0, 1.0 }, puffTexture = "fx/smokeTrailPuff1.png", streakTexture = "fx/smokeTrailStreak1.png", }, nitroSmokeRight = { type = "SmokeTrail2", joint = "Exhaust01", puffInitialRadius = 0.1, puffRadiusGrowthRate = -0.2, color = rgb8Color( 142, 188, 197 ), density = 1.2, puffLifespan = 0.4, trailRandomSeed = 1.0, direction = { 0, 0.0, 1.0 }, puffTexture = "fx/smokeTrailPuff1.png", streakTexture = "fx/smokeTrailStreak1.png", }, }, }, balls = { root = { joint = "mhc001hb_lightning", }, rearBall = { joint = "rearBall", offset = {0.0, 0.0, 0.0}, }, frontBall = { joint = "frontBall", offset = {0.0, 0.0, 0.0}, }, }, springs = { { ball1 = "root", ball2 = "rearBall", idealLength = 1.7, }, { ball1 = "root", ball2 = "frontBall", idealLength = 1.7, }, { ball1 = "frontBall", ball2 = "rearBall", idealLength = 2.75, }, }, seats = { driver = { joint = "driver", offset = { 0.0, 0.05, 0.0 }, teleblurDuration = 10, animationTriggers = { default = { type = "emotion", emotionName = "em001hc01_rider01", axes = { { axisName = "UiAxis", direction = "FB", prevValueBlend = 0.5 }, { axisName = "UiAxis", direction = "LR", valueScalar = 2.0, prevValueBlend = 0.37 }, }, }, HcJump = { -- Animation while jumping name = "HcJump", type = "emotion", emotionName = "em001hc00_tuck01", }, }, }, }, })