Exemplo n.º 1
0
        public void Start()
        {
            if (IsActive)
            {
                return;
            }

            if (Game.GameTime - effectStartTime > TotalEffectTime + CooldownTime)
            {
                Bone boneIdx = (Bone)Function.Call <int>((Hash)0xFB71170B7E76ACBA, Player.Vehicle.Ref.Handle, "afterburner");

                extingusherPtx.Start(Player.Vehicle.Ref, 4f, new Vector3(0f, 1f, 0), new Vector3(89.5f, 0f, 0), boneIdx);

                extingusherPtx.SetEvolution("LOD", 2000.0f);

                extinguisherSfx.Play(Player.Vehicle.Ref);

                //   if (Player is LocalPlayer)
                //  {
                var soundMgr = ScriptThread.GetOrAddExtension <SoundManager>();

                soundMgr.PlayExternalSound(Properties.Resources.defense_equip);
                // }

                effectStartTime = Game.GameTime;

                bCooldownActive = true;

                wasActive = true;
            }
        }
Exemplo n.º 2
0
        public void StartFx(float scale)
        {
            if (!_ptfx.IsLoaded)
            {
                _ptfx.Load();
            }

            _ptfx.Start(this, scale);

            _ptfx.Colour = System.Drawing.Color.Black;
        }
Exemplo n.º 3
0
        public void StartFx(float scale)
        {
            if (!_ptfx.IsLoaded)
            {
                _ptfx.Load();
            }

            _ptfx.Start(this, scale);

            // _ptfx.Alpha = 0.5f;
        }
Exemplo n.º 4
0
        public void StartFX()
        {
            if (!ptfx.IsLoaded)
            {
                ptfx.Load();
            }

            ptfx.Start(new Prop(Handle), 2.4f);

            tickTime    = Game.GameTime + 800;
            timerActive = true;
        }