战争雷霆吧 关注:573,525贴子:33,263,179
  • 10回复贴,共1

有无大佬会调整瞄具的,求助

只看楼主收藏回复

如题,给自动炮车套用了BMP2的战术小队同款BPK1-42瞄具,自己改代码去掉了巨大黑边,自动装表也从调准星改成了准星不动调炮管,但是现在测距仪有自动装表但是不报读数了,研究了一个多点代码看的脑袋疼,求大佬解惑,二楼放代码


IP属地:日本1楼2024-11-16 12:25回复
    crosshairHorVertSize:p2=0, 0
    rangefinderProgressBarColor1:c=0, 255, 64, 100
    rangefinderProgressBarColor2:c=255, 255, 255, 100
    rangefinderTextScale:r=0.6
    rangefinderVerticalOffset:r=15
    rangefinderHorizontalOffset:r=25
    fontSizeMult:r=0.929
    lineSizeMult:r=1.6
    drawCentralLineVert:b=yes
    drawCentralLineHorz:b=yes
    //crosshairDistHorSizeMain:p2=0.03, 0.02
    //crosshairDistHorSizeAdditional:p2=0.005, 0.003
    crosshairDistHorSizeMain:p2=0.0, 0.0
    crosshairDistHorSizeAdditional:p2=0.0, 0.0
    distanceCorrectionPos:p2=-0.25, 0.012
    drawDistanceCorrection:b=yes
    thousandth:t = ussr
    applyCorrectionToGun:b=yes
    rangefinderUseThousandth:b=yes
    crosshair_distances{
    distance { distance:p3=200,0,0; textPos:p2=0,0; }
    distance { distance:p3=400,4,0; textPos:p2=0,0; }
    distance { distance:p3=600,0,0; textPos:p2=0,0; }
    distance { distance:p3=800,8,0; textPos:p2=0,0; }
    distance { distance:p3=1000,0,0; textPos:p2=0,0; }
    distance { distance:p3=1200,12,0; textPos:p2=0,0; }
    distance { distance:p3=1400,0,0; textPos:p2=0,0; }
    distance { distance:p3=1600,16,0; textPos:p2=0,0; }
    distance { distance:p3=1800,0,0; textPos:p2=0,0; }
    distance { distance:p3=2000,20,0; textPos:p2=0,0; }
    distance { distance:p3=2200,0,0; textPos:p2=0,0; }
    distance { distance:p3=2400,24,0; textPos:p2=0,0; }
    distance { distance:p3=2600,0,0; textPos:p2=0,0; }
    distance { distance:p3=2800,28,0; textPos:p2=0,0; }
    }
    crosshair_hor_ranges{
    range:p2=2.2, 3
    }
    ballistics{
    bullet{
    bulletType:t="ap_t"
    speed:r=970.0
    drawAdditionalLines:b=no
    distanceCorrectionPos:p2=-0.04, 0.1
    drawDistanceCorrection:b=no
    distancePos:p2=0.346, 0
    drawUpward:b=yes
    textPos:p2=0.0, 0.0
    textShift:r=0.0
    textAlign:i=2
    crosshairDistHorSizeMain:p2=0.00, 0.015
    crosshairDistHorSizeAdditional:p2=0.00, 0.0
    move:b=yes
    crosshair_distances{
    distance{
    textPos:p2=0.010, 0.0
    distance:p3=200.0, 0.0, -0.001
    }
    distance{
    textPos:p2=0.025, 0.0
    distance:p3=400.0, 4.0, -0.015
    }
    distance{
    textPos:p2=-0.03, 0.0
    distance:p3=600.0, 0.0, -0.001
    }
    distance{
    textPos:p2=0.035, 0.0
    distance:p3=800.0, 8.0, -0.025
    }
    distance{
    textPos:p2=-0.045, 0.0
    distance:p3=1000.0, 0.0, -0.001
    }
    distance{
    textPos:p2=0.025, 0.0
    distance:p3=1200.0, 12.0, -0.015
    }
    distance{
    textPos:p2=-0.035, 0.0
    distance:p3=1400.0, 0.0, -0.001
    }
    distance{
    textPos:p2=0.035, 0.0
    distance:p3=1600.0, 16.0, -0.025
    }
    distance{
    textPos:p2=0.025, 0.0
    distance:p3=1800.0, 0, -0.001
    }
    distance{
    textPos:p2=0.025, 0.0
    distance:p3=2000.0, 20.0, -0.015
    }
    }
    }
    bullet{
    bulletType:t="ap_t"
    speed:r=970.0
    drawAdditionalLines:b=no
    distanceCorrectionPos:p2=-0.04, 0.1
    drawDistanceCorrection:b=no
    distancePos:p2=-0.346, 0.0025
    drawUpward:b=yes
    textPos:p2=0.0, 0.0
    textShift:r=0.0
    textAlign:i=2
    crosshairDistHorSizeMain:p2=0.00, 0
    crosshairDistHorSizeAdditional:p2=0.00, 0.0
    move:b=yes
    crosshair_distances{
    distance{
    textPos:p2=-0.04, 0.0
    }
    }
    }
    bullet{
    bulletType:t="he_frag_i"
    speed:r=960.0
    drawAdditionalLines:b=no
    distanceCorrectionPos:p2=-0.04, 0.1
    drawDistanceCorrection:b=no
    distancePos:p2=-0.346, 0
    drawUpward:b=yes
    textPos:p2=0.0, 0.0
    textShift:r=0.0
    textAlign:i=2
    crosshairDistHorSizeMain:p2=0.00, -0.015
    crosshairDistHorSizeAdditional:p2=0.00, 0.0
    move:b=yes
    crosshair_distances{


    IP属地:日本2楼2024-11-16 12:26
    回复
      distance{
      textPos:p2=-0.04, 0.0
      distance:p3=200.0, 2.0, 0.025
      }
      distance{
      textPos:p2=-0.021, 0.0
      distance:p3=400.0, 0.0, 0.0
      }
      distance{
      textPos:p2=-0.04, 0.0
      distance:p3=600.0, 6.0, 0.025
      }
      distance{
      textPos:p2=-0.021, 0.0
      distance:p3=800.0, 0.0, 0.0
      }
      distance{
      textPos:p2=-0.05, 0.0
      distance:p3=1000.0, 10.0, 0.025
      }
      distance{
      textPos:p2=-0.021, 0.0
      distance:p3=1200.0, 0.0, 0.0
      }
      distance{
      textPos:p2=-0.05, 0.0
      distance:p3=1400.0, 14.0, 0.025
      }
      distance{
      textPos:p2=-0.021, 0.0
      distance:p3=1600.0, 0.0, 0.0
      }
      distance{
      textPos:p2=-0.05, 0.0
      distance:p3=1800.0, 18.0, 0.025
      }
      distance{
      textPos:p2=-0.021, 0.0
      distance:p3=2000.0, 0.0, 0.0
      }
      distance{
      textPos:p2=-0.05, 0.0
      distance:p3=2200.0, 22.0, 0.025
      }
      distance{
      textPos:p2=-0.021, 0.0
      distance:p3=2400.0, 0.0, 0.0
      }
      distance{
      textPos:p2=-0.05, 0.0
      distance:p3=2600.0, 26.0, 0.025
      }
      distance{
      textPos:p2=-0.021, 0.0
      distance:p3=2800.0, 0.0, 0.0
      }
      distance{
      textPos:p2=-0.05, 0.0
      distance:p3=3000.0, 30.0, 0.025
      }
      distance{
      textPos:p2=-0.021, 0.0
      distance:p3=3200.0, 0.0, 0.0
      }
      distance{
      textPos:p2=-0.05, 0.0
      distance:p3=3400.0, 34.0, 0.025
      }
      distance{
      textPos:p2=-0.05, 0.0
      distance:p3=3600.0, 26.0, 0.025
      }
      distance{
      textPos:p2=-0.021, 0.0
      distance:p3=3800.0, 0.0, 0.0
      }
      distance{
      textPos:p2=-0.05, 0.0
      distance:p3=4000.0, 30.0, 0.025
      }
      }
      }
      bullet{
      triggerGroup:t="coaxial"
      bulletType:t="ap_i_ball"
      speed:r=815.0
      drawAdditionalLines:b=no
      distanceCorrectionPos:p2=-0.04, 0.1
      drawDistanceCorrection:b=no
      distancePos:p2=-0.38, 0
      drawUpward:b=yes
      textPos:p2=0, 0.0
      textShift:r=0.0
      textAlign:i=2
      crosshairDistHorSizeMain:p2=0.010, 0.025
      crosshairDistHorSizeAdditional:p2=0.00, -0.0
      move:b=yes
      crosshair_distances{
      distance{
      textPos:p2=0.035, 0.0
      distance:p3=200.0, 2.0, -0.015
      }
      distance{


      IP属地:日本3楼2024-11-16 12:27
      回复
        textPos:p2=0.035, 0.0
        distance:p3=400.0, 4.0, -0.015
        }
        distance{
        textPos:p2=0.035, 0.0
        distance:p3=600.0, 6.0, -0.015
        }
        distance{
        textPos:p2=0.035, 0.0
        distance:p3=800.0, 8.0, -0.015
        }
        distance{
        textPos:p2=0.035, 0.0
        distance:p3=1000.0, 10.0, -0.015
        }
        distance{
        textPos:p2=0.035, 0.0
        distance:p3=1200.0, 12.0, -0.015
        }
        distance{
        textPos:p2=0.035, 0.0
        distance:p3=1400.0, 14.0, -0.015
        }
        distance{
        textPos:p2=0.035, 0.0
        distance:p3=1600.0, 16.0, -0.015
        }
        }
        }
        }
        crosshair_hor_ranges{
        }
        drawTexts{
        text{
        text:t="O"
        align:i=0
        pos:p2=0.333, 0.025
        size:r=1
        move:b=no
        highlight:b=yes
        }
        text{
        text:t="ПКТ"
        align:i=0
        pos:p2=0.393, 0.025
        size:r=1
        move:b=no
        highlight:b=yes
        }
        text{
        text:t="БР"
        align:i=0
        pos:p2=-0.333, 0.025
        size:r=1
        move:b=no
        highlight:b=yes
        }
        //stadiametric rangefinder numbers
        text{text:t="2.5"; align:i=0; pos:p2=0.249, 0.16; size:r=0.7; move:b = no; highlight:b=yes; }
        text{text:t="5"; align:i=0; pos:p2=0.019, 0.02; size:r=0.7; move:b=no; highlight:b=yes; }
        text{text:t="6"; align:i=0; pos:p2=0.254, 0.094; size:r=0.7; move:b = no; highlight:b=yes; }
        text{text:t="8"; align:i=0; pos:p2=0.286, 0.103; size:r=0.7; move:b = no; highlight:b=yes; }
        text{text:t="10"; align:i=0; pos:p2=0.318, 0.108; size:r=0.7; move:b = no; highlight:b=yes; }
        text{text:t="12"; align:i=0; pos:p2=0.351, 0.111; size:r=0.7; move:b = no; highlight:b=yes; }
        text{text:t="14"; align:i=0; pos:p2=0.383, 0.114; size:r=0.7; move:b = no; highlight:b=yes; }
        text{text:t="16"; align:i=0; pos:p2=0.4155, 0.117; size:r=0.7; move:b = no; highlight:b=yes; }
        text{text:t="18"; align:i=0; pos:p2=0.448, 0.119; size:r=0.7; move:b = no; highlight:b=yes; }
        text{text:t="20"; align:i=0; pos:p2=0.481, 0.121; size:r=0.7; move:b = no; highlight:b=yes; }
        text{text:t="7"; align:i=0; pos:p2=0.019, 0.038; size:r=0.7; move:b=no; highlight:b=yes; }
        text{text:t="10"; align:i=0; pos:p2=0.022, 0.057; size:r=0.7; move:b=no; highlight:b=yes; }
        text{text:t="13"; align:i=0; pos:p2=0.022, 0.08; size:r=0.7; move:b=no; highlight:b=yes; }
        text{text:t="16"; align:i=0; pos:p2=0.022, 0.102; size:r=0.7; move:b=no; highlight:b=yes; }
        }
        drawLines{
        //Chevron
        line { line:p4 = 0, 0, -1, 3; thousandth:b = true; move:b = no; }
        line { line:p4 = 0, 0, 1, 3; thousandth:b = true; move:b = no; }
        //top vertical lines
        line { line:p4 = -9, 0, -9, 3; thousandth:b = true; move:b = no; }
        line { line:p4 = -4.5, 0, -4.5, 3; thousandth:b = true; move:b = no; }
        line { line:p4 = 4.5, 0, 4.5, 3; thousandth:b = true; move:b = no; }
        line { line:p4 = 9, 0, 9, 3; thousandth:b = true; move:b = no; }
        //range indicator lines
        //line { line:p4 = 44, 0, 46, 0; thousandth:b = true; move:b = no;}
        //line { line:p4 = -44, 0, -46, 0; thousandth:b = true; move:b = no; }
        line { move:b = false; thousandth:b = true; line:p4 = -1.15, 4.10, -1.45, 4.76; }
        line { move:b = false; thousandth:b = true; line:p4 = -1.15, 4.10, -0.81, 4.76; }
        line { move:b = false; thousandth:b = true; line:p4 = -1.15, 6.30, -1.45, 6.96; }
        line { move:b = false; thousandth:b = true; line:p4 = -1.15, 6.30, -0.81, 6.96; }
        line { move:b = false; thousandth:b = true; line:p4 = -1.15, 8.80, -1.45, 9.46; }
        line { move:b = false; thousandth:b = true; line:p4 = -1.15, 8.80, -0.81, 9.46; }
        line { move:b = false; thousandth:b = true; line:p4 = -1.15, 11.30, -1.45, 11.96; }
        line { move:b = false; thousandth:b = true; line:p4 = -1.15, 11.30, -0.81, 11.96; }
        //Stadiametric rangefinder
        line { line:p4= 61, 18, 30, 18; move:b=no; thousandth:b = true;}
        //6
        line {line:p4= 33, 13.8, 30, 13.8.; move:b=no; thousandth:b = true;}
        line {line:p4= 31.5, 13.8, 31.5, 12.8; move:b=no; thousandth:b = true;}
        //8
        line {line:p4= 37, 14.9, 34, 14.9; move:b=no; thousandth:b = true;}
        line {line:p4= 35.5, 14.9, 35.5, 13.9; move:b=no; thousandth:b = true;}
        //10
        line {line:p4= 41, 15.45, 38, 15.45; move:b=no; thousandth:b = true;}
        line {line:p4= 39.5, 15.45, 39.5, 14.45; move:b=no; thousandth:b = true;}
        //12
        line {line:p4= 45, 15.9, 42, 15.9; move:b=no; thousandth:b = true;}
        line {line:p4= 43.5, 15.9, 43.5, 14.9; move:b=no; thousandth:b = true;}
        //14
        line {line:p4= 49, 16.2, 46, 16.2; move:b=no; thousandth:b = true;}
        line {line:p4= 47.5, 16.2, 47.5, 15.2; move:b=no; thousandth:b = true;}
        //16
        line {line:p4= 53, 16.5, 50, 16.5; move:b=no; thousandth:b = true;}
        line {line:p4= 51.5, 16.5, 51.5, 15.5; move:b=no; thousandth:b = true;}
        //18
        line {line:p4= 57, 16.8, 54, 16.8; move:b=no; thousandth:b = true;}
        line {line:p4= 55.5, 16.8, 55.5, 15.8; move:b=no; thousandth:b = true;}
        //20
        line {line:p4= 61, 17, 58, 17; move:b=yes; thousandth:b = true;}
        line {line:p4= 59.5, 17, 59.5, 16; move:b=no; thousandth:b = true;}
        }
        drawCircles {
        circle{ segment:p2 = 0.0, 360.0; pos:p2 = 0.0, 0.0; diameter:r = 0.40; size:r = 3; move:b = no; }
        }
        drawQuads{
        // right range indicator
        quad{
        bl:p2 = 44, -0.1; // Top left bottom
        tl:p2 = 44, 0.1; // Top left top
        br:p2 = 46, -0.1; // Top right bottom
        tr:p2 = 46, 0.1; // Top right top
        thousandth:b = true;
        }
        // left range indicator
        quad{
        bl:p2 = -44, -0.1; // Top left bottom
        tl:p2 = -44, 0.1; // Top left top
        br:p2 = -46, -0.1; // Top right bottom
        tr:p2 = -46, 0.1; // Top right top
        thousandth:b = true;
        }
        }
        matchExpClass {
        exp_tank :b=yes
        exp_heavy_tank :b=yes
        exp_tank_destroyer :b=yes
        exp_SPAA :b=yes
        }


        IP属地:日本4楼2024-11-16 12:27
        回复
          还能去黑边?


          IP属地:广东来自Android客户端5楼2024-11-16 12:28
          收起回复

            这个有的车有偏移有的车没有,该如何解决啊,还有就是炮弹那一项没看懂他是啥意思


            IP属地:日本6楼2024-11-16 12:29
            收起回复
              不懂帮顶


              IP属地:上海来自Android客户端7楼2024-11-16 13:02
              回复
                完全看不懂


                IP属地:上海8楼2024-11-16 13:09
                回复