Coder Social home page Coder Social logo

Low Ammo Ind. Enable about tf2hud HOT 6 CLOSED

Excalvinur avatar Excalvinur commented on August 19, 2024
Low Ammo Ind. Enable

from tf2hud.

Comments (6)

Excalvinur avatar Excalvinur commented on August 19, 2024

-UPDATE-

I got the ammo text to turn red when I'm low, but when I gain ammo, the text is still red. Even when I change class or die, the text stayes red.

from tf2hud.

Excalvinur avatar Excalvinur commented on August 19, 2024

-UPDATE-

Messed around in the files some more, got it to work.

from tf2hud.

jbisbee avatar jbisbee commented on August 19, 2024

Can you provide the diff?

On Wed, Apr 8, 2015 at 5:36 PM Excalviner [email protected] wrote:

-UPDATE-

Messed around in the files some more, got it to work.


Reply to this email directly or view it on GitHub
#102 (comment).

from tf2hud.

Excalvinur avatar Excalvinur commented on August 19, 2024

I'm new to coding… what is diff? Sorry xD

from tf2hud.

jbisbee avatar jbisbee commented on August 19, 2024

Can you share the changes you've made?

On Mon, Apr 27, 2015, 8:10 PM Excalviner [email protected] wrote:

I'm new to coding… what is diff? Sorry xD


Reply to this email directly or view it on GitHub
#102 (comment).

from tf2hud.

Excalvinur avatar Excalvinur commented on August 19, 2024

Sure.


-----------------------This is what I had in my files when I got the hud for the first time----------------------------

event HudLowAmmoPulse
{
Animate HudWeaponLowAmmoImage Alpha "255" Linear 0.0 0.075
Animate HudWeaponLowAmmoImage Alpha "0" Linear 0.125 0.075

//Animate AmmoInClip            FgColor     "OmpAmmoClipLow1"   Linear 0.0 0.075
//Animate AmmoInClip            FgColor     "OmpAmmoClipLow2"   Linear 0.125 0.075

//Animate AmmoInReserve     FgColor     "OmpAmmoReserveLow1"    Linear 0.0 0.075
//Animate AmmoInReserve     FgColor     "OmpAmmoReserveLow2"    Linear 0.125 0.075

//Animate AmmoNoClip            FgColor     "OmpAmmoClipLow1"   Linear 0.0 0.075
//Animate AmmoNoClip            FgColor     "OmpAmmoClipLow2"   Linear 0.125 0.075

RunEvent HudLowAmmoPulseLoop    0.25

}

// call to loop HudLowAmmoPulse
event HudLowAmmoPulseLoop
{
RunEvent HudLowAmmoPulse 0.0
}

event HudLowAmmoPulseStop
{
StopEvent HudLowAmmoPulse 0.0
StopEvent HudLowAmmoPulseLoop 0.0

//Animate AmmoInClip        FgColor     "OmpAmmoClip"       Accel 0.0 0.0
//Animate AmmoInReserve FgColor     "OmpAmmoReserve"    Accel 0.0 0.0
//Animate AmmoNoClip        FgColor     "OmpAmmoClip"       Accel 0.0 0.0

}


-------------------------------This is what I came out with after messing around a bit--------------------------------

event HudLowAmmoPulse
{
Animate HudWeaponLowAmmoImage Alpha "255" Linear 0.0 0.075
Animate HudWeaponLowAmmoImage Alpha "0" Linear 0.125 0.075

Animate AmmoInClip          FgColor     "OmpAmmoClipLow1"   Linear 0.0 0.075
Animate AmmoInClip          FgColor     "OmpAmmoClipLow2"   Linear 0.125 0.075

Animate AmmoInReserve       FgColor     "OmpAmmoReserveLow1"    Linear 0.0 0.075
Animate AmmoInReserve       FgColor     "OmpAmmoReserveLow2"    Linear 0.125 0.075

Animate AmmoNoClip          FgColor     "OmpAmmoClipLow1"   Linear 0.0 0.075
Animate AmmoNoClip          FgColor     "OmpAmmoClipLow2"   Linear 0.125 0.075

RunEvent HudLowAmmoPulseLoop    0.25

}

//call to loop HudLowAmmoPulse
event HudLowAmmoPulseLoop
{
RunEvent HudLowAmmoPulse 0.0
}

event HudLowAmmoPulseStop
{
StopEvent HudLowAmmoPulse 0.0
StopEvent HudLowAmmoPulseLoop 0.0

Animate AmmoInClip      FgColor     "OmpAmmoClip"       Accel 0.0 0.0
Animate AmmoInReserve   FgColor     "OmpAmmoReserve"    Accel 0.0 0.0
Animate AmmoNoClip      FgColor     "OmpAmmoClip"       Accel 0.0 0.0

}

I don't know how to present these any better... sorry about that. Haven't had much experience on this website xD

from tf2hud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.