i think i can get elevators working in CS_SIEGE
anyway, to get on the buttons:
as you said, on touch buttons you simply need a clever waypoint placement. FOr use buttons its actually the same. In fact, you can stand 'pretty far' to a use button!
What i do is like with hostages to use them:
- get near button
- use it
- set
timer
- resume path to goal x
about the timer,
i use a simple fUseButton timer, when the timer is below gpGlobals->time , the bot is allowed to use a button. When it is above, it is not.
For multiple bots using a button and such, id on't see the problem really? I Have been playing de_prodigy and de_rats with dozends of bots, but did not encounter a problem.
Perhaps it is because my bots will ONLY use a button when it finds an obstruction in its path! It is not programmed to use a button BEFORE it hits the door. It goes the other way around:
- bot walks to waypoint/node
- bot traces a line to this waypoint/node
- when the traceline gets a hit to an entity read out what it is
- when it is a door only THEN start the 'find button and go to it' procedure. In this procedure the bot will also remember the button
when the bot has a button to remember it will also execute the 'what to do with the button when i am close'.