Upvote Upvoted 1 Downvote Downvoted
Crosshairhelpples
posted in Q/A Help
1
#1
0 Frags +

So I got this crosshair (I believe its viles) and i'm trying to figure out if it is possible to animate (make it pulse on hit) it. I already animated the wings

http://i.imgur.com/J20qod2.png

Thanks in advance.

So I got this crosshair (I believe its viles) and i'm trying to figure out if it is possible to animate (make it pulse on hit) it. I already animated the wings

[IMG]http://i.imgur.com/J20qod2.png[/IMG]


Thanks in advance.
2
#2
0 Frags +

In the hud animations file under event DamagedPlayer between the {} brackets put your crosshair name like so:

event DamagedPlayer
{
Animate YourCrosshairName FgColor "255 0 0 255" Linear 0.0 0.00000
Animate YourCrosshairName FgColor "255 255 0 255" Linear 0.30 0.15001
}

You can obviously change the colours and duration of the change by editing 255s and 0s to different values for colours and numbers after Linear for time.

In the hud animations file under event DamagedPlayer between the {} brackets put your crosshair name like so:

event DamagedPlayer
{
Animate YourCrosshairName FgColor "255 0 0 255" Linear 0.0 0.00000
Animate YourCrosshairName FgColor "255 255 0 255" Linear 0.30 0.15001
}

You can obviously change the colours and duration of the change by editing 255s and 0s to different values for colours and numbers after Linear for time.
3
#3
0 Frags +

It is different for every side of the crosshair. For ex:

the upper one is "greentop" left is "lightgreen" and so on. Should I animate every single on? I tried it before didn't work

It is different for every side of the crosshair. For ex:

the upper one is "greentop" left is "lightgreen" and so on. Should I animate every single on? I tried it before didn't work
4
#4
0 Frags +

You'd have to animate all of them. If you got the konr wings to animate then it should be the same process for getting each part of the crosshair to animate. The name in the hudanimations file refers to the fieldname of the crosshair/element, not the actual name on top of the entry in the hudlayout.res file.

I would also like to note that I have noticed that if you animate too many elements by damage done, a bit of lag is introduced. I've found that it's negligible up to about 3 or 4 elements, after that the fps drops are somewhat substantial.

You'd have to animate all of them. If you got the konr wings to animate then it should be the same process for getting each part of the crosshair to animate. The name in the hudanimations file refers to the fieldname of the crosshair/element, not the actual name on top of the entry in the hudlayout.res file.

I would also like to note that I have noticed that if you animate too many elements by damage done, a bit of lag is introduced. I've found that it's negligible up to about 3 or 4 elements, after that the fps drops are somewhat substantial.
5
#5
0 Frags +

can't figure it out can someone just do it for me pls?

Show Content
can't figure it out can someone just do it for me pls?

[spoiler]my crosshair:https://www.dropbox.com/s/31io14bpie862sc/crosssss.txt[/spoiler]
6
#6
0 Frags +

Make sure each as it's own "fieldname" entry. Some of those sections don't have any so you'll have to add them. It doesn't matter what you call them just as long as they aren't the same as any other "fieldname". You don't have to worry about the sections that have a color of 0 0 0 255 as those are the black outlines.

The lines would loook like this:

"fieldname" "whateveryoudecide"

It's better if you learn it rather than someone else doing it so you will have the knowledge to do it again if needed. (and reduce the amount of "plshlepcrosshair wont trun red watdo" threads)

Make sure each as it's own "fieldname" entry. Some of those sections don't have any so you'll have to add them. It doesn't matter what you call them just as long as they aren't the same as any other "fieldname". You don't have to worry about the sections that have a color of 0 0 0 255 as those are the black outlines.

The lines would loook like this:

"fieldname" "whateveryoudecide"

It's better if you learn it rather than someone else doing it so you will have the knowledge to do it again if needed. (and reduce the amount of "plshlepcrosshair wont trun red watdo" threads)
7
#7
0 Frags +

pls dont be mean and thanks ill try it

pls dont be mean and thanks ill try it
8
#8
0 Frags +

So i changed the fieldnames of each part and I have this in my hudanimations_tf

Show Content
http://pastebin.com/YYpyHugz still doesn't work :s
So i changed the fieldnames of each part and I have this in my hudanimations_tf

[spoiler]http://pastebin.com/YYpyHugz still doesn't work :s[/spoiler]
9
#9
0 Frags +

Are you sure those are the fieldnames of the crosshair in your hudlayout.res?

Are you sure those are the fieldnames of the crosshair in your hudlayout.res?
10
#10
0 Frags +

yes

Show Content
http://pastebin.com/QzwLvQnv - that's the part of crosshair in my hudlayout
yes

[spoiler]http://pastebin.com/QzwLvQnv - that's the part of crosshair in my hudlayout[/spoiler]
11
#11
0 Frags +

Change their ControlNames from "ImagePanel" to "CExLabel"

Change their ControlNames from "ImagePanel" to "CExLabel"
12
#12
0 Frags +

So I changed the controlname to CExLabel annnnd this is what I got

http://i.imgur.com/zhb0orH.png

So I changed the controlname to CExLabel annnnd this is what I got

[IMG]http://i.imgur.com/zhb0orH.png[/IMG]
13
#13
0 Frags +

Oh, nevermind. I thought it was an actual crosshair font file. I don't think you can animate them then, as they are actual image panels.

Oh, nevermind. I thought it was an actual crosshair font file. I don't think you can animate them then, as they are actual image panels.
14
#14
0 Frags +

ohwell, thanks for the help anyways

ohwell, thanks for the help anyways
15
#15
0 Frags +

The color field for imagepanels is called fillcolor, not fgcolor. You're animating the wrong thing.

The color field for imagepanels is called fillcolor, not fgcolor. You're animating the wrong thing.
16
#16
0 Frags +

So i changed it to this

Show Content
http://pastebin.com/H9Tvju3A annnd still not working

Tried both fillcolor and fgcolor on first line

So i changed it to this

[spoiler]http://pastebin.com/H9Tvju3A annnd still not working[/spoiler]

Tried both fillcolor and fgcolor on first line
Please sign in through STEAM to post a comment.