alkarinv / BattleArena

Arena plugin for player vs player or team vs team battles and Core for any custom Event plugin.
30 stars 58 forks source link

[Feature request] CTF + resource race #42

Open perfk opened 12 years ago

perfk commented 12 years ago

Hey,

love the plugin :) -but some features would make it perfect.

Capture the flag / Assautl: 2 Teams each have a "flag" (often just wool) that you run to and take, you then need to return it to your own flag. you cant caputure if you dont have your own flag at home.

Assault: only 1 flag, often used as a "attack a castle" where you have to run in, get a flag, and get it back out.

Resource race: Both teams start at 0 points, and the goal is then to reach a configurable amount of points. you gain a small amount from killing players from the other team. but the main income should come from having captured points on the map. each point will give x increase in points. so if you have 3 out of 5 points, you will be getting x points evry 5/10 sec

And my last feature, would be to make it so if you have permission battlearena.team1 you cant team up with players that have permission battlearena.team2

Thanks for a great plugin. //Perfk

alkarinv commented 12 years ago

Capture the flag is already made and is being run on a couple of different servers for testing.

Assault, well if capture the flag works then this should be easy to make a new event. How does the defending team win though?

Resource: I want to put something like this in as well. I want to put in options where you can specify how players can win... So for example in the options you can choose resource, flag capture, block capture, etc. But that might be a bit in the future.

I like this feature, this is kind of like specifying groups for people. Are you using any plugins for groups right now? I've been meaning to add in group support for a while!

perfk commented 12 years ago

Wow, thanks for the quick response :).

CTF: Uh, couldnt find any info on how to setup a capture the flag arena, could you point me in the right direction?

Assault: Hmm, i guess either let it be if the defending team kills the other team x times, or just let it be time based, if the attackers havent won by 10 min, they lose.

Resource: i was thinking more along the lines of capturing a point (stand at a 3x3 aream and some wool in the middle will change collour) look at http://www.wowwiki.com/Arathi_Basin :) -

alkarinv commented 12 years ago

CTF is a separate plugin like spleef, and is being tested right now so I haven't released it yet. They've been playing with it for a week now though so hopefully it's good to go and I can release today/tomorrow.

Time based is fine by me, will be very easy.

So you kind of stand in the area for a certain amount of time to capture first, then stand around it to gather resources?

perfk commented 12 years ago

Can i try and jump on a server running the ctf plugin?

The best for the resources race, would be that you run up to a "flag"

wool fence fence

when the flag is not captured by either team, it will be white. if it is captured by team 1, it will be red, and if by team 2, it will be blue.

it can be captured if team 1 got one player standing near the flag (2-3 bloks away) - but if there is someone from team 2 there as well. team 1 can't capture it.

A sample game:

Team 1 runs to a flag that has not been captured, it is therfor white. - team 1 stands there for 10 sec, and the wool changes collour to Red.

Someone from team 2, now attacks the player from team 1, and they are both around the flag, (nothing happens with the flag, because there is 1 from each side here) team 2, now kills the one from team 1. and he is alone at the flag, he stands there for 10 sec, and the flag changes from red to white.

team 2 needs to stand around the flag for another 10 sec to make it become blue. but someone from team 1 comes and they fight leaving the flag white.

when the flag is red team 1 will gain x resources evrey y sec when the flag is white - nonone is getting resources from this flag when the flag is blue, team 2 gains x resources every y sec

alkarinv commented 12 years ago

I can give you the current version we are testing.
https://github.com/downloads/alkarinv/ArenaCTF/ArenaCTF.jar

you have to make a ctf arena.

I think it has wait rooms too, if it does

I like the wool changing colors idea. that sounds like a clean way to make that happen

perfk commented 11 years ago

I like the flame effect :)

btw, did i do something wrong with my setup, when someone types /ctf join, he gets teleported to the waiting area, but to fill 10 spots on each side can take some time.

the ideal way to do it, would be the same as the arenas. wait for it to be full, and then teleport the players

alkarinv commented 11 years ago

well I actually made ctf to be an event. so that's why it does that.

I really need to make the events more like a match.

