Пример #1
0
        /// <summary>
        /// Start particle fx on the entity
        /// </summary>
        public void StartFX()
        {
            if (!ptfx.IsLoaded)
            {
                ptfx.Load();
            }

            ptfx.Start(new Prop(Handle), 4f);
            tickTime    = Game.GameTime + MaxAliveTime;
            timerActive = true;
        }
Пример #2
0
        public void DoFireExtinguisher()
        {
            if (engineRepairRecharge.Enabled || engineFX1.Exists)
            {
                return;
            }

            PlayEquipSound(0);

            if (!engineFX1.IsLoaded)
            {
                engineFX1.Load();
            }

            engineSound.Play(ManagedVehicle);
            engineFX1.Start(ManagedVehicle.Vehicle, 4f, new Vector3(0f, 1f, 0), new Vector3(89.5f, 0f, 0), (Bone)Function.Call <int>((Hash)0xFB71170B7E76ACBA, ManagedVehicle.Handle, "afterburner")); // ENTITY::GET_ENTITY_BONE_INDEX_BY_NAME
            Function.Call((Hash)0xDCB194B85EF7B541, engineFX1.Handle, 3000.0f);
            engineFXTimer.Start();
            UIManager.SetHUDIcon(0, false);
        }