internal static void TweakConfig(TweakConfig config) { rotationSpeed = (float)config.GetPropertyValue("rotationSpeed", rotationSpeed); fallAtSpeedBelow = (float)config.GetPropertyValue("fallAtSpeedBelow", fallAtSpeedBelow); regainFlightAtSpeedAbove = (float)config.GetPropertyValue("regainFlightAtSpeedAbove", regainFlightAtSpeedAbove); maxvel = (float)config.GetPropertyValue("maxVelocity", maxvel); regainDeltaDegrees = (float)config.GetPropertyValue("regainDeltaDegrees", regainDeltaDegrees); gravity = (float)config.GetPropertyValue("gravity", gravity); climbDeltaCoeff = (float)config.GetPropertyValue("climbDeltaCoeff", climbDeltaCoeff); climbAccum = (float)config.GetPropertyValue("climbAccum", climbAccum); diveDeltaCoeff = (float)config.GetPropertyValue("diveDeltaCoeff", diveDeltaCoeff); diveAccum = (float)config.GetPropertyValue("diveAccum", diveAccum); ReloadTimeMs = (float)config.GetPropertyValue("reloadTime", ReloadTimeMs); MuzzleVelocity = (float)config.GetPropertyValue("muzzleVel", MuzzleVelocity); HarmlessTime = (float)config.GetPropertyValue("harmlessTime", HarmlessTime); }
internal void TweakConfig(TweakConfig config) { gamewidth = config.GetPropertyValue("gamewidth", gamewidth); BuildBoxes(); renderCollBoxes = config.GetPropertyValue("renderCollisionBoxes", renderCollBoxes); Plane.TweakConfig(config); }