![]() |
![]() |
BigBadWoLf |
![]() ![]()
Post
#1
|
Member ![]() ![]() Group: Members Posts: 27 Joined: 31-January 04 Member No.: 213 ![]() |
The marine bots don't seem to upgade weapons and armor, but the wierd thing is, i saw one upgrade into HA(ns 3.0 beta1)
![]() |
![]() ![]() |
Chichou |
![]()
Post
#2
|
||||||||
Member ![]() ![]() Group: Members Posts: 23 Joined: 29-May 04 From: france Member No.: 305 ![]() |
I tried to code something for combat with your source code, but i am a noob C++ coder, so all i do is crap : So I added this in the middle of the Think function
and this with the other sections with deal with tasks... The bots choose upgrades in this order, using impulses (anyone know which thing indicates whether the bot has taken resuppply ?) the PointsFree may be used to choose upgrades...
The result is that marines take upgrades, but as I don't know how to get points, the comparison between level and points become useless, and the bots get stuck in the "marine upgrade task" (which i added with the other tasks) Actually the offset for getting points may be wrong, or i take it with the wrong edict, i tried with the one which can be found in the 'NS coding FAQ', and also with the one for beta 4a which i found on the modns.org forum. Oh, and i forgot to tell you, you forgot a star here :
because the value returned should a pointer. And in the code which returns level there is a '/100' missing, so it always think the bot has lvl10... But it is the old source code, and you may have fixed all this... and the impulse codes which are in the ui.txt (already set as constants in your code) :
|
||||||||
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 14th September 2025 - 04:54 PM |