IPB

Welcome Guest ( Log In | Register )

> Question about a script for cp_warpath
assface
post Sep 13 2009, 08:13 PM
Post #1


Member
**

Group: Members
Posts: 27
Joined: 22-June 09
Member No.: 1,580



I'm trying to do a script for cp_warpath and got stuck, I could really use some help... how the hell do you do this?

as blue: The cap order is Blue Checkpoint(area2), The Bridge(area3), The Red Checkpoint(area4), Final cap(area5).
as Red: the cap order is The Red Checkpoint(area4),The Bridge(area3), The Blue Checkpoint(area2), final cap(area1).

blue spawn---a1---a2---a3---a4---a5---red spawn.

It gets all messed up because of the first cap point.
If one team caps before the other; the other team will stop capping, defend to the bridge, and attack the point that the opposite team just capped. Also they wont go cap their checkpoint so they can cap the bridge.

How do you make it so after each team caps their first point, that part of the script isn't repeated?

here's what I got so far. (I'm just wingin it so if its really screwed thats why)

#
# RCBot2 Script Warpath CP
#
#
:setup_time:24
:on_reset:
blue_attack:2
blue_defend:2
red_attack:4
red_defend:4
areas:2,4
#
#
#
#:on_blue_cap:The Blue Checkpoint
#red_attack:
#red_defend:
#blue_attack:3
#blue_defend:2
#areas:
#:on_red_cap:The Red Checkpoint
#red_attack:3
#red_defend:4
#blue_attack:
#blue_defend:
#areas:
#
#
#
:on_blue_cap:The Bridge
red_attack:3
red_defend:4
blue_attack:4
blue_defend:3
areas:3,4
:on_red_cap:The Bridge
red_attack:2
red_defend:3
blue_attack:3
blue_defend:2
areas:2,3
#
#
#
:on_blue_cap:The Red Checkpoint
red_attack:4
red_defend:5
blue_attack:5
blue_defend:4
areas:4,5
:on_red_cap:The Red Checkpoint
red_attack:3
red_defend:4
blue_attack:4
blue_defend:3
areas:3,4
#
#
#
:on_blue_cap:The Blue Checkpoint
red_attack:2
red_defend:3
blue_attack:3
blue_defend:2
areas:2,3
:on_red_cap:The Blue Checkpoint
red_attack:1
red_defend:2
blue_attack:2
blue_defend:1
areas:1,2
#
#
#
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
DrPuffinKind
post Sep 13 2009, 09:54 PM
Post #2


RCBot Fan
****

Group: Members
Posts: 127
Joined: 3-August 09
Member No.: 1,638



QUOTE(assface @ Sep 13 2009, 04:13 PM) *

I'm trying to do a script for cp_warpath and got stuck, I could really use some help... how the hell do you do this?

as blue: The cap order is Blue Checkpoint(area2), The Bridge(area3), The Red Checkpoint(area4), Final cap(area5).
as Red: the cap order is The Red Checkpoint(area4),The Bridge(area3), The Blue Checkpoint(area2), final cap(area1).

blue spawn---a1---a2---a3---a4---a5---red spawn.

It gets all messed up because of the first cap point.
If one team caps before the other; the other team will stop capping, defend to the bridge, and attack the point that the opposite team just capped. Also they wont go cap their checkpoint so they can cap the bridge.

How do you make it so after each team caps their first point, that part of the script isn't repeated?

here's what I got so far. (I'm just wingin it so if its really screwed thats why)

#
# RCBot2 Script Warpath CP
#
#
:setup_time:24
:on_reset:
blue_attack:2
blue_defend:2
red_attack:4
red_defend:4
areas:2,4
#
#
#
#:on_blue_cap:The Blue Checkpoint
#red_attack:
#red_defend:
#blue_attack:3
#blue_defend:2
#areas:
#:on_red_cap:The Red Checkpoint
#red_attack:3
#red_defend:4
#blue_attack:
#blue_defend:
#areas:
#
#
#
:on_blue_cap:The Bridge
red_attack:3
red_defend:4
blue_attack:4
blue_defend:3
areas:3,4
:on_red_cap:The Bridge
red_attack:2
red_defend:3
blue_attack:3
blue_defend:2
areas:2,3
#
#
#
:on_blue_cap:The Red Checkpoint
red_attack:4
red_defend:5
blue_attack:5
blue_defend:4
areas:4,5
:on_red_cap:The Red Checkpoint
red_attack:3
red_defend:4
blue_attack:4
blue_defend:3
areas:3,4
#
#
#
:on_blue_cap:The Blue Checkpoint
red_attack:2
red_defend:3
blue_attack:3
blue_defend:2
areas:2,3
:on_red_cap:The Blue Checkpoint
red_attack:1
red_defend:2
blue_attack:2
blue_defend:1
areas:1,2
#
#
#

take a look at the script i did for cp_orange_x3 and for cp_purple_x if u use that model and plug in the correct info for your map... it should work ok... u may need to add setup time or what ev to make it match ur map... (i have not seen that map)

hope that helps
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Sep 13 2009, 11:14 PM
Post #3


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



QUOTE(DrPuffinKind @ Sep 13 2009, 10:54 PM) *

take a look at the script i did for cp_orange_x3 and for cp_purple_x if u use that model and plug in the correct info for your map... it should work ok... u may need to add setup time or what ev to make it match ur map... (i have not seen that map)

hope that helps


I understand this problem and I can tell that actually the current script system won't work with this layout of map, it needs to be edited so that different types of map (e.g. this, and gravelpit etc...) can work.

Need to think of a new system first
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


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: 21st June 2025 - 09:18 PM