Beispiel #1
0
    protected override void ShootEffects()
    {
        Host.AssertClient();

        if (Owner == Player.Local)
        {
            new Sandbox.ScreenShake.Perlin(0.5f, 4.0f, 1.0f, 0.5f);
        }

        ViewModelEntity?.SetAnimParam("fire", true);
        CrosshairPanel?.OnEvent("fire");
    }
Beispiel #2
0
    protected virtual void DoubleShootEffects()
    {
        Host.AssertClient();

        Particles.Create("particles/pistol_muzzleflash.vpcf", EffectEntity, "muzzle");

        ViewModelEntity?.SetAnimParam("fire_double", true);
        CrosshairPanel?.OnEvent("fire");

        if (Owner == Player.Local)
        {
            new Sandbox.ScreenShake.Perlin(3.0f, 3.0f, 3.0f);
        }
    }
Beispiel #3
0
    protected virtual void ShootEffects()
    {
        Host.AssertClient();

        Particles.Create("particles/pistol_muzzleflash.vpcf", EffectEntity, "muzzle");

        if (IsLocalPawn)
        {
            new Sandbox.ScreenShake.Perlin();
        }

        ViewModelEntity?.SetAnimParam("fire", true);
        CrosshairPanel?.OnEvent("fire");
    }
Beispiel #4
0
Datei: SMG.cs Projekt: cr4yz/dm98
    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");
    }
Beispiel #5
0
        protected virtual void ShootEffects()
        {
            Host.AssertClient();

            Log.Info($"{EffectEntity} {ViewModelEntity} {IsFirstPersonMode} {CurrentView.Viewer} parent:{Parent}");
            Particles.Create("particles/pistol_muzzleflash.vpcf", EffectEntity, "muzzle");

            if (IsLocalPawn)
            {
                new Sandbox.ScreenShake.Perlin();
            }

            ViewModelEntity?.SetAnimBool("fire", true);
            CrosshairPanel?.OnEvent("fire");
        }
Beispiel #6
0
    public virtual void ShootEffects()
    {
        Host.AssertClient();

        var  muzzle  = EffectEntity.GetAttachment("muzzle");
        bool InWater = Physics.TestPointContents(muzzle.Pos, CollisionLayer.Water);

        Sound.FromEntity("rust_pistol.shoot", this);
        Particles.Create("particles/pistol_muzzleflash.vpcf", EffectEntity, "muzzle");

        ViewModelEntity?.SetAnimParam("fire", true);
        CrosshairPanel?.OnEvent("onattack");

        if (Owner == Player.Local)
        {
            new Sandbox.ScreenShake.Perlin(0.5f, 2.0f, 0.5f);
        }
    }
Beispiel #7
0
    protected override void ShootEffects()
    {
        Host.AssertClient();

        var muzzle = EffectEntity.GetAttachment("muzzle");

        //bool InWater = Physics.TestPointContents( muzzle.Pos, CollisionLayer.Water );
        Sound.FromEntity(AttackSound.Name, this);

        Particles.Create("particles/balloon_grenade_launcher_muzzle.vpcf", EffectEntity, "muzzle");
        ViewModelEntity?.SetAnimParam("fire", true);
        CrosshairPanel?.OnEvent("onattack");

        if (Owner == Local.Client)
        {
            new Sandbox.ScreenShake.Perlin(0.5f, 2.0f, 0.5f);
        }
    }