Server Help

Bot Questions - CTF plugin

Zofo - Mon Sep 01, 2008 4:29 pm
Post subject: CTF plugin
I configured the ctf plugin edited by purge, and the flags do not respond to the exact coords in which i put them. Also, when you capture the flag and return it to your base, you cannot drop the flag to win.

; ctf.dll
; [Edited by Purge]

; Required settings:
; [Flag]FlagDropDelay=? <- Set really high if your [Game]Timer=0, else set =[Game]Timer * 100
; [Flag]FlaggerOnRadar=1 <- So people can compete
; [Flag]CarryFlags=2 <- Only carry one flag at a time, important if one flagger kills another flagger
; [Flag]FlagMode=1 <- Warzone style
; [Flag]FlagReward=0 <- Never win jackpot
; [Flag]MaxFlags=2 <- Two teams, two flags
; [Flag]FlagTerritoryRadius=1 <- Admiral Kirk says this is optimum
; [Flag]FlagTerritoryRadiusCentroid=1
; [Flag]NoDataFlagDropDelay=32767 <- Bot has trouble with these settings
; [Flag]FlagBlankDelay=32767 <- Bot has trouble with these settings
; [Team]MaxFrequency=2 <- two teams only are supported right now
; [Team]MaxPerTeam=255
; [Team]DesiredTeams=2
; [Team]ForceEvenTeams=0 <- ONLY NECESSARY if the bot isn't a sysop

; Configure the CTF game in here.
; Public teams 0-1 are supported.


; These are the coords where each team's flag respawns.

[Flags]
0=267, 512
1=757, 512

; Distance from the flag spawn centroid where the goal is located

GoalRadius=0


; These are the coords where each team's players respawn.

[NewSpawn]
0=, , ,
1=, , ,


; These are bounding rectangles where each team's players respawn.

; Format: x1, y1, x2, y2

; x1, y1---
; | |
; | |
; ---x2, y2

[OldSpawn]
0=215,501 , 523,228
1=796,501 , 523,809


[Points]

; Change points granted to the flagger and his team for winning.

Flagger=100
TeamVictory=500


; Change game settings

[Game]

; Minimum number of players per team for points to be awarded.

MinimumTeamPlayers=1


; Modes:
; 0: Flag race - game ends at a certain number of goals
; 1: Soccer-style - game ends when a team has a number of rounds higher than the other in wins
Mode=0


; When a player's timer runs out with a flag, he automatically gets a goal
; Set =0 to disable the timer. When enabled, only timer-goals will count
; When disabled, you must return to your flag area to score a point.

Timer=0


; Must a team attempting to make a goal be in control of their flag?
; 0=no, 1=yes

MustControl=1


; Number of goals until a team is victorious

Rounds=3


[Teams]

; Difference in teams before the evener is used

MaximumTeamDifference=2


; Change the text displayed by !rules

[Rules]
Line0=Capture the flag!
Line1=Go to your enemy's base, steal their flag and return back to your base.
Line2=First team to 3 goals wins. Flaggers get 100 points and their team gets 500 points.
Line3=
Purge - Tue Sep 02, 2008 10:20 pm
Post subject:
Change the [NewSpawn] coordinates to actual coordinates. sa_tongue.gif

Also, make sure the GoalRadius is ~7 so you can score cleanly.
Anonymous - Wed Sep 03, 2008 6:54 am
Post subject:
There's 2 sections tho to newspawn.... like x1 y1 x1 y2
Purge - Wed Sep 03, 2008 11:43 am
Post subject:
It is structured exactly like OldSpawn to form a square/rectangle. You can even use the coordinates in OldSpawn for NewSpawn if you wish.
Anonymous - Wed Sep 03, 2008 4:50 pm
Post subject:
ok thank you
Anonymous - Wed Sep 03, 2008 5:01 pm
Post subject:
How do i get the flags to spawn exactly where the coords i put them.
Purge - Wed Sep 03, 2008 6:50 pm
Post subject:
Make sure the "required settings" are made in your server.cfg (or whatever cfg your arena uses) as shown at the top of the ctf.ini.
Anonymous - Thu Sep 04, 2008 6:53 am
Post subject:
Under *log this is what the bot says..

Thu Sep 04 05:51:51: Ext: PublicBot (Public 0) to Zofo: *warpto 241 -1445356913
Samapico - Thu Sep 04, 2008 11:07 am
Post subject:
0=215,501 , 523,228
1=796,501 , 523,809

Make sure the spacing is correct

0=215, 501, 523, 228
1=796, 501, 523, 809


The *warpto 241 -1445356913 is definitly because of a variable that could not be loaded correctly


[NewSpawn]
0=, , ,
1=, , ,

I'm guessing you filled these up already; again make sure the format is correct. Especially for whatever coordinate is after 241 in your settings
Anonymous - Thu Sep 04, 2008 6:30 pm
Post subject:
Ok I'll try that....would you happento know why the flags never spawn to the exact coords that i put them to?
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group