Add muzzle flare

This commit is contained in:
2021-10-31 13:04:18 +00:00
parent 502be6f64f
commit a6867b1fad
9 changed files with 80 additions and 34 deletions
+11
View File
@@ -7,6 +7,8 @@ import Dodge.Item.Attachment.Data
import Dodge.Item.Data
import Picture
import ShapePicture
import Linear.V3
defaultGun :: Item
defaultGun = Weapon
{ _itName = "default"
@@ -47,7 +49,16 @@ defaultGun = Weapon
, _itWorldTrigger = Nothing
, _itAimStance = OneHand
, _wpNumBarrels = 1
, _itDimension = defaultItemDimension
}
defaultItemDimension :: ItemDimension
defaultItemDimension = ItemDimension
{ _itDim = V3 4 4 4
, _itHandle = V3 2 2 2
, _itCenter = V3 2 2 2
, _muzzleLength = 5 -- how much the item projects out from the cr radius when aiming
}
defaultAutoGun :: Item
defaultAutoGun = defaultGun
{ _itInvDisplay = basicWeaponDisplay