Makes projectile speed configurable in gun system (#10535)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user