|
楼主 |
发表于 2019-8-9 14:31:16
|
显示全部楼层
5、第四步进行完毕,就在TWEAK文档里加入如下代码
ObjectTemplate.activeSafe PlayerControlObject M1A2SEPV3-A_gunner
ObjectTemplate.modifiedByUser "Administrator"
ObjectTemplate.setNetworkableInfo BasicInfo
rem ---BeginComp:VehicleHud ---
ObjectTemplate.createComponent VehicleHud
ObjectTemplate.vehicleHud.hudName "KILLMESSAGE_VEHICLE_m1a1"
ObjectTemplate.vehicleHud.miniMapIconLeaderSize Medium
ObjectTemplate.vehicleHud.vehicleIconPos 31/19
ObjectTemplate.vehicleHud.useSelectionIcons 0
rem ---EndComp ---
rem ---BeginComp:WarningHud ---
ObjectTemplate.createComponent WarningHud
ObjectTemplate.WarningHud.firstWarningSound HUD_Laser_Track_Warning
ObjectTemplate.WarningHud.secondWarningSound HUD_Laser_Track_Warning
ObjectTemplate.WarningHud.warningIcon Ingame\GeneralIcons\Action_Icons\large_laserlockicon.tga
rem ---EndComp ---
rem ---BeginComp:HelpHud ---
ObjectTemplate.createComponent HelpHud
ObjectTemplate.HelpHud.helpStringKey "HUD_HELP_VEHICLE_TANK_TURRET_CONTROLS_duckInTurret"
ObjectTemplate.HelpHud.helpSoundKey "DuckInTurret"
rem ---EndComp ---
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.aiTemplate USTNK_M1A2_TopMG
rem -------------------------------------
ObjectTemplate.addTemplate S_M1A2SEPV3-A_gunner_Ambient
ObjectTemplate.addTemplate S_M1A2SEPV3-A_gunner_AmbientDamaged
rem -------------------------------------
ObjectTemplate.exitSpeedMod 0.5
ObjectTemplate.seatInformation M1A2SEPV3-A_cupola 0.0796084/0.19108/0.0994398 0/0/0
ObjectTemplate.seatAnimationSystem Objects/Vehicles/Common/Animations/3p_gunturret_A_animSys.inc
ObjectTemplate.soundFilter vehicle
ObjectTemplate.cockpitSubGeom 1
ObjectTemplate.allowDucking 1
ObjectTemplate.crewKitIndex 7
ObjectTemplate.autoUseAbility 1
ObjectTemplate.hasRestrictedExit 1
ObjectTemplate.activeSafe Sound S_M1A2SEPV3-A_gunner_Ambient
ObjectTemplate.modifiedByUser "Administrator"
ObjectTemplate.activeSafe Sound S_M1A2SEPV3-A_gunner_AmbientDamaged
ObjectTemplate.modifiedByUser "Administrator"
ObjectTemplate.activeSafe RotationalBundle M1A2SEPV3-A_cupola
ObjectTemplate.modifiedByUser "Administrator"
ObjectTemplate.setNetworkableInfo BasicInfo
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate S_M1A2SEPV3-A_cupola_RotationRpm
ObjectTemplate.addTemplate M1A2SEPV3-A_DuckCamera
ObjectTemplate.setPosition 0.0701332/0.104871/-0.0185896
ObjectTemplate.setRotation 0/-10/0
rem -------------------------------------
ObjectTemplate.setMaxSpeed 90/1/1
ObjectTemplate.setAcceleration 5000/0/0
ObjectTemplate.setInputToYaw PIMouseLookX-----定义机枪的水平旋转(当把ObjectTemplate.setMinRotation与ObjectTemplate.setMaxRotation删掉时,可以实现水平360度旋转)
ObjectTemplate.automaticYawStabilization 1
ObjectTemplate.regulateYaw -0.15/0.1
ObjectTemplate.activeSafe Sound S_M1A2SEPV3-A_cupola_RotationRpm
ObjectTemplate.modifiedByUser "Administrator"
ObjectTemplate.activeSafe RotationalBundle M1A2SEPV3-A_gunlav
ObjectTemplate.modifiedByUser "Administrator"
ObjectTemplate.setNetworkableInfo BasicInfo
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate S_M1A2SEPV3-A_gunlav_RotationRpm
ObjectTemplate.addTemplate M1A2SEPV3-A_gunner_cam-------定义顶部机枪手的射击时的视角
ObjectTemplate.setPosition 0.085/0.27/-0.45
ObjectTemplate.addTemplate HMG_M2HB---------------顶部机枪的模型,发射架
ObjectTemplate.setPosition 0.085775/-0.0272002/0.309067
ObjectTemplate.addTemplate hmg_m2hb_ammobox--------顶部机枪的弹药盒
ObjectTemplate.setPosition -0.194722/-0.0403504/0.229062
ObjectTemplate.setRotation 180/0/0
ObjectTemplate.addTemplate hmg_m2hb_ammo------顶部机枪的子弹带
ObjectTemplate.setPosition -0.147604/0.025363/0.228261
ObjectTemplate.setRotation -89.9949/-6.81734/179.999
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-30/0------顶部机枪的上下仰角范围
ObjectTemplate.setMaxRotation 0/15/0------顶部机枪的上下仰角范围(把这两个删掉,顶部机枪的仰角会比较大)
ObjectTemplate.setMaxSpeed 0/90/0
ObjectTemplate.setAcceleration 0/5000/0
ObjectTemplate.setInputToPitch PIMouseLookY------顶部机枪的上下活动
ObjectTemplate.regulatePitch 0.15/-0.1
ObjectTemplate.activeSafe Sound S_M1A2SEPV3-A_gunlav_RotationRpm
ObjectTemplate.modifiedByUser "Administrator"
ObjectTemplate.create Camera M1A2SEPV3-A_gunner_cam
ObjectTemplate.modifiedByUser "Administrator"
ObjectTemplate.createdInEditor 1
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 0
rem -------------------------------------
ObjectTemplate.addTemplate S_M1A2SEPV3-A_gunner_cam_RotationRpm
rem -------------------------------------
ObjectTemplate.setMinRotation -1/-0.5/0
ObjectTemplate.setMaxRotation 1/0.5/0
ObjectTemplate.setPivotPosition 0/0/-2
ObjectTemplate.setMaxSpeed 5/5/0
ObjectTemplate.setAcceleration 2/1/0
ObjectTemplate.setInputToYaw PIMouseLookX
ObjectTemplate.setInputToPitch PIMouseLookY-----这个X与Y是定义视角的左右上下移动
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.cameraShakeStartSpeed 14
ObjectTemplate.cameraShakeMaxSpeed 20
ObjectTemplate.followStiffness 3
ObjectTemplate.chaseDistance 16
ObjectTemplate.chaseAngle 0.2
ObjectTemplate.chaseOffset 0/1/7
ObjectTemplate.worldFOV 1.1
ObjectTemplate.insideFOV 1.1
ObjectTemplate.worldFOV 1.1
ObjectTemplate.insideFOV 1.1
ObjectTemplate.allowInsideDynamicLights 1
ObjectTemplate.allowInsideStaticSun 0
ObjectTemplate.insideStaticSunDirection 0/-1/0
ObjectTemplate.insideStaticSunColor 1/1/1
ObjectTemplate.insideStaticSunDamageColor 1/1/1
ObjectTemplate.insideDamageFrequency 3
ObjectTemplate.insideDamageThreshold 0.1
ObjectTemplate.insideStaticSunAmbientColor 0.7/0.7/0.7
ObjectTemplate.activeSafe Sound S_M1A2SEPV3-A_gunner_cam_RotationRpm
ObjectTemplate.modifiedByUser "Administrator"
ObjectTemplate.create Camera M1A2SEPV3-A_DuckCamera
ObjectTemplate.modifiedByUser "Administrator"
ObjectTemplate.createdInEditor 1
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 0
rem -------------------------------------
ObjectTemplate.addTemplate S_M1A2SEPV3-A_DuckCamera_RotationRpm
rem -------------------------------------
ObjectTemplate.CameraId 1
ObjectTemplate.CVMChase 0
ObjectTemplate.CVMFrontChase 0
ObjectTemplate.CVMFlyBy 0
ObjectTemplate.worldFOV 1.1
ObjectTemplate.insideFOV 1.1
ObjectTemplate.worldFOV 1.1
ObjectTemplate.insideFOV 1.1
ObjectTemplate.allowInsideDynamicLights 1
ObjectTemplate.allowInsideStaticSun 0
ObjectTemplate.insideStaticSunDirection 0/-1/0
ObjectTemplate.insideStaticSunColor 1/1/1
ObjectTemplate.insideStaticSunDamageColor 1/1/1
ObjectTemplate.insideDamageFrequency 3
ObjectTemplate.insideDamageThreshold 0.1
ObjectTemplate.insideStaticSunAmbientColor 0.7/0.7/0.7
ObjectTemplate.activeSafe Sound S_M1A2SEPV3-A_DuckCamera_RotationRpm
ObjectTemplate.modifiedByUser "Administrator"
|
|