Muzzle flash enhancements (#9527)

This commit is contained in:
metalgearsloth
2022-07-14 23:03:48 +10:00
committed by GitHub
parent 2341d97ece
commit cd4b7bd85c
6 changed files with 134 additions and 45 deletions

View File

@@ -15,8 +15,8 @@ public class AmmoComponent : Component, IShootable
{
// Muzzle flash stored on ammo because if we swap a gun to whatever we may want to override it.
[ViewVariables, DataField("muzzleFlash")]
public ResourcePath? MuzzleFlash = new ResourcePath("Objects/Weapons/Guns/Projectiles/projectiles.rsi/muzzle_bullet.png");
[ViewVariables(VVAccess.ReadWrite), DataField("muzzleFlash", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
public string? MuzzleFlash = "MuzzleFlashEffect";
}
/// <summary>