I can make you a match type ctf if you want, and change ctf to ectf.

perfk commented 11 years ago

That would be great :)

would love to have it running on it own :)

perfk commented 11 years ago

Oh, and it dosent seem like there is a command to remove flags when you have placed them

/ctf addflag works. but not delflag.

alkarinv commented 11 years ago

it should be clearFlags

/ctf clearFlags

I can probably get you the match ctf soon, sometime today probably.

perfk commented 11 years ago

You are awesome :).

perfk commented 11 years ago

Found a bug.

if the game ends where a player has the flag, he will have the flag if he joins another game.

has been tested with /ctf cancel

alkarinv commented 11 years ago

alright, bug noted!

perfk commented 11 years ago

btw. what am i supose to type in victoryCondition: for a CTF match? - right now the team that gets 2 kills win :P

CaptureTheFlag: enabled: true command: ctf type: CaptureTheFlag database: ctf prefix: "&8[CTF]&e" nTeams: 1 teamSize: 1+ matchTime: 1800 preReqs: options: [clearInventory] onJoin: options: [teleportWaitRoom, pvpOff, storeItems] onOpen: options: [pvpOff] onPrestart: options: [pvpOff, woolTeams] onStart: options: [enchants, pvpOn, teleportIn, ] enchants:

alkarinv commented 11 years ago

below teamSize: put in the option

victoryCondition: HighestKills

sorry about that

perfk commented 11 years ago

yeah, that made the game last longer than 2 kills :)

2 questions.

1:
the 30sec annuocment [CTF] ends in 30 min 0 sec leads with 1 kills 0 deaths to have something to do with CTF :) - like

[CTF] ends in x min x sec y points z points

  1. just did a test with 3 players. Perfk, Latzeh and Sirrion

Perfk and Sirrion was on the same team, against Latzeh.

When Perfk scores, sirrion got the point - it would say: Perfk has captured the flag! Score Perfk, Sirrion: 1, latzeH:0 ScoreToWin=3

The ideal here would that it just said: Perfk has captured the flag! Score: :1, :0 - Score to win=3

did you have any idears as how to make the player keep his gear when he dies. so he just spawns with the same again. (iam not talking about gear that the arena gives him, but gear that he has brought into the arena)

alkarinv commented 11 years ago

1) yeah, I'll write a better victory condition than highest kills that will display the correct type of score.

2) I'll put in an option for making team names always display their color. So it will be Score: Red:1 Blue:0 - Score to win 3. Or Score: Red: 1/3 Blue: 0/3 maybe?

3) there is no way at the moment to do that, but I can add an option for it

perfk commented 11 years ago

2) i take it that the text will be in the messeage file. Would love to be able to rename it redteam = horde. Andre blueteam = alliance.

alkarinv commented 11 years ago

ok, i really like that.. now TeamNames and TeamHeads must be customizable

zippa713 commented 11 years ago

I think resource race is a modified capture the flag. But both types are great ideas! for a working "resource race" check out blue or black.realmc.net and find the "WAR" area... They have a great setup that the flags represent an amount of capture points ie 200cp (every couple seconds fills 1 cp untill the 200cp is full then atacking team has control of the flag and gets the rewards. rewards are ingame server money and also "warpoints" used to buy weapon upgrades in the CTF match...

alkarinv commented 11 years ago

Interesting, what items are these flags? I was probably going to use the changing wool colors.

The rewards, well that's a completely separate thing. I have events which any plugin could hook into, so they could tell who won any match for example. But I don't really want to start making an upgrade system as they can get large quick, and there are lots of them out there.

Already in BattleArena you can limit which class signs they can select through perms. And I'll be putting in some ability for them to preselect their desired class (which would also use perms)

zippa713 commented 11 years ago

the flags are nice looking flags made from posts and wool... the wool changes color to the team who captured it

ondrajz commented 11 years ago

How is this coming up?

alkarinv commented 11 years ago

heh, a lot of sidetrack action. So not very far. I ended up changing a bunch of internal code and adding some other functionality.

I'm going to try and get back to CTF though and CTF related plugins. maybe within a week or so?

ondrajz commented 11 years ago

Glad to hear that.