public void ShootEffects() { if (Local.Pawn == Owner) { _ = new Sandbox.ScreenShake.Perlin(0.5f, 2.0f, 0.2f); } }
protected virtual void ShootEffects() { Host.AssertClient(); Particles.Create("particles/pistol_muzzleflash.vpcf", EffectEntity, "muzzle"); if (Owner == Player.Local) { _ = new Sandbox.ScreenShake.Perlin(); } ViewModelEntity?.SetAnimParam("fire", true); CrosshairPanel?.OnEvent("fire"); }
protected override void ShootEffects() { Host.AssertClient(); Particles.Create("particles/pistol_muzzleflash.vpcf", EffectEntity, "muzzle"); Particles.Create("particles/pistol_ejectbrass.vpcf", EffectEntity, "ejection_point"); if (Owner == Player.Local) { _ = new Sandbox.ScreenShake.Perlin(0.5f, 4.0f, 1.0f, 0.5f); } ViewModelEntity?.SetAnimParam("fire", true); CrosshairPanel?.OnEvent("fire"); }