IPB

Welcome Guest ( Log In | Register )

> Working With Waypoints, A couple of modification questions...
Swoop
post Mar 22 2006, 12:50 AM
Post #1


Newbie
*

Group: Members
Posts: 9
Joined: 22-March 06
From: Colorado
Member No.: 702



Hi.

I had two questions about waypointing.

1. I have taken the commandmenu.txt file from Sven Coop and have added some functions for quickly adding waypoints, entering into "edit mode (authenticate, godmode, noclip, waypoints on...), etc, and was wondering how I either send a command to choose the menu items from the waypoint_menu OR actually send the command to perform the same function. For example, in command_menu.txt, I have a whole section on adding flasg to existing waypoints. I tried to say "waypoint_menu; 2; 1" and the waypoint menu fails to catch the keystroke to add a JUMP flag. What's the best way to do this? Is there a function I could replace all of that with, such as "addflag wl_jump"?

2. Second Question: I think it would be AWESOME if you could use the crosshair from your weapon to select and view individual waypoints in the vicinity, exactly the same way you would do it now by walking up to the waypoint, but you wouldn't have to ncessarily move around as much; just aim and seloect. wink.gif

So, how hard would it be to check what the crosshair is centered on and show the paths to that waypoint in focus? I would even try it myself if it isn't too much of a doozie to code. wink.gif


Thanks for your time,
Swoop
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
Swoop
post Mar 23 2006, 07:33 AM
Post #2


Newbie
*

Group: Members
Posts: 9
Joined: 22-March 06
From: Colorado
Member No.: 702



Hi Cheeseh.

Thanks for the reply.

-menuselect was the ticket. That worked great! The only thing I needed to add was an extra 'menuselect' for the exit function of the menu, since it stayed open after choosing my commands (ie, "rcbot waypoint_menu; menuselect 2; menuselect 1" chooses the right options but the menu doesn't close afterwards.)

So, thanks for the help there.

I am still trying to read over everything to see how I could show waypoint info by simply facing it (under reticle/crosshair on screen), like in what the UTIL_FacingEnt function SEEMS to do, at first glance.

It would be ideal if I could find where the code is for getting back the info on a player in view, which displays in green text in the lower left of the screen in multiplayer. This data shows the player name, score, health, and "friendly status." I am not sure if this is built into the engine or is available in the SDK as well.

Any additional ideas?

Thanks again for your help,
Alan

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 12th September 2025 - 01:45 AM