Digital Paint Discussion Board
Development => Mapping => Topic started by: toM|vendettA on October 18, 2006, 08:23:09 PM
-
Jitspoe added .loc support into dp a while ago, and so far it has been relatively forgotten. The only person I have seen use it is myself and S8N. I imagine that this is because people find it challenging to make .locs.
I will explain how to make one for any maps. To start out making a .loc go into your map. For this purpose of this demonstration I will use propaint1.
We will only really need 3 basic commands. loc_add, loc_save, and $loc_here. Before you start type cl_drawlocs 1 in the console, this will display a grey diamond where you have added a location. Whichever location you are near than that diamond will bounce.
The first command, loc_add, is the main command. First I wanted to start with the blue spawn rooms on propaint1. I stood in a spawn room and in the console I typed
loc_add "spawn room" I then type "$loc_here" in the console, and sure enough in mm1 it displayed "Spawn room". I continued down from the spawn room and onto the flag, I stood there and typed
loc_add "flag"A new diamond popped up and that was set as my current location.
Because of the way DP figures out your location, if you are on the barrels in your base, and the only location you have added is the flag, it will say that you are at the flag no matter what. It is important to mark perimeters of certain items.
In the image below the green dots represent location's with the description "base", the pink dots represent locations with "ladder 1" (or 2), and red dots represent locations with the description of "backdoor barrels". You have to make a perimeter of descriptions around certain locations.
(http://img144.imageshack.us/img144/3231/oneflagtd8.jpg)
After you add all your locations throughout the map type "loc_save", it will then save your .loc file into your locs folder of your dp install. Tah dah, were done. Attached below is a demo and loc file for propaint1.
The Loc File:
http://upload.arena-zone.com/315815
The Demo File:
http://upload.arena-zone.com/240264
Enjoy
-
I need to tweak the loc system a bit so it won't select locations that are behind walls simply because they are closer.
-
ROFL. Just noticed what the blue barrels are shaped like. :P
-
Jitspoe: the perimeter method works fine for now, so its really not that big of a problem. And tinman, yeah I relized that when I was doing the drawing, but it had to be accurate :P
-
Very good job Thomas.
-
I dont understand how it will actually help ingame. what do you mean by 'recon' key. please respond here because i got glined from irc.
-
I was about to respond. But then this....
i got glined from irc.
Son that is not a badge of pride.
Press a button and it reports your position 'hopefully' in mm2.
Your welcome.
-
I dont understand how it will actually help ingame. what do you mean by 'recon' key. please respond here because i got glined from irc.
LOL, what did you do?
Anyways, gj tom!11
-
I dont understand how it will actually help ingame. what do you mean by 'recon' key. please respond here because i got glined from irc.
by recon key i mean you bind a key to "say_team $loc_here" and then insteda of $loc_here it says the nearest location you are at.
-
I dont understand how it will actually help ingame. what do you mean by 'recon' key. please respond here because i got glined from irc.
by recon key i mean you bind a key to "say_team $loc_here" and then insteda of $loc_here it says the nearest location you are at.
Drat! That's what it's really for? I thought it was to help the ACEBots navigate maps.
-
Because ACEBots TOTALLY know what 'Purple Low Spawn' means. ;)
-
well... you never know.
-
I understand it all except for the bind part. On pp1 i did "bind l say_team $loc_here" and all it did when i hit l was say the location i was at when i ORIGINALLY hit binded the key. Like if i was at blue cat when i did that bind, it would say blue cat where ever i was.
-
Here is a demo of what happened
http://upload.arena-zone.com/62043
Note: a little way in the 10 seconds thing happened =(
-
That's because when you're binding it, it's setting the bind to the value of $loc_here. Try binding it to $loc_here and see what happens, or put quotes around it if you didn't.
-
Could you give me an example of how to bind it. I dont understand the difference of the 2. I tried " " too.
-
I used to have a bind for $loc_here and $loc_there. Unfortunately, I can't remember, what you had to bind it to, though.
I'll see if I can find it somewhere else, stored in some subdirectories or whatever.
-
what you actually have to do is the following: first bind the current location to $loc_here, then print $loc_here out (I think that's what jitspoe tried to say in the first sentence there). I use the following command:
"$loc_here; say_team I AM $loc_here"
try to bind that to a key, it should work.
-
Also possible:
bind <key> say_team "$loc_here" or
bind <key> say_team "$loc_there"
$loc_here displays your current position, whereas $loc_there displays the next location in your field of view.
-
Yeah bitmate's method will work fine, as thats what I posted up at the top. And the $loc_there command would be cool if it would display where you were aiming at or where you had your crosshair on.
-
Yeah bitmate's method will work fine, as thats what I posted up at the top. And the $loc_there command would be cool if it would display where you were aiming at or where you had your crosshair on.
Isn't it doing that?
-
That's what it's supposed to do.