Makes projectile speed configurable in gun system (#10535)

This commit is contained in:
AJCM-git
2022-08-11 22:49:46 -04:00
committed by GitHub
parent ccb3fd5d91
commit 3f74141c93
2 changed files with 12 additions and 6 deletions

View File

@@ -85,6 +85,12 @@ public class GunComponent : Component
[ViewVariables(VVAccess.ReadWrite), DataField("fireRate")]
public float FireRate = 8f;
/// <summary>
/// How fast the projectile moves.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("projectileSpeed")]
public float ProjectileSpeed = 20f;
/// <summary>
/// When the gun is next available to be shot.
/// Can be set multiple times in a single tick due to guns firing faster than a single tick time.