sticking problem with new gun sounds -1 reply

Please wait...

Pokerchip

The Internet ends at GF

50 XP

31st December 2002

0 Uploads

109 Posts

0 Threads

#1 15 years ago

.. I've made a bit-of-a problem for myself when I created a copy of the mp18 and called it the mp28 and put it into the germans kit.

extract of mp28/Objects.con

Rem *** Deviation End *****

ObjectTemplate.fireInCameraDof 1 ObjectTemplate.loadSoundScript Sounds/Mp28.ssc ---changed

ObjectTemplate.createSkeleton animations/Mp18.ske ObjectTemplate.useSkeletonPartAsMain Mp18 ObjectTemplate.addTemplate Mp28Lod

ObjectTemplate.addTemplate e_MuzzThomp ObjectTemplate.setInputId -1 ObjectTemplate.startoneffects 0 ObjectTemplate.setPosition 0/0.058/0.3 ObjectTemplate.setRotation 0/0/0

extract from the mp28/sounds/medium.con

################################################################## ### Fire Loop ### ################# newPatch

load @ROOT/Sound/@RTD/mp28lrlp.wav -----changed minDistance 6 stereo loop stop FinishSample dopplerOff randomStartPitch 0.05 / 0.0 priority 10 *** Distance Volume *** beginEffect controlDestination Volume controlSource Distance envelope Ramp param 1 param 1 param 1 param -1 endEffect

load @ROOT/Sound/@RTD/mp28mlp.wav ----------changed minDistance 6 loop stop FinishSample dopplerOff randomStartPitch 0.05 / 0.0 priority 9 *** Distance Volume *** beginEffect controlDestination Volume controlSource Distance envelope Ramp param 1 param 1 param 0 param 1 endEffect

*** Distance Volume *** beginEffect controlDestination Volume controlSource Distance envelope Ramp param 30 param 150 param 1 param -1 endEffect

now I've also created new stereo and mono sounds identical in length to the original mp18 stereo and mono sounds, placed them in my sound.rfa archive.Then I've edited one of the german kits to make use of the Mp28.

ObjectTemplate.create Kit German_Pioneer_Desert---new kit identity ObjectTemplate.setType Assault ObjectTemplate.setKitTeam 1 ObjectTemplate.geometry Kit_Axis_Assault ObjectTemplate.setHasCollisionPhysics 1 ObjectTemplate.networkableInfo KitInfo ObjectTemplate.addTemplate Germ_DesertHelmet ObjectTemplate.addTemplate German_hippack

ObjectTemplate.setHealthBarIcon "Ingame/Healthbar_empty_assault_64x64.tga" ObjectTemplate.setHealthBarFullIcon "Ingame/Healthbar_full_assault_64x64.tga" ObjectTemplate.addWeaponIcon "Weapon/Icon_axisKnife.tga" ObjectTemplate.addWeaponIcon "Weapon/Icon_walter.tga" ObjectTemplate.addWeaponIcon "Weapon/Icon_mp28.tga"-----new menu icon ObjectTemplate.addWeaponIcon "Weapon/Icon_demokit.tga" ObjectTemplate.addWeaponIcon "Weapon/Icon_landmine.tga"

rem *** The order is important, first the best weapons! ObjectTemplate.addTemplate MP28 --------------------here ObjectTemplate.addTemplate WalterP38 ObjectTemplate.addTemplate KnifeAxis ObjectTemplate.addTemplate Landmine ObjectTemplate.addTemplate Detonator ObjectTemplate.addTemplate ExpPack

ObjectTemplate.aiTemplate Assault

repacked the Objects.con copyed\pasted to my mod archive folder,booted up the game choose "battlaxe"-"axis" and the Pioneer Kit was there ,only the mp28 firesound was still the mp18 firesound???:eek: :mad: why??.I can't think of where I went wrong?:rolleyes:

help help




Pokerchip

The Internet ends at GF

50 XP

31st December 2002

0 Uploads

109 Posts

0 Threads

#2 15 years ago

.. oh and I also created new animations routine for the mp28 using the 1p + 3p animations as a basis.They worked ok so the problem can't be there.:lookaround: