Ejemplo n.º 1
0
 public void ShootEffects()
 {
     if (Local.Pawn == Owner)
     {
         _ = new Sandbox.ScreenShake.Perlin(0.5f, 2.0f, 0.2f);
     }
 }
Ejemplo n.º 2
0
        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");
        }
Ejemplo n.º 3
0
        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");
        }