Page 1 of 1

looking for a race plugin

Posted: Tue Aug 25, 2020 9:24 am
by mathiaz
Hi ,

I am looking for a plugin to do a kind of race:
- each player have the same color.
- few flags (better if it s in configuration), when they bring back these flags to one point (base..), the score is updated.
- shoot enabled.

I guess this plugin already exist, is there a link where it s available?

Thanks for your answers

Re: looking for a race plugin

Posted: Tue Aug 25, 2020 3:23 pm
by tainn
I don't think you really need any plugin to realize this, outside of perhaps a HTF scoreboard to keep track of the wins, unless I'm misunderstanding your idea.

Code: Select all

-c
-mp 0,20,0,0,0,20
+f R*{20}
-ms 1
This creates a setting for 20 red tanks and 20 observers, generating 20 red team flags, as well as setting 1 shot max.

If you are perhaps looking for laps, though, you can realize that as well through different approaches. If I remember correctly, R3lax has one map on his map change server that is basically a race with laps, should that be of interest. It does use a plugin to achieve lap counts, though I'm unsure which exactly.

Re: looking for a race plugin

Posted: Tue Aug 25, 2020 4:26 pm
by Zehra
The 'Phoenix' plug-in is used at times in race maps.
You may also wish to contact ahs3, as he's done quite a few race maps.
(Most notably the "Tank Race" series of maps.)

There is also few plug-ins which may be able to be adapted to suit your needs, should current efforts prove unsatisfactory.

Just to clarify, do you wish for tanks to bring a certain number of flags to a "specified" point on the map?
Or when each tank brings a flag to the specified point, that their score is updated?

-Zehra

Re: looking for a race plugin

Posted: Tue Aug 25, 2020 5:32 pm
by mathiaz
Thanks that s an exellent beginning.

-c
-mp 0,20,0,0,0,20
-ms 1
+f R*{20}


I will add a red base, and a green base.
There will be only red players.
Players will spawn near green base at the opposite of the red one.

The game is to bring back a red flag to the green base.

So , all tanks will be destroyed, and respawn at the beginning.

It seems i need something to count the cap. (one point for cap against his team).

Does it already exist?

Re: looking for a race plugin

Posted: Tue Aug 25, 2020 6:53 pm
by tainn
That sounds like a classic HTF (hold-the-flag) system.

Yes, it does exist! It is called a HTF scoreboard and quite a few HTF maps utilize it. The most recent would probably be the Obstacle Course, orchestrated by ahs3.

Re: looking for a race plugin

Posted: Tue Aug 25, 2020 10:07 pm
by Zehra
If the default plug-ins are compiled, you will simply need to load the "HoldTheFlag" plug-in with the following arguments:

Code: Select all

-loadplugin HoldTheFlag,team=Red
Since if no arguments are provided, it assumes the "green" team will be used for the mode.
However, if you wish to use another team besides green, it will need to be specified.
The details will be found in the readme of said plug-in.

Small side note, while "HoldTheFlag" is actually meant for another mode, it is frequently used for "racing" type maps and modes.
As a small side note, you may wish to also use the "flagOnSpawn" plug-in for enhanced effect.
(Looking through the source, it also provides a message of flag granted, but if this is not wanted, it could simply be commented out.)

Code: Select all

bz_sendTextMessage( BZ_SERVER, playerID,
			  mesg.c_str() );
To:

Code: Select all

//bz_sendTextMessage( BZ_SERVER, playerID,
//			  mesg.c_str() );
Or rather easy to mod into an option of sending messages.
Let me know if you wish for more details in any of said options.

-Zehra

Re: looking for a race plugin

Posted: Tue Aug 25, 2020 10:32 pm
by alfa1
Consider race maps, as far as I know, are never meant to allow shooting. I guess this is to avoid the complication to start again after the death and players can concentrate only on strategy and skills.

Also, scores are not usually saved (not sure if HTF plugin will work since it's another game style), specially taking into account that randomly generated maps will tend to reset after a capture, meaning the entire server is restarting, losing all saved values. In this case, you would need to use a file to save them and, possibly, a system to reset them all or ranking them every some time. I guess the main idea, if the map is complex enough to take a relatively important time to accomplish the goal, is just to make a capture and done. See Jumping Skills cases.

Re: looking for a race plugin

Posted: Wed Aug 26, 2020 11:41 am
by mathiaz
Thanks all, especially Zehra who knows all the tricks.
I have everything i was looking for.
Not sure of what will be the map, shooting or not, 1 or 2 teams, probably superflag, but it will be.