Page 1 of 1

Need help with wings and mines

Posted: Mon Jul 02, 2018 6:15 pm
by musculargenius
If you use the current set up at bzflag.networkspeedy.com it doesn't seem like wings work as they should. You only get one jump and then you don't stay in the air. I'm told this is something that can be changed from the server side but I am not sure. Any advice?

Something else that's been requested is the ability to turn the useless flag into a mine. what do I need to do in order to enable that behavior? I don't see it in the documentation anywhere, but after printing it out, I admit that there may be something I missed in the 20-something pages of stuff that I've read so far.

Re: Need help with wings and mines

Posted: Mon Jul 02, 2018 6:25 pm
by Zehra
There is a variable which controls the amount of times the wings flag can jump.(By default it is 1.)

Code: Select all

-set _wingsJumpCount 10
Can be used to set the amount of jumps to 10 on server start-up.
However, you can change this in game if you have the "set" permission.

Code: Select all

/set _wingsJumpCount 5
This will change the amount of jumps to 5 jumps.

The part of turning useless flags into mines is not a server setting, but it is done via a plug-in.
Originally created by Engima for 2.x as useless mines, it required the boost library as a dependency.
Enigma later created ProximityMines, an improved version of the useless mines as it had cleaner code, but still required the boost library.
Sigonasr2 later took the idea of useless mines and made a version for 2.4.x, with much simpler code and released it under public domain.
This can be found in this thread: UselessMine - Create Mines with the Useless Flag Once Again!
In the same thread, allejo also made a release of useless mines, but it written slightly differently, includes BD flag, but it requires BZFS 2.4.14 or above to work.

-Zehra

Re: Need help with wings and mines

Posted: Mon Jul 02, 2018 8:17 pm
by kierra
Maps: Clayhills, urban jungle & apocalypse run allejo's version. His is the only one still maintained.

Re: Need help with wings and mines

Posted: Mon Jul 02, 2018 9:43 pm
by Zehra
You would need to update your server to use allejo's version or to use an older version of his.
As a side note: I will likely update sigonasr2's plug-in in the coming months.

I also forgot to mention that if players don't stay in the air long with wings, you can reduce the wings gravity.
This will make them fall to the ground slower.(Don't set the value to positive though, it will cause an autokick of players with wings.)
The '_wingsGravity' variable is the one you will want to change if you want to make them fall to the ground slower.
(By default, this is set to the default gravity.)
Also if you wish to change how fast or slow or limit the jump with wings, you can change the _wingsJumpVelocity variable.
It too is normally set to the velocity of a jump without wings.
The last variable is the _wingsSlideTime and by default this is set to 0.
It tends to make players act as if there is lower friction, in my opinion.
If you adjust any of these variables, you will likely need to tinker with them a bit until you find a setting to your liking.
If any additional or extra information is needed on this, feel free to contact me by private message.

-Zehra

Re: Need help with wings and mines

Posted: Sat Jul 07, 2018 1:22 am
by allejo
Zehra wrote:
Mon Jul 02, 2018 9:43 pm
As a side note: I will likely update sigonasr2's plug-in in the coming months.
Why.

Re: Need help with wings and mines

Posted: Sun Jul 08, 2018 2:02 am
by Zehra
allejo wrote:
Sat Jul 07, 2018 1:22 am
Zehra wrote:
Mon Jul 02, 2018 9:43 pm
As a side note: I will likely update sigonasr2's plug-in in the coming months.
Why.
I'll gain experience this way and it will help me in some of my projects which are planned in the future.
This may be a starting point for a few other plug-ins and games modes as well.

-Zehra

Re: Need help with wings and mines

Posted: Sun Jul 08, 2018 2:48 am
by allejo
Zehra wrote:
Sun Jul 08, 2018 2:02 am
I'll gain experience this way and it will help me in some of my projects which are planned in the future.
This may be a starting point for a few other plug-ins and games modes as well.
By all means, gain experience and practice. Just stop reviving old, unused, unmaintained plugins. You're doing people a disservice by cluttering the forum with obsolete plug-ins.

Anyhow, my apologies for getting off-topic. Since it seems that the original question was answered, let's leave it at that unless the OP has further questions :)

Re: Need help with wings and mines

Posted: Fri Jul 13, 2018 6:25 pm
by alfa1
This page might not be so updated but it is rather useful anyway: https://wiki.bzflag.org/Server_Variables .