战地资源网

 找回密码
 立即加入
搜索
123
返回列表 发新帖
楼主: QOQ

[游戏] [遗失了多年的教程]载具多弹药的实现

[复制链接]

0

主题

4

回帖

48

积分

上等兵

游戏昵称
IKUN2.5
发表于 2024-8-13 11:24:34 | 显示全部楼层
赞助bfmil
请问一下,为啥我给小鸟、A10加上了 AH1Z的火箭弹后  开火没有音效啊....但是我反复查看路径 没有任何错误  这是为啥....
一下是我写在小鸟文档里的
ObjectTemplate.create GenericFireArm bird_HydraLauncher
ObjectTemplate.modifiedByUser ljo
ObjectTemplate.createdInEditor 1
rem ---BeginComp:WeaponHud ---
ObjectTemplate.createComponent WeaponHud
ObjectTemplate.weaponHud.weaponIcon Ingame\Weapons\Icons\Hud\bomb.tga
ObjectTemplate.weaponHud.hudName "HYDRA 70"
ObjectTemplate.weaponHud.guiIndex 24
ObjectTemplate.weaponHud.hasFireRate 0
ObjectTemplate.weaponHud.addShowOnCamMode 2
rem ---EndComp ---
rem ---BeginComp:MultiFireComp ---
ObjectTemplate.createComponent MultiFireComp
ObjectTemplate.fire.fireInput PIAltFire
ObjectTemplate.fire.addFireRate 2
ObjectTemplate.fire.addBarrelName ahe_ah1z_hydra_barrel
rem ---EndComp ---
rem ---BeginCompefaultAmmoComp ---
ObjectTemplate.createComponent DefaultAmmoComp
ObjectTemplate.ammo.nrOfMags 1
ObjectTemplate.ammo.magSize 12
ObjectTemplate.ammo.reloadTime 4
ObjectTemplate.ammo.autoReload 1
ObjectTemplate.ammo.reloadWithoutPlayer 1
rem ---EndComp ---
rem ---BeginComp:WeaponBasedRecoilComp ---
ObjectTemplate.createComponent WeaponBasedRecoilComp
ObjectTemplate.recoil.cameraRecoilSpeed 13
ObjectTemplate.recoil.cameraRecoilSize 1
rem ---EndComp ---
rem ---BeginComp:SimpleDeviationComp ---
ObjectTemplate.createComponent SimpleDeviationComp
ObjectTemplate.deviation.minDev 1.5
rem ---EndComp ---
rem ---BeginCompefaultSoundComp ---
ObjectTemplate.createComponent DefaultSoundComp
rem ---EndComp ---
rem ---BeginCompefaultAnimationComp ---
ObjectTemplate.createComponent DefaultAnimationComp
rem ---EndComp ---
rem ---BeginCompefaultZoomComp ---
ObjectTemplate.createComponent DefaultZoomComp
ObjectTemplate.zoom.addZoomFactor 0
rem ---EndComp ---
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
ObjectTemplate.aiTemplate AHE_AH1Z_Rockets
rem -------------------------------------
ObjectTemplate.addTemplate S_A_Fire1P
ObjectTemplate.addTemplate S_A_Fire1P_Outdoor
ObjectTemplate.addTemplate S_A_Fire3P
ObjectTemplate.addTemplate S_A_BoltClick
ObjectTemplate.addTemplate S_A_TriggerClick
ObjectTemplate.addTemplate S_A_SwitchFireRate
ObjectTemplate.addTemplate S_A_Reload1P
ObjectTemplate.addTemplate S_A_Reload3P
ObjectTemplate.addTemplate S_A_Deploy1P
ObjectTemplate.addTemplate S_A_Deploy3P
ObjectTemplate.addTemplate S_A_Zoom
ObjectTemplate.addTemplate ahe_ah1z_hydra_barrel
ObjectTemplate.setPosition 0.94/-0.351/0.991
ObjectTemplate.setRotation 0/3/0
ObjectTemplate.addTemplate ahe_ah1z_hydra_barrel
ObjectTemplate.setPosition -0.94/-0.351/0.991
ObjectTemplate.setRotation 0/3/0
ObjectTemplate.addTemplate ahe_ah1z_hydra_barrel
ObjectTemplate.setPosition 0.832/-0.42/0.991
ObjectTemplate.setRotation 0/3/0
ObjectTemplate.addTemplate ahe_ah1z_hydra_barrel
ObjectTemplate.setPosition -0.832/-0.42/0.991
ObjectTemplate.setRotation 0/3/0
ObjectTemplate.addTemplate ahe_ah1z_hydra_barrel
ObjectTemplate.setPosition 0.947/-0.492/0.991
ObjectTemplate.setRotation 0/3/0
ObjectTemplate.addTemplate ahe_ah1z_hydra_barrel
ObjectTemplate.setPosition -0.947/-0.492/0.991
ObjectTemplate.setRotation 0/3/0
rem -------------------------------------
ObjectTemplate.projectileTemplate she_littlebird_Projectile
ObjectTemplate.velocity 200

GeometryTemplate.compressVertexData 1
GeometryTemplate.maxTextureRepeat 16
ObjectTemplate.create GenericProjectile she_littlebird_Projectile
ObjectTemplate.modifiedByUser ljo
ObjectTemplate.createNotInGrid 1
ObjectTemplate.createdInEditor 1
rem ---BeginCompefaultCollisionComp ---
ObjectTemplate.createComponent DefaultCollisionComp
rem ---EndComp ---
rem ---BeginCompefaultDetonationComp ---
ObjectTemplate.createComponent DefaultDetonationComp
ObjectTemplate.detonation.explosionMaterial 55
ObjectTemplate.detonation.explosionRadius 8
ObjectTemplate.detonation.explosionForce 6
ObjectTemplate.detonation.explosionDamage 180
ObjectTemplate.detonation.endEffectTemplate e_exp_small
ObjectTemplate.detonation.useMMOnEndEffect 1
rem ---EndComp ---
rem ---BeginCompefaultProjSoundComp ---
ObjectTemplate.createComponent DefaultProjSoundComp
rem ---EndComp ---
rem ---BeginCompefaultPenetrateComp ---
ObjectTemplate.createComponent DefaultPenetrateComp
ObjectTemplate.penetrate.allowSolidPenetration 0
ObjectTemplate.penetrate.allowLiquidPenetration 0
rem ---EndComp ---
ObjectTemplate.geometry hydra_70
ObjectTemplate.gravityModifier 0.05
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Point
ObjectTemplate.collisionGroups 8
ObjectTemplate.material 55
rem -------------------------------------
ObjectTemplate.addTemplate S_ahe_ah1z_HydraLauncher_Projectile_Looping
ObjectTemplate.addTemplate e_dumbrocket_trail
rem -------------------------------------
ObjectTemplate.timeToLive CRD_NONE/10/0/0
ObjectTemplate.material 55
ObjectTemplate.hasOnTimeEffect 1
ObjectTemplate.tracerSizeModifier 0
ObjectTemplate.minDamage 0.2
ObjectTemplate.damage 333

ObjectTemplate.activeSafe Sound S_A_Fire1P
ObjectTemplate.modifiedByUser ljo
ObjectTemplate.soundFilename "objects/vehicles/xpak2_vehicles/aav_tunguska/she_littlebird/s/fire.wav"
ObjectTemplate.loopCount 0
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 1
ObjectTemplate.volume 1
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 1
ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.97/1.03/
ObjectTemplate.volumeEnvelope 0/1/0/1/1/1/0/0.9/1/

ObjectTemplate.activeSafe Sound S_she_littlebird_Outdoor
ObjectTemplate.modifiedByUser ljo

ObjectTemplate.activeSafe Sound S_A_Fire3P
ObjectTemplate.modifiedByUser ljo
ObjectTemplate.soundFilename "objects/vehicles/land/aav_tunguska/sounds/mono/missile_fire.wav"
ObjectTemplate.loopCount 0
ObjectTemplate.is3dSound 1
ObjectTemplate.stopType 1
ObjectTemplate.volume 1
ObjectTemplate.pitch 1
ObjectTemplate.reverbLevel 1
ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.97/1.03/
ObjectTemplate.volumeEnvelope 0/1/0/1/1/1/0/0.9/1/
ObjectTemplate.minDistance 3
ObjectTemplate.halfVolumeDistance 6.5

ObjectTemplate.activeSafe Sound S_A_BoltClick
ObjectTemplate.modifiedByUser ljo

ObjectTemplate.activeSafe Sound S_A_TriggerClick
ObjectTemplate.modifiedByUser ljo

ObjectTemplate.activeSafe Sound S_A_SwitchFireRate
ObjectTemplate.modifiedByUser ljo

ObjectTemplate.activeSafe Sound S_A_Reload1P
ObjectTemplate.modifiedByUser ljo
ObjectTemplate.soundFilename "objects/weapons/armament/missiles/sounds/mono/bomb_reload.wav"
ObjectTemplate.loopCount 0
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 1
ObjectTemplate.volume 1
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 1

ObjectTemplate.activeSafe Sound S_A_Reload3P
ObjectTemplate.modifiedByUser ljo

ObjectTemplate.activeSafe Sound S_A_Deploy1P
ObjectTemplate.modifiedByUser ljo
ObjectTemplate.soundFilename "common/sound/weapon_toggle_vehicle.wav"
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 1
ObjectTemplate.volume 0.3
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 0

ObjectTemplate.activeSafe Sound S_A_Deploy3P
ObjectTemplate.modifiedByUser ljo

ObjectTemplate.activeSafe Sound S_A_Zoom
ObjectTemplate.modifiedByUser ljo
回复

使用道具 举报

0

主题

8

回帖

34

积分

上等兵

游戏昵称
jmsk
发表于 2024-8-14 14:42:52 | 显示全部楼层
医生去开会 发表于 2024-8-13 11:24
请问一下,为啥我给小鸟、A10加上了 AH1Z的火箭弹后  开火没有音效啊....但是我反复查看路径 没有任何错误  ...

是不是音效坐标没有写对
回复

使用道具 举报

0

主题

4

回帖

48

积分

上等兵

游戏昵称
IKUN2.5
发表于 2024-8-14 19:50:26 | 显示全部楼层
407765997 发表于 2024-8-14 14:42
是不是音效坐标没有写对

我的天...您提醒下我才发现哈哈哈  低级错误低级错误   谢了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即加入

本版积分规则

Archiver|小黑屋|bfmil ( 拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,会员帖子系会员发表,并不代表本站立场! )

GMT+8, 2024-11-21 23:04 , Processed in 0.103559 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表