Where can i get the Crit hit hud tga?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Locked
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Where can i get the Crit hit hud tga?

Post 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.
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

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

Post 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.)
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

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

Post 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")
}
User avatar
sim-al2
2nd Lieutenant
2nd Lieutenant
Posts: 412
Joined: Mon Jul 06, 2009 10:26 pm
Projects :: Mapping on occasion
Games I'm Playing :: SWBFII + MW4 + SC4
Location: In the cockpit of some vehicle...

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

Post 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.
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

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

Post by swado95 »

Well why would that be there and would there be a way to trigger it?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

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

Post by Teancum »

It would help if we had an idea of what you're wanting to do.
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

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

Post 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.)
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

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

Post 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.
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

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

Post by swado95 »

Ok im learning and this is part of my learning experience but what are some activate commands i guess you can say?
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

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

Post 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.
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

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

Post 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)
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

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

Post 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.
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

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

Post 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?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

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

Post 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.
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

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

Post 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.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

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

Post 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
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

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

Post 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
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

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

Post 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.
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

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

Post by swado95 »

ya that what im doing now i got my first code to work :D
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

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

Post 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.
Locked