Abstract out random offset for weapons

This commit is contained in:
2021-03-16 14:32:30 +01:00
parent f18bf2348a
commit 76a4731785
2 changed files with 13 additions and 19 deletions
+4 -2
View File
@@ -457,8 +457,10 @@ miniGun = defaultAutoGun
, _wpReloadState = 0
, _wpFireRate = 2
, _wpFireState = 0
, _wpFire = withWarmUp 50 $ torqueBefore 0.03 $ withSidePush 50 $ withRecoil 15
$ withOffsetAccVelWthHiteff' 9 0.1 (30,0) 2 bulletEffect'
, _wpFire = withWarmUp 50 . torqueBefore 0.03 . withSidePush 50 . withRecoil 15
. withRandomDir 0.1
. withRandomOffset 9
$ withVelWthHiteff (30,0) 2 bulletEffect'
, _wpSpread = autogunSpread
, _wpRange = 20
, _itFloorPict = onLayer FlItLayer $ color red $ polygon $ rectNESW 9 5 (-9) (-5)