Ejemplo n.º 1
0
        public void FillHudStatus(HUDPlayerState state)
        {
            InvWeapon weap = GetCurrentWeapon();

            if (weap == null)
            {
                state.ammoLoaded = 999;
                state.weaponName = "None";
                return;
            }
            state.weaponName = weap.GetDisplayName();
            state.ammoLoaded = weap.GetLoadedAmmo();
        }
Ejemplo n.º 2
0
        public void FillHudStatus(HUDPlayerState state)
        {
            IEquippable weap = GetCurrentWeapon();

            if (weap == null)
            {
                state.ammoLoaded = 999;
                state.weaponName = "None";
                return;
            }
            state.weaponName = weap.GetDisplayName();
            state.ammoLoaded = weap.GetLoadedAmmo();
            state.view.lerp  = weap.GetRefireLerp();
        }