Sound Doesnt Work
Posted: Tue Jan 09, 2007 1:34 am
I cant get my gun to work. Everything is defined and the sounds are all 16bit mono.
here is my weapon log:
I can only think that it could be because the gun has NO animations what so ever. Do I need to add an Idle animation to make the gun work? The gun not only doesnt mke sound but also doesnt make and gunshot either.
here is my weapon log:
Code: Select all
;*********************************************************
; Weapon.ini
;
; definitions of all projectiles used in the game
;
; definitions of weapons used by the player
;*********************************************************
;*********************************************************
;
; Projectiles
;
;*********************************************************
;*********************************************************
; 9mm
;*********************************************************
[9mm]
type = projectile
actor = projectile\w_bullet.act
rotation = 0 -90 90
scale = 0.1
gravity = false
bounce = false
speed = 3500
lifetime = 1
boundingbox = 1
explosion = BulletExplosion
actorexplosion = BulletExplosion
showboth = false
attachactor = false
bonelevel = true
damage = 20
altdamage = 10
explosionradius = 128
explosiondamage = 0
decal = 0
movesound = weapon\move2.wav
impactsound = impact\ricochet\1.wav
;*********************************************************
;
; Player Weapons
;
;*********************************************************
;*********************************************************
; p99
;*********************************************************
[p99]
type = weapon
slot = 0
firerate = 0.25
catagory = projectile
projectile = 9mm
attribute = enemy_health
ammunition = 9mm
ammopershot = 1
shotpermagazine = 12
worksunderwater = true
attacksound = weapon\deagle.wav
reloadsound = weapon\generic_reload.wav
emptysound = weapon\click.wav
muzzleflash3rd = MuzzleFlash
;
; 1st person
;
viewactor = Weapon\p99.act
viewfillcolor = 255 255 255
viewambientcolor = 255 255 255
viewrotation = -90 180 -58.8
viewoffset = 2.80 2.10 2.20
viewscale = 0.18
viewlaunchoffset = 0 0 25
viewlaunchbone = Bip01 R Hand
viewanimationspeed = 1
viewarmanim = idle
viewidleanim = idle
viewattackanim = idle
viewaltattackanim = idle
viewhitanim = idle
viewalthitanim = idle
viewwalkanim = idle
muzzleflash = MuzzleFlash1
crosshair = crosshair.bmp
crosshairalpha = a_crosshair.bmp
crosshairfixed = true
allowlitcrosshair = true
crosshairlitcolor = 255 0 0
zoomamount = 2
zoomoverlay = zoomlow.bmp
zoomoverlayalpha = a_zoomlow.bmp
allowzoommove = false
recoilamount = 10
recoildecay = 5
bobamount = 10
viewreloadanim = idle
viewkeyreloadanim = idle
viewattackemptyanim = idle
environmentmapping = false
allmaterial = false
percentmapping = 0
percentmaterial = 0
;
; 3rd person
;
playeractor = weapon\p99.act
playerfillcolor = 128 128 128
playerambientcolor = 128 128 128
playerrotation = -90 180 0
playerscale = 1
playerlaunchoffset = 0 0 25
playerbone = BIP01 R HAND