Team Names and Weapon Selection

  • Thread starter Thread starter therealescher
  • Start date Start date
T

therealescher

Guest
(This is in the HL2MP SDK)

Alright, I have two hopefully basic questions. I think have all the filenames right, but I'm at work right now and going from memory.

Team Names: I've looked around in every .res / .txt file I could and I can't seem to find where the team names are set. I've also pulled the deathmatch english localization file out of the GCF and modified it, but it doesn't actually declare "Rebels" and "Combine" as the two team names. It seems like it should be somewhere outside of the code, but I might be wrong. In any case, I'm guessing that I'm just overlooking something stupid.

Weapon Display on the HUD: Where is it specified how weapon switching is displayed on the HUD? I've editted the HudLayout.res and HudAnimations.txt files and moved the weapon bar to the bottom and changed sizes and spacing, but I'm not sure where to make the changes so that the active choices pop up above the bar instead of below it. I've also looked through hud_weapon_selection.cpp and didn't see anything, but by that point I was a little burnt out so I might have missed it.

Thanks in advance.
 
Team names are hardcoded, as far as I know. Search the source code for "Combine" or "Rebels".

-Angry Lawyer
 
Angry Lawyer said:
Team names are hardcoded, as far as I know. Search the source code for "Combine" or "Rebels".

-Angry Lawyer

I'm 99.99% sure that I already got every reference, at least for all case combinations of "rebel." Combine I haven't touched yet because of all the code associated with NPCs and such... that'll be a project when I'm really bored. :)

Thanks for the suggestion though, and I'll double-check when I get home, just to be sure.
 
They're definately hardcoded, because I had to change them for Zombie Master.

-Angry Lawyer
 
Angry Lawyer said:
They're definately hardcoded, because I had to change them for Zombie Master.

-Angry Lawyer

Well, now that I'm home and can look, you're right that team names seem to be hardcoded (as "char *sTeamNames[]" inside hl2mp_gamerules.cpp). The reason I didn't think that was right is because I have them updated in there, and yet ingame it still shows Rebels and Combine.

Is there another place that I'm missing?
 
It's the only place, as far as I know.

Just as an aside, are you sure it compiled?

-Angry Lawyer
 
Angry Lawyer said:
It's the only place, as far as I know.

Just as an aside, are you sure it compiled?

-Angry Lawyer

Well, color me embarassed. I installed two codebases (for version control) and I was doing the code changes in the one that I wasn't actually running.

Thanks for the help.
 
Back
Top