Fix bug where new sounds didn't overplay old sounds
This commit is contained in:
@@ -291,10 +291,11 @@ ltAutoGun = defaultAutoGun
|
||||
, _wpReloadState = 0
|
||||
, _itUseRate = 3
|
||||
, _itUseTime = 0
|
||||
, _itUse = \_ -> withSidePush 50 $ withVelWthHiteff (V2 30 0) 2 basicBulletEffect
|
||||
, _itUse = useAmmoParams
|
||||
, _itUseModifiers =
|
||||
[ shootWithSoundI 0
|
||||
, withRandomDirI 0.3
|
||||
, withSidePushI 50
|
||||
, withMuzFlareI
|
||||
]
|
||||
, _wpSpread = 0.5
|
||||
@@ -305,6 +306,7 @@ ltAutoGun = defaultAutoGun
|
||||
, _itZoom = defaultItZoom
|
||||
, _itEquipPict = pictureWeaponOnAim ltAutoGunPic
|
||||
, _itAimStance = OneHand
|
||||
, _wpAmmo = ltBullet
|
||||
}
|
||||
ltAutoGunPic :: Picture
|
||||
ltAutoGunPic = color green $ pictures
|
||||
@@ -319,9 +321,12 @@ miniGun = defaultAutoGun
|
||||
, _wpLoadedAmmo = 150
|
||||
, _wpReloadTime = 200
|
||||
, _wpReloadState = 0
|
||||
, _wpMaxWarmUp = 100
|
||||
, _itUseRate = 2
|
||||
, _itUseTime = 0
|
||||
, _itUse = \_ -> withWarmUp 50 . torqueBefore 0.03 . withSidePush 50 . withRecoil 15
|
||||
, _itUse = \_ -> withWarmUp 50
|
||||
. shootWithSoundFor 28 2
|
||||
. torqueBefore 0.03 . withSidePush 50 . withRecoil 15
|
||||
. withRandomDir 0.1
|
||||
. withRandomOffset 9
|
||||
. withMuzFlare
|
||||
|
||||
Reference in New Issue
Block a user