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; } }
public void StartFx(float scale) { if (!_ptfx.IsLoaded) { _ptfx.Load(); } _ptfx.Start(this, scale); _ptfx.Colour = System.Drawing.Color.Black; }
public void StartFx(float scale) { if (!_ptfx.IsLoaded) { _ptfx.Load(); } _ptfx.Start(this, scale); // _ptfx.Alpha = 0.5f; }
public void StartFX() { if (!ptfx.IsLoaded) { ptfx.Load(); } ptfx.Start(new Prop(Handle), 2.4f); tickTime = Game.GameTime + 800; timerActive = true; }