Grenade flag release - as seen on Apocalypse

Expand and mod your server.
Post Reply
Pac-Man
Private First Class
Private First Class
Posts: 15
Joined: Sat Apr 26, 2008 7:49 am

Grenade flag release - as seen on Apocalypse

Post by Pac-Man »

Shooting with the Grenade flag generates a delayed detonation in front of you, where the detonation distance is controlled by your tank speed. It's easiest to try it in-game.

License: CC0 1.0 Universal (CC0 1.0)

Edit: added license.
Attachments
grenade.cpp
Grenade plugin
(10.01 KiB) Downloaded 311 times
Last edited by Pac-Man on Mon Apr 21, 2014 10:58 pm, edited 2 times in total.
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Grenade flag release - as seen on Apocalypse

Post by blast »

Please specify what license this is released under. Also, I'd recommend not using "using namespace std;" as it's bad practice (pollutes the global namespaces).
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Re: Grenade flag release - as seen on Apocalypse

Post by JeffM »

Just 2 notes
1) if this was derived in any way from any of our samples then the license must be LGPL.
2) People should know that this plug-in can not work on windows due to the use of non-API functions.
ImageJeffM
User avatar
ZE BOZZ
Private First Class
Private First Class
Posts: 66
Joined: Wed Jan 30, 2013 8:36 pm
Location: Xbox : ZE BOZZ25

Re: Grenade flag release - as seen on Apocalypse

Post by ZE BOZZ »

On the in-game side of things, great plugin! Really enjoyed it and loved your creativity. Keep it up.
•• •• •• •• ••
"Faithless is he that says farewell when the road darkens." - J.R.R. Tolkien
User avatar
alfa1
Private First Class
Private First Class
Posts: 168
Joined: Tue Dec 04, 2012 10:21 pm

Re: Grenade flag release - as seen on Apocalypse

Post by alfa1 »

JeffM wrote: 1) if this was derived in any way from any of our samples then the license must be LGPL.
When you use "derived" word related to any GPL family license, you shouldn't be vague, saying "in any way". When you use legal language, you should restrict your words to legal words.

In this case, according to the licenses specified above, I understand that making a "derivative work" from an original source, for example, it would be using a part of that code in your new project. Let's say, copying/pasting it. Or other example, copying/pasting + making modifications within this code.

A non-derivative work means, in opposition, making a new code from scratch. Let's say, not using copy/paste. An example of this could be an algorithm (the theory, not the implementation). It wouldn't be under these licenses because it is an abstract concept, not "code". In this case, you could use an algorithm *idea* that you saw inside the code, but *always* coding it from scratch, if not, it would be a copy/paste thing (protected under the license). (I know too, in the other hand, that there is a "fight" in the last times around the world regarding to patents and softwares, and "patents" here are related to *ideas*, it seems. Each one should check the state of this topic in our respective countries too, to be sure. It is a complex topic, though.)

Just for clarification. If I am missing something, please correct me.
Last edited by alfa1 on Sun May 04, 2014 2:42 am, edited 4 times in total.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Re: Grenade flag release - as seen on Apocalypse

Post by JeffM »

Yeah a derivative work is just it you take one of our files and modify it into your project. If you replace all the code with your own then it isn't derived. If you add your own code based on what we have done but not copy and paste then that code is not derived. Nothing in bzflag is patented so that does not come into play. Your understanding is perfectly correct.

The lgpl is not really what our template should be licensed under but that's what it was done under. Thankfully I am the original author of it and I can release a version of it under public domain, using the version I have before Tim require copyright attribution :). I'll see if I can get that posted later tonight, then there will never be an issue for anyone.
ImageJeffM
metu3
Private First Class
Private First Class
Posts: 5
Joined: Fri Apr 30, 2010 9:49 pm

Re: Grenade flag release - as seen on Apocalypse

Post by metu3 »

I had an error when I compile it. What is the type of "it" in code? (line 129)
Pac-Man
Private First Class
Private First Class
Posts: 15
Joined: Sat Apr 26, 2008 7:49 am

Re: Grenade flag release - as seen on Apocalypse

Post by Pac-Man »

metu3 wrote:I had an error when I compile it. What is the type of "it" in code? (line 129)

Code: Select all

vector<DelayedShot>::iterator
Are you using a non-Windows compiler with adequate C++11 support?
metu3
Private First Class
Private First Class
Posts: 5
Joined: Fri Apr 30, 2010 9:49 pm

Re: Grenade flag release - as seen on Apocalypse

Post by metu3 »

I am using OpenSuse g++ version 4.8.1
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Grenade flag release - as seen on Apocalypse

Post by blast »

Do you have an actual error message you could provide?
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
metu3
Private First Class
Private First Class
Posts: 5
Joined: Fri Apr 30, 2010 9:49 pm

Re: Grenade flag release - as seen on Apocalypse

Post by metu3 »

I modified source code and solved it. Thanks for interest
trpted
Private First Class
Private First Class
Posts: 242
Joined: Mon Feb 21, 2005 8:29 pm

Re: Grenade flag release - as seen on Apocalypse

Post by trpted »

metu3 wrote:I modified source code and solved it. Thanks for interest
That is great/wonderful.

Can you please provide the code, so that others can use it too?

Thank you
Post Reply