Printable Version of Topic

Click here to view this topic in its original format

RCBot Forums _ TF2 _ Using rcbot in a tf2 mod?

Posted by: tryzombie501 Nov 12 2016, 07:53 PM

Alright i've played around with a source sdk 2013 mod that uses tf2 2007 code and rcbot spawns in as random classes on blue and red, But they don't move around they call medic when hurt and switch to shotgun when i get near them, I assume its because i need to tell them the new rcbot_runplayer_cmd_tf2.

How do i find out the offset?

Posted by: The HHH Nov 12 2016, 09:54 PM

Considering they're working but not moving around I'd say it's a waypoint issue, actually.
What mod are you using?

Posted by: tryzombie501 Nov 13 2016, 02:01 AM

QUOTE(The HHH @ Nov 12 2016, 09:54 PM) *

Considering they're working but not moving around I'd say it's a waypoint issue, actually.
What mod are you using?

I did this with lambda fortress but the waypoints load, However i noticed the puppet bots are supposed to move around randomly but they don't so maybe its a mod issue.

And i also plan to try this with tfclassic

Edit:
After more testing it might be the temp_bot code for the mod i'll let you guys know if i get them working.

Posted by: appleinsanity Jul 10 2017, 07:39 PM

QUOTE(tryzombie501 @ Nov 13 2016, 02:01 AM) *

I did this with lambda fortress but the waypoints load, However i noticed the puppet bots are supposed to move around randomly but they don't so maybe its a mod issue.

And i also plan to try this with tfclassic

Edit:
After more testing it might be the temp_bot code for the mod i'll let you guys know if i get them working.

can i ask you, how you got these bots to work on the 2013 sdk?

Posted by: Ted Jul 12 2017, 08:38 PM

QUOTE(tryzombie501 @ Nov 12 2016, 07:53 PM) *

Alright i've played around with a source sdk 2013 mod that uses tf2 2007 code and rcbot spawns in as random classes on blue and red, But they don't move around they call medic when hurt and switch to shotgun when i get near them, I assume its because i need to tell them the new rcbot_runplayer_cmd_tf2.

How do i find out the offset?


SourceMod maintainers keep an updated list of various offsets. Here are the ones specific for https://github.com/alliedmodders/sourcemod/blob/master/gamedata/sdktools.games/game.tf.txt.

QUOTE
can i ask you, how you got these bots to work on the 2013 sdk?


2013 SDK has a namespace collision against the C++ standard min/max, which is an issue with RCBot2 as it uses STL containers throughout the code base. The easiest way to deal with this is to clean up the SDK a bit. Specifically, any calls to min() or max() in any included headers (like mathlib.h) need to be changed to MIN() or MAX(), respectively. Any includes of minmax.h in header files should be removed and moved into dependent .cpp files (this should have been done in the first place by Valve).