IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Bots that capture points @TF2, Okay Im being a total noob right now for asking probably
Kampy
post Nov 9 2009, 02:08 PM
Post #1


Newbie
*

Group: Members
Posts: 5
Joined: 9-November 09
Member No.: 1,742



Hi Ive added waypoints to my TF2 map, but I dont know how to write a rcs file. I couldnt find a tutorial explaining what to do. Maybe you can help me. The map structure is very simple:

QUOTE

Setup Time 2 min

Blue defends A
Red attacks A

after capturing A
(respawn) Setup Time 1 min

Blue defends B
Red attacks B

after capturing B
(respawn) Setup Time 1 min

Blue defends C
Red attacks C

after capturing C

Blue defends D
Red attacks D



I put the cp waypoints to capture, but how do I have to code this? how do I tell the bots which waypoint is which and most importantly how to write this rcs?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
NifesNforks
post Nov 9 2009, 02:51 PM
Post #2


Advanced Member
***

Group: Members
Posts: 69
Joined: 17-January 09
From: Stockholm, Sweden
Member No.: 1,450



First if you have not done this, use "rcbot waypoint setarea 1" on A, "rcbot waypoint setarea 2" on B, "rcbot waypoint setarea 3" on C and "rcbot waypoint setarea 4" on D.

Join the attacking team, write "rcbot debug gameevent 1" in console. Go capture point A, In the console it should say some info and stuff, there should also be a cpname=NAME. Write the name down on a paper or something if you dont have a kickass memory. Do this on each control point.

The script should look like this:

QUOTE
:setup_time:120
:on_reset:
:setup_time:120
blue_attack:0
blue_defend:1
red_attack:1
red_defend:0
areas:1

:on_red_cap:name of the first cap
:setup_time:60
red_attack:2
red_defend:0
blue_attack:0
blue_defend:2
areas:2

:on_red_cap:name of the second cap
red_attack:3
red_defend:0
blue_attack:0
blue_defend:3
areas:3

:on_red_cap:name of the third cap
red_attack:4
red_defend:0
blue_attack:0
blue_defend:4
areas:3,4

I'm a little unsure about the setup time changing, but I think this would work.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Kampy
post Nov 9 2009, 05:44 PM
Post #3


Newbie
*

Group: Members
Posts: 5
Joined: 9-November 09
Member No.: 1,742



Thank you very much. You've been a big help. I guess using "rcbot debug gameevent 1" I will have to use 1 for A then 2 for B and so on.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

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

 



- Lo-Fi Version Time is now: 26th June 2025 - 11:16 PM