Abstract out random offset for weapons
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user