Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline mr_hymn_  
#1 Posted : Friday, March 17, 2017 8:31:59 AM(UTC)
mr_hymn_
Major
Joined: 2/28/2017(UTC)
Posts: 410
Thailand
Location: Bangkok

Thanks: 63 times
Was thanked: 145 time(s) in 127 post(s)
I tried to add the plasma gun sound. I have named it plasmagun.wav and placed it in Data/Audio/Sounds/plasmagun.wav

Then I am adding code in SoundEffect.ini as below
AudioEvent PlasmaWeapon
Sounds = plasma
Control= random
Priority = normal
PitchShift = -2 2
VolumeShift= -15
Limit = 3
Volume = 60
; MinRange = 200
; MaxRange = 800
Type = world shrouded everyone
End

And I am using this sound for my ranger firesound. Once I am running the game my ranger gun sound now turned completely mute. Did I do something wrong?

;------------------------------------------------------------------------------
Weapon RangerPlasmaRifle
PrimaryDamage = 55.0
PrimaryDamageRadius = 2.5
ScatterRadius = 5.0
AttackRange = 120.0
DamageType = PARTICLE_BEAM
DeathType = BURNED
WeaponSpeed = 999999.0 ; dist/sec
DelayBetweenShots = 1200 ; time between shots, msec
ClipSize = 0 ; how many shots in a Clip (0 == infinite)
ClipReloadTime = 0 ; how long to reload a Clip, msec
;AcceptableAimDelta = 700 ; Don't need to turn at all.
AntiSmallMissile = Yes
AntiProjectile = Yes
ProjectileObject = NONE
FireFX = WeaponFX_PlasmaGunFireWithRedTracers
FireSound = PlasmaWeapon
RadiusDamageAffects = ENEMIES NEUTRALS ALLIES
AntiAirborneVehicle = No
AntiAirborneInfantry = No
AntiGround = Yes
End
Sponsor
Offline klingondragon  
#2 Posted : Friday, March 17, 2017 10:20:07 AM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
you called the file 'plasmagun' but your audioevent references 'plasma'.
thanks 1 user thanked klingondragon for this useful post.
mr_hymn_ on 3/18/2017(UTC)
Offline mr_hymn_  
#3 Posted : Friday, March 17, 2017 1:40:04 PM(UTC)
mr_hymn_
Major
Joined: 2/28/2017(UTC)
Posts: 410
Thailand
Location: Bangkok

Thanks: 63 times
Was thanked: 145 time(s) in 127 post(s)
Originally Posted by: Klingondragon Go to Quoted Post
you called the file 'plasmagun' but your audioevent references 'plasma'.


Thanks but I changed it and name of the file and name in the ini now matched. Sounds still not play in the game :(
Offline AdrianeMapMaker  
#4 Posted : Friday, March 17, 2017 3:45:37 PM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
I Already do this at my Counter-Strike Fx Mod where are Sounds Used in Firing where Added ...i Cant find Any error's to your codes since we do the same thing try to made another test where uses another soundFX

Code:
AudioEvent AwpWeapon
  Sounds      = awp1
  Control     = interrupt random
  PitchShift  = -5 5
  VolumeShift = -10
  Limit       = 3
  Volume      = 60
  Priority    = high
  Type       = world shrouded everyone
End

AudioEvent RealAK47
  Sounds = ak47-1 ak47-2 
  Control= random interrupt
  Priority = normal
  VolumeShift= -15
  PitchShift = -10  10
  Limit= 2
  Volume=60
  Type = world shrouded everyone
End


AudioEvent M4a1Weapon
  Sounds = m4a1_unsil-1 m4a1_unsil-2 m4a1_unsil-1
  Control= random
  Priority = normal
  PitchShift = -1 1
  VolumeShift= -15
  Limit = 3
  Volume = 60
  Type = world shrouded everyone
End

;In Weapon.INI:
  
 FireSound               = M4a1Weapon

Edited by user Friday, March 17, 2017 3:51:02 PM(UTC)  | Reason: Not specified

A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





thanks 1 user thanked AdrianeMapMaker for this useful post.
mr_hymn_ on 3/18/2017(UTC)
Offline mr_hymn_  
#5 Posted : Friday, March 17, 2017 8:54:16 PM(UTC)
mr_hymn_
Major
Joined: 2/28/2017(UTC)
Posts: 410
Thailand
Location: Bangkok

Thanks: 63 times
Was thanked: 145 time(s) in 127 post(s)
Originally Posted by: adrianemapmaker Go to Quoted Post
I Already do this at my Counter-Strike Fx Mod where are Sounds Used in Firing where Added ...i Cant find Any error's to your codes since we do the same thing try to made another test where uses another soundFX

Code:
AudioEvent AwpWeapon
  Sounds      = awp1
  Control     = interrupt random
  PitchShift  = -5 5
  VolumeShift = -10
  Limit       = 3
  Volume      = 60
  Priority    = high
  Type       = world shrouded everyone
End

AudioEvent RealAK47
  Sounds = ak47-1 ak47-2 
  Control= random interrupt
  Priority = normal
  VolumeShift= -15
  PitchShift = -10  10
  Limit= 2
  Volume=60
  Type = world shrouded everyone
End


AudioEvent M4a1Weapon
  Sounds = m4a1_unsil-1 m4a1_unsil-2 m4a1_unsil-1
  Control= random
  Priority = normal
  PitchShift = -1 1
  VolumeShift= -15
  Limit = 3
  Volume = 60
  Type = world shrouded everyone
End

;In Weapon.INI:
  
 FireSound               = M4a1Weapon


Sound file sound be .wav and must be in the folder >> Data/Audio/Sounds/plasma.wav correct?
Offline mr_hymn_  
#6 Posted : Saturday, March 18, 2017 3:17:05 AM(UTC)
mr_hymn_
Major
Joined: 2/28/2017(UTC)
Posts: 410
Thailand
Location: Bangkok

Thanks: 63 times
Was thanked: 145 time(s) in 127 post(s)
YAY! Finally I made it. I am using Audacity to open the game sound and I saw a huge difference.
First thing first game support only 44100 Hz and Mono type. Mine is 48000 and Stereo so I converted it using Audacity and now it works in the game.

Thanks guys for the help. This is a new for me and many for someone else who might have trouble adding the sound files.
thanks 1 user thanked mr_hymn_ for this useful post.
CommieDog on 3/18/2017(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.