Пример #1
0
    // Another cheat mode function, will give all to Players. DevMenu
    //
    public void SetPlayerInventoryAll(bool bState)
    {
#if GDEBUG
        GAssert.Assert(null != m_gcInventory, "Player Inventory not set!");
        if (bState)
        {
            m_gcInventory.AddAll();
            if (m_gcEquippedWeapon != m_gcInventory.GetEquippedWeapon())
            {
                m_gcEquippedWeapon.SetCanFire(false);
                m_gcEquippedWeapon = m_gcInventory.GetEquippedWeapon();
            }
            // Update the cached speed multiplier
            m_fCachedMovementSpeed = m_fPlayerMovementSpeed + (m_fPlayerMovementSpeedPowerUp * m_gcInventory.GetSpeedMultiplier());
        }
        else
        {
            m_gcInventory.SetDefaults();
        }
#endif
    }