View Full Version : Control Point HUD Layout
Half-Life_Maniac
11-30-2007, 10:55 PM
Hello,
My first problem for you is so;
I've got 5 command points which I want to layout on the HUD sort of like this:
1_2
_3_
4_5
Instead of the usual 1 2 3 4 5
I know that I'm supposed to use the "cap layout" field of the team_control_point_master, but I've only got strange (http://img227.imageshack.us/img227/4259/brokenhudrj9.gif) results so far. The format I've used is "1 2,3,4 5"
boooooom3
12-02-2007, 03:20 AM
The CP index starts with a "0", not with "1".
So it should be "0 1,2,3 4". :)
Half-Life_Maniac
12-02-2007, 03:34 AM
That's only if you actually gave your first cap point an index of 0. My first starts at 1.
boooooom3
12-02-2007, 03:50 AM
Try to make your CPs start at 0 then.
Hampster
12-02-2007, 01:37 PM
Try using the square brackets, e.g. <1 2, 3, 4 5>
A Boojum Snark
12-02-2007, 02:04 PM
That's only if you actually gave your first cap point an index of 0. My first starts at 1.
You must start at 0. It's just the way it's coded (and lots of code related things like to have stuff start at 0)
Brackets are not needed, they just used them in the entity description.
Half-Life_Maniac
12-02-2007, 09:00 PM
Well, my current test map has the first cap point with an index of 1, and I have not seen any problems so far. I used an index of 0 in the past (since I did read somewhere that you should) but that was before I redid all my points and got them working. I'll see what happens if I do use 0...
Also, A Boojum Snark- I remember you from teh VERC!
[UPDATE] Well, would you look at that. It actually works! Got the HUD, and my non-linear cap points are still working.
A Boojum Snark
12-02-2007, 09:50 PM
Heh, now that you mention it I do vaguely recall someone of your name over there. :)
Shmitz
12-02-2007, 11:56 PM
Actually, checking Valve maps, they start their indexes at 1, not 0.
Incidentally, I don't know if this has anything to do with your problem getting fixed, but I noticed on gravelpit the new line had a space after the comma, while the sequence in your original post has no spaces after the commas. It may just simply be a matter of parsing.
A Boojum Snark
12-03-2007, 12:08 AM
Curious. If it is the spacing that's the problem I wonder why making it 0 seems to fix it too. (I had this same problem...)
Half-Life_Maniac
12-03-2007, 04:52 AM
I used the same string as posted above. All I changed on the map is the index of each of the command points (starting at 0).
vBulletin® v3.8.2, Copyright ©2000-2013, Jelsoft Enterprises Ltd.