mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-08 20:25:54 +00:00
Weapon sounds
This commit is contained in:
parent
22a1ec5ba2
commit
3c531bbe04
14 changed files with 174 additions and 52 deletions
|
|
@ -29,16 +29,15 @@ public partial class WeaponResource : Resource
|
|||
|
||||
[Export] public bool InfiniteAmmo = true;
|
||||
|
||||
|
||||
[Export] public StringName ItemKey;
|
||||
[Export] public StringName AmmoKey;
|
||||
#region Bullet spawn data
|
||||
[ExportCategory("Bullet Spawn Data")]
|
||||
[Export] public int BulletsPerShot = 1;
|
||||
|
||||
[Export] public float SpreadAngle = 0f;
|
||||
[Export] public float RandomSpread = 0f;
|
||||
|
||||
[Export] public StringName ItemKey;
|
||||
|
||||
#region Bullet spawn data
|
||||
|
||||
[Export] public StringName AmmoKey;
|
||||
[Export] public float RandomSpread = 0f;
|
||||
//[Export] public float BulletSpeed = 100f;
|
||||
//[Export] public float BulletDamage = 1;
|
||||
//[Export] public float LifeTime = 10f;
|
||||
|
|
@ -49,6 +48,11 @@ public partial class WeaponResource : Resource
|
|||
//[Export] private Array<Resource> _timeModifiers;
|
||||
|
||||
#endregion
|
||||
|
||||
[ExportCategory("Sounds")]
|
||||
[Export] public AudioStream ReloadSound { get; set; }
|
||||
[Export] public AudioStream ShootSound { get; set; }
|
||||
[Export] public AudioStream EmptySound { get; set; }
|
||||
|
||||
public BulletInfo MakeBullet(Vector2 position)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue