跳转到帖子

happy cavin

Members
  • 帖子数

    230
  • 注册日期

  • 上次访问

最新回复 发布由 happy cavin

  1. I make a desotryer for fun in the dcsw.it has proximity guns.but when it fires,some time the bullets go through the ship.see the attachments pictures.

     

    how to solve this problme?

     

    Thank you in advance.

     

    and the guns codes are here:

     

    ws = GT_t.inc_ws()

    GT.WS[ws] = {}

    set_recursive_metatable(GT.WS[ws], Type730)

    GT.WS[ws].area = "BORT_R"

    GT.WS[ws].center = "CENTER_CIWS_F001"

    GT.WS[ws].drawArgument1 = 21

    GT.WS[ws].drawArgument2 = 22

    GT.WS[ws].angles_mech = {

    {math.rad(30), math.rad(30), math.rad(-1), math.rad(48)}}

    GT.WS[ws].angles = {

    {math.rad(30), math.rad(30), math.rad(-1), math.rad(48)}}

    GT.WS[ws].reference_angle_Y = math.rad(-90)

    GT.WS[ws].LN[1].BR[1].connector_name = "POINT_CIWS_F"

    ws = nil

    Screen_190729_204245.thumb.png.262d78de14033348095ad842765b90c1.png

    Screen_190729_204231.thumb.png.5378827953fbcb1e2c0cdf10da7d74d2.png

  2. Simple:

    local HOOK_DEPLOYED = 0.0
    local HOOK_STATE_Value = get_aircraft_draw_argument_value(25)
    
    if HOOK_STATE_Value = 1.0 Then HOOK_DEPLOYED = 1.0 end
    if HOOK_STATE_Value = 0.0 Then HOOK_DEPLOYED = 0.0 end
    if HOOK_STATE_Value > 0.0 And < 1.0 Then HOOK_DEPLOYED = 0.5 end
    

     

    You can then link the HOOK DEPLOYED Values to test/text/cockpit argument or other readouts (ie 0.0 RETRACTED, 1.0 DEPLOYED, 0.5 IN MOTION, etc etc.

     

    Thank you ,man.

  3. we know some sensor datas like these:

     

    sensor_data

    local aoa = sensor_data:getAngleOfAttack()

    local speed = sensor_data:getSelfVelocity()

    local sas = sensor_data:getSelfAirspeed()

    local tas = sensor_data:getTrueAirSpeed()

    local ias = sensor_data:getIndicatedAirSpeed()

    local mach = sensor_data:getMachNumber()

    local vv = sensor_data:getVerticalVelocity()

    local gforce = sensor_data:getVerticalAcceleration()

    local balt = sensor_data:getBarometricAltitude()

    local ralt = sensor_data:getRadarAltitude()

    local pitch = sensor_data:getStickRollPosition() / 100

    local roll = sensor_data:getStickPitchPosition() / 100

    local rudder = sensor_data:getRudderPosition() / 100

    local throttle = sensor_data:getThrottleLeftPosition()

    local gear = sensor_data:getLandingGearHandlePos()

    local speedbrake = sensor_data:getSpeedBrakePos()

    local rpm = sensor_data:getEngineLeftRPM()

    local flaps = sensor_data:getFlapsPos()

    local cpy_state = sensor_data:getCanopyState()

     

    anyone can help me write a sentence for a tail hook position?

     

    Thanks in advance!

×
×
  • 创建新的...