战地2吧 关注:143,070贴子:3,883,595
  • 14回复贴,共1

分享固定机枪第一人称瞄准视角

取消只看楼主收藏回复

在此之前我先问个小问题,小车驾驶位左右移动视角会出现倾斜晃动,正常情况下应该是水平移动的。
我没有改动相关的代码,并且所有模组(哪怕不是用同一个bf2启动的模组,包括原版)的原版车辆都出现了问题,但非原版车辆和橡皮艇没有问题,把这些正常视角的载具移过去也没有用,删了文档里的bf2也没有用。
回归主题
我是从一位吧友那儿得到的一个模组(不知道名字,以AIX2命名的)里薅出来的瞄准视角,需要一个关于瞄准视角的t、c档,内容在评论区发布。
名称如图

(评论区施工)


IP属地:湖南1楼2024-08-08 19:25回复
    瞄准视角
    T档
    ObjectTemplate.create GenericFireArm stationalyweapon_zoom_firearm
    ObjectTemplate.saveInSeparateFile 1
    rem ---BeginComp:WeaponHud ---
    ObjectTemplate.createComponent WeaponHud
    ObjectTemplate.weaponHud.hudName "dummy"
    ObjectTemplate.weaponHud.hasFireRate 0
    ObjectTemplate.weaponHud.showClips 0
    ObjectTemplate.weaponHud.hasFireRate 0
    rem ---EndComp ---
    rem ---BeginComp:SingleFireComp ---
    ObjectTemplate.createComponent SingleFireComp
    ObjectTemplate.fire.fireInput PIFlareFire
    rem ---EndComp ---
    rem ---BeginComp:DefaultAmmoComp ---
    ObjectTemplate.createComponent DefaultAmmoComp
    ObjectTemplate.ammo.nrOfMags 0
    ObjectTemplate.ammo.magSize 0
    rem ---EndComp ---
    rem ---BeginComp:WeaponBasedRecoilComp ---
    ObjectTemplate.createComponent WeaponBasedRecoilComp
    rem ---EndComp ---
    rem ---BeginComp:SimpleDeviationComp ---
    ObjectTemplate.createComponent SimpleDeviationComp
    rem ---EndComp ---
    rem ---BeginComp:DefaultSoundComp ---
    ObjectTemplate.createComponent DefaultSoundComp
    rem ---EndComp ---
    rem ---BeginComp:DefaultAnimationComp ---
    ObjectTemplate.createComponent DefaultAnimationComp
    rem ---EndComp ---
    rem ---BeginComp:ToggleCameraComp ---
    ObjectTemplate.createComponent ToggleCameraComp
    ObjectTemplate.zoom.changeCameraId 2
    ObjectTemplate.zoom.changeCameraViewMode 1
    ObjectTemplate.zoom.allowUntoggledFire 0
    rem ---EndComp ---
    ObjectTemplate.floaterMod 0
    ObjectTemplate.hasMobilePhysics 0
    ObjectTemplate.create Camera weapon_zoom_camera
    ObjectTemplate.createdInEditor 1
    ObjectTemplate.floaterMod 0
    ObjectTemplate.hasMobilePhysics 0
    rem -------------------------------------
    ObjectTemplate.addTemplate S_us_bipod_Camera_RotationRpm
    rem -------------------------------------
    ObjectTemplate.setMinRotation -1/-0.5/0
    ObjectTemplate.setMaxRotation 1/0.5/0
    ObjectTemplate.setPivotPosition 0/0/-0.5
    ObjectTemplate.setMaxSpeed 5/5/0
    ObjectTemplate.setAcceleration 2/1/0
    ObjectTemplate.setInputToYaw PIMouseLookX
    ObjectTemplate.setInputToPitch PIMouseLookY
    ObjectTemplate.setAutomaticReset 1
    ObjectTemplate.CameraId 2
    ObjectTemplate.CVMChase 0
    ObjectTemplate.CVMFrontChase 0
    ObjectTemplate.CVMFlyBy 0
    ObjectTemplate.worldFOV 0.9
    ObjectTemplate.insideFOV 0.9
    ObjectTemplate.worldFOV 0.9
    ObjectTemplate.insideFOV 0.9
    ObjectTemplate.allowInsideDynamicLights 1
    ObjectTemplate.allowInsideStaticSun 0
    ObjectTemplate.insideStaticSunDirection -0.25/-0.5/0.75
    ObjectTemplate.insideStaticSunColor 1/1/1
    ObjectTemplate.insideStaticSunDamageColor 1/1/1
    ObjectTemplate.insideDamageFrequency 3
    ObjectTemplate.insideDamageThreshold 0.15
    ObjectTemplate.insideStaticSunAmbientColor 0.7/0.7/0.7
    C档
    ObjectTemplate.create GenericFireArm stationalyweapon_zoom_firearm
    ObjectTemplate.saveInSeparateFile 1
    include stationalyweapon_zoom_firearm.tweak


    IP属地:湖南2楼2024-08-08 19:27
    回复
      ch_bipod

      ObjectTemplate.addTemplate ch_bipod_Camera
      ObjectTemplate.setPosition 0/0.14/-0.62
      下面加上
      ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
      ObjectTemplate.addTemplate weapon_zoom_camera
      ObjectTemplate.setPosition 0.0003/0.1062/-0.59(调整视角位置)
      ObjectTemplate.setRotation 0.12/0/0(调整准心位置)


      IP属地:湖南3楼2024-08-08 19:30
      回复
        mec_bipod
        ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
        ObjectTemplate.addTemplate weapon_zoom_camera
        ObjectTemplate.setPosition 0.001/0.0665/-0.58
        ObjectTemplate.setRotation 0.08/0.25/0


        IP属地:湖南4楼2024-08-08 19:31
        回复
          us_bipod
          ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
          ObjectTemplate.addTemplate weapon_zoom_camera
          ObjectTemplate.setPosition 0.0001/0.0972/-0.6
          ObjectTemplate.setRotation 0.12/0.6/0


          IP属地:湖南5楼2024-08-08 19:32
          回复
            un_bipod(来自TNG拓展包)
            由于调试时发现它有贴图瞄准,但调都调了,那就这样吧。
            话说有什么办法取消贴图瞄准吗?
            贴图瞄准(与准心不匹配)

            3d瞄准
            ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
            ObjectTemplate.addTemplate weapon_zoom_camera
            ObjectTemplate.setPosition -0.00095/0.1398/-0.4
            ObjectTemplate.setRotation 0.1/-0.3/0


            IP属地:湖南6楼2024-08-08 19:35
            回复
              接下来是载具
              CH
              JEP_Paratrooper
              85式
              ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
              ObjectTemplate.addTemplate weapon_zoom_camera
              ObjectTemplate.setPosition 0.003/0.21/-0.6
              ObjectTemplate.setRotation 0/0.6/0
              95式
              ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
              ObjectTemplate.addTemplate weapon_zoom_camera
              ObjectTemplate.setPosition 0.0005/0.16900/-0.42000
              ObjectTemplate.setRotation 0.1/0/0


              IP属地:湖南7楼2024-08-08 19:38
              回复
                85式
                jep_nanjing
                ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
                ObjectTemplate.addTemplate weapon_zoom_camera
                ObjectTemplate.setPosition 0.003/0.11/-0.6
                ObjectTemplate.setRotation 0.05/0.4/0
                tnk_type98
                ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
                ObjectTemplate.addTemplate weapon_zoom_camera
                ObjectTemplate.setPosition 0.003/0.21/-0.6
                ObjectTemplate.setRotation 0/0.4/0


                IP属地:湖南8楼2024-08-08 19:40
                收起回复
                  JEP_mec_Paratrooper
                  rpk74
                  ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
                  ObjectTemplate.addTemplate weapon_zoom_camera
                  ObjectTemplate.setPosition 0.001/0.119/-0.15
                  ObjectTemplate.setRotation 0.08/0.4/0
                  KORD
                  ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
                  ObjectTemplate.addTemplate weapon_zoom_camera
                  ObjectTemplate.setPosition -0.015/0.187/-0.31
                  ObjectTemplate.setRotation 0.1/0/0
                  Jeep_Technical(AIX2.0)
                  RPK74
                  ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
                  ObjectTemplate.addTemplate weapon_zoom_camera
                  ObjectTemplate.setPosition 0.001/0.1058/-0.16
                  ObjectTemplate.setRotation 0.08/0.4/0
                  KORD
                  ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
                  ObjectTemplate.addTemplate weapon_zoom_camera
                  ObjectTemplate.setPosition 0.001/0.182/-0.29
                  ObjectTemplate.setRotation 0.1/0/0


                  IP属地:湖南9楼2024-08-08 19:43
                  回复
                    kord
                    jep_vodnik
                    ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
                    ObjectTemplate.addTemplate weapon_zoom_camera
                    ObjectTemplate.setPosition 0.001/0.21/-0.2
                    ObjectTemplate.setRotation 0.1/0/0
                    RUTNK_T90
                    ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
                    ObjectTemplate.addTemplate weapon_zoom_camera
                    ObjectTemplate.setPosition 0.001/0.21/-0.2
                    ObjectTemplate.setRotation 0.1/0/0


                    IP属地:湖南11楼2024-08-08 20:11
                    回复
                      JEEP_FAAV
                      M249
                      ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
                      ObjectTemplate.addTemplate weapon_zoom_camera
                      ObjectTemplate.setPosition 0/0.10715/-0.55
                      ObjectTemplate.setRotation 0.135/0.6/0
                      M2HB
                      ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
                      ObjectTemplate.addTemplate weapon_zoom_camera
                      ObjectTemplate.setPosition 0/0.181/-0.6


                      IP属地:湖南12楼2024-08-08 20:13
                      回复
                        m249
                        boat_rib
                        ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
                        ObjectTemplate.addTemplate weapon_zoom_camera
                        ObjectTemplate.setPosition 2e-005/-0.267/-0.48653
                        ObjectTemplate.setRotation 0.2/-38.4/0


                        IP属地:湖南13楼2024-08-08 20:14
                        回复
                          M2HB
                          USJEP_HMMWV
                          ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
                          ObjectTemplate.addTemplate weapon_zoom_camera
                          ObjectTemplate.setPosition 0.0027/0.1445/-0.6
                          ObjectTemplate.setRotation -0.1/-0.05/0
                          USTNK_M1A2
                          ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
                          ObjectTemplate.addTemplate weapon_zoom_camera
                          ObjectTemplate.setPosition 0.0885/0.11/-0.55
                          ObjectTemplate.setRotation -0.05/0.2/0
                          xpak2_tnkc2
                          ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
                          ObjectTemplate.addTemplate weapon_zoom_camera
                          ObjectTemplate.setPosition 0/0.19/-0.45
                          ObjectTemplate.setRotation 0.1/0.1/0
                          xpak2_tnkl2a6
                          ObjectTemplate.addTemplate stationalyweapon_zoom_firearm
                          ObjectTemplate.addTemplate weapon_zoom_camera
                          ObjectTemplate.setPosition 0/0.20/-0.45
                          ObjectTemplate.setRotation 0.1/-0.05/0


                          IP属地:湖南14楼2024-08-08 20:17
                          回复
                            最后再分享欧盟坦克的乘员位和机枪口枪焰位置(仿照AIX2.0调的)
                            xpak2_tnkc2
                            ObjectTemplate.activeSafe RotationalBundle tnk_c2_turretbase
                            ObjectTemplate.modifiedByUser "armandoma"
                            ObjectTemplate.setNetworkableInfo BasicInfo
                            ObjectTemplate.floaterMod 0
                            ObjectTemplate.hasMobilePhysics 1
                            ObjectTemplate.hasCollisionPhysics 1
                            ObjectTemplate.physicsType Mesh
                            rem -------------------------------------
                            ObjectTemplate.addTemplate S_tnk_c2_turretbase_RotationRpm
                            ObjectTemplate.addTemplate antenna
                            ObjectTemplate.setPosition 1.32084/1.83324/-3.21375
                            ObjectTemplate.addTemplate antenna
                            ObjectTemplate.setPosition -1.31797/1.86893/-3.21342
                            ObjectTemplate.addTemplate xpak2_tnkc2_Passenger2(乘员位)
                            ObjectTemplate.setPosition 1.4/2/-1.8
                            ObjectTemplate.setRotation 90/0/0
                            ObjectTemplate.addTemplate xpak2_tnkc2_Passenger1(乘员位)
                            ObjectTemplate.setPosition -1.45/2/-1.8
                            ObjectTemplate.setRotation -90/0/0
                            ObjectTemplate.addTemplate Coaxial_browning(机枪口)
                            ObjectTemplate.setPosition 0.4/1.25/1.23
                            ObjectTemplate.addTemplate xpak2_tnkc2_SmokeLauncher
                            rem -------------------------------------


                            IP属地:湖南15楼2024-08-08 20:22
                            回复
                              xpak2_tnkl2a6
                              ObjectTemplate.activeSafe RotationalBundle tnk_l2a6_turretbase
                              ObjectTemplate.modifiedByUser "armandoma"
                              ObjectTemplate.setNetworkableInfo BasicInfo
                              ObjectTemplate.floaterMod 0
                              ObjectTemplate.hasMobilePhysics 1
                              ObjectTemplate.hasCollisionPhysics 1
                              ObjectTemplate.physicsType Mesh
                              rem -------------------------------------
                              ObjectTemplate.addTemplate S_tnk_l2a6_turretbase_RotationRpm
                              ObjectTemplate.addTemplate antenna
                              ObjectTemplate.setPosition -1.12605/1.28943/-2.02845
                              ObjectTemplate.addTemplate antenna
                              ObjectTemplate.setPosition 1.13387/1.30621/-2.03393
                              ObjectTemplate.addTemplate tnk_l2a6_Passenger2(乘员位)
                              ObjectTemplate.setPosition 1.1/1.8/-2
                              ObjectTemplate.setRotation 90/0/0
                              ObjectTemplate.addTemplate tnk_l2a6_Passenger1(乘员位)
                              ObjectTemplate.setPosition -1.15/1.8/-2
                              ObjectTemplate.setRotation -90/0/0
                              ObjectTemplate.addTemplate tnk_l2a6_SmokeLauncher
                              rem -------------------------------------
                              ObjectTemplate.activeSafe RotationalBundle tnk_l2a6_barrelBase
                              ObjectTemplate.modifiedByUser "armandoma"
                              ObjectTemplate.setNetworkableInfo BasicInfo
                              ObjectTemplate.floaterMod 0
                              ObjectTemplate.hasMobilePhysics 1
                              ObjectTemplate.hasCollisionPhysics 1
                              ObjectTemplate.physicsType Mesh
                              rem -------------------------------------
                              ObjectTemplate.addTemplate S_tnk_l2a6_barrelBase_RotationRpm
                              ObjectTemplate.addTemplate Coaxial_browning(机枪口)
                              ObjectTemplate.setPosition -0.20175/0/0.45
                              ObjectTemplate.addTemplate tnk_l2a6_HE_Barrel
                              ObjectTemplate.setPosition -0.0857/0.0208/-0.0054
                              ObjectTemplate.addTemplate tnk_l2a6_KE_Barrel
                              ObjectTemplate.setPosition -0.0857/0.0208/-0.0054
                              ObjectTemplate.addTemplate tnk_l2a6_HE2_Barrel
                              ObjectTemplate.setPosition -0.0857/0.0208/-0.0054
                              rem -------------------------------------


                              IP属地:湖南16楼2024-08-08 20:24
                              回复