Page 1 of 1

Where can i get the Crit hit hud tga?

Posted: Sat Jul 03, 2010 6:42 pm
by swado95
Im trying to find the symbols tga for when u get a head shot or something. Dose anyone know where i could find it.

Re: Where can i get the Crit hit hud tga?

Posted: Sat Jul 03, 2010 7:16 pm
by Aman/Pinguin
It has no tga, you will have to edit the model hud_main_reticule_criticalhit.msh in BF2_ModTools\data_XXX\Common\mshs to change it.

(Well, the tga is hud_white.tga but thats just a plain white texture.)

Re: Where can i get the Crit hit hud tga?

Posted: Sat Jul 03, 2010 10:12 pm
by swado95
Am i able to change it using XSI?


Also is there, or where is a script that turns the Crit hit on and off.

I found this but i cant find something for it to activate the script.
Hidden/Spoiler:
Model3D("player1reticule_criticalhit")
{
Mesh("hud_main_reticule_criticalhit")
Scale(0.260000, 0.260000, 0.260000)
Alpha(0.600000)
Color(1, 86, 213)
ColorChangeRate(0.010000)
FadeHoldTime(0.600000)
FadeSustainTime(0.500000)
FadeOutTime(0.010000)
EventEnable("player1.weapon1.target.hitCritical")
EventColor("player1.weapon1.target.hitColor")
}

Re: Where can i get the Crit hit hud tga?

Posted: Sun Jul 04, 2010 12:12 am
by sim-al2
It's probably hardcoded since the critical hit is hardcoded to 3x damage for units and to me it would be logical to code it in with that.

Re: Where can i get the Crit hit hud tga?

Posted: Sun Jul 04, 2010 12:27 am
by swado95
Well why would that be there and would there be a way to trigger it?

Re: Where can i get the Crit hit hud tga?

Posted: Sun Jul 04, 2010 12:41 am
by Teancum
It would help if we had an idea of what you're wanting to do.

Re: Where can i get the Crit hit hud tga?

Posted: Sun Jul 04, 2010 12:50 am
by swado95
Trying to activate the hud bye some other means. And i see where ur coming from but it wouldn't make sense to have one part hard coded while the othere is not.

(Im trying to learn how to do scripting but there is very little to help me.)

Re: Where can i get the Crit hit hud tga?

Posted: Sun Jul 04, 2010 12:57 am
by FragMe!
Anything involving the HUD usually requires modifying the 1playerhud.hud and then making a custom ingame.req with the bits you want to change. Yes you can change the msh in XSI to make another one and maybe name it the same as the original but you still have to make a custom ingame.lvl inorder to see it in game. It is a lot like fixing floating custom weapon icons.

As for turning it on and off in game, other that not hitting the critical hit point on the unit you are shooting at, I don't think you can do it dynamically because as someone mentioned that part is probably had coded.

Re: Where can i get the Crit hit hud tga?

Posted: Sun Jul 04, 2010 1:04 am
by swado95
Ok im learning and this is part of my learning experience but what are some activate commands i guess you can say?

Re: Where can i get the Crit hit hud tga?

Posted: Sun Jul 04, 2010 1:10 am
by FragMe!
As Mav linked to in one of your other posts

http://www.secretsociety.com/forum/down ... erence.txt

These are all the commands you can use in lua scripts.

Re: Where can i get the Crit hit hud tga?

Posted: Sun Jul 04, 2010 1:16 am
by swado95
Well yes but that dosnt help me much im trying to figure out what script might activate another script. I mean its nice and all but i still dont know what 90% do (Trying to learn the basic commands)

Re: Where can i get the Crit hit hud tga?

Posted: Sun Jul 04, 2010 7:27 am
by Teancum
I'll be blunt. What you're wanting to do (if it's even possible) is too advanced for a first-time modder. You gotta start small, make a map or two, then expand. It sounds like you want to make something large scale, but you can't just jump into the deep end of the pool without learning to swim first.

If the link above doesn't help, it means you're not ready to try what you're doing. That's a fact. And you can't make that sort of dynamic call to the HUD with scripting anyway. SWBF2 wasn't built to be able to do that.

Re: Where can i get the Crit hit hud tga?

Posted: Sun Jul 04, 2010 12:07 pm
by swado95
Well im not new to modding at all ive been doing for like 4 years now. Ive made plenty of maps its just i never feel like posting them. Scripting is the only thing that i haven't tried yet that I would like to learn for a map/maps im going to make. (We all have to start sometime don't we?)

And i do know some its just im trying to learn how to link it together.


Would I be able to set the code as an object script then use ActivateObject code?

Re: Where can i get the Crit hit hud tga?

Posted: Sun Jul 04, 2010 3:15 pm
by Teancum
swado95 wrote:Well im not new to modding at all ive been doing for like 4 years now. Ive made plenty of maps its just i never feel like posting them.
Somehow I find that very hard to believe. You can't make maps without having learned a few things about scripting. If you have four years experience in modding you should be well ahead of most of us here.

Re: Where can i get the Crit hit hud tga?

Posted: Sun Jul 04, 2010 4:48 pm
by swado95
Yes i know some things like setting up side, changing heros,ect. But i haven't done more elaborate things like what im trying to do right now. Arnt we getting a little off topic cant u just help me solve this instead of playing 20 questions.

Re: Where can i get the Crit hit hud tga?

Posted: Sun Jul 04, 2010 6:10 pm
by DarthD.U.C.K.
swado95 wrote:Arnt we getting a little off topic cant u just help me solve this instead of playing 20 questions.
yes, this has gotten a bit offtopic, but only for the reason that you dont seem to pay attention to very very experienced modders who try to explain you that you may not be able to do this.
and this leads to the second problem: it cant be easily done by anybody and it will be a huge load of work.
do you expect the people here to spend a long time trying to it figure out for you?(="just help you solve this") because thats just what you are requesting. fragme already posted a link with the essential information you need, there is no simple magical command which will instantly solve this

Re: Where can i get the Crit hit hud tga?

Posted: Sun Jul 04, 2010 6:23 pm
by swado95
No im not expecting people to do all my work. Im trying to get some working codes that are semi basic (yes i am probably do a to complex one right now, and i should chose a new one) so i can see how they work.

Im sry if im being pushy right now, but showing me those codes only helped so much i really need a basic code to see how to link things together.

Ive been trying to learn on my own but when i try to make them there all basically random code smashed together with me hopeing they do something. And there is very little to go by on this website or even the internet for a matter of fact that doesn't have to do with garrys mod.

P.S i have all summer

Re: Where can i get the Crit hit hud tga?

Posted: Mon Jul 05, 2010 7:17 am
by ANDEWEGET
If you have all summer, why dont you go and learn those things step-by-step. Begin with small projects then advance. You wont understand the links if you get a 200 line-code.

Re: Where can i get the Crit hit hud tga?

Posted: Mon Jul 05, 2010 9:04 am
by swado95
ya that what im doing now i got my first code to work :D

Re: Where can i get the Crit hit hud tga?

Posted: Mon Jul 05, 2010 1:29 pm
by Teancum
*LOCKED*

Clearly even when we tell you it isn't possible you'll refuse to believe us. This is the second time we've had this issue with you. Be a little less rude if you want to stay around.