Grenade flag release - as seen on Apocalypse
Grenade flag release - as seen on Apocalypse
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.
License: CC0 1.0 Universal (CC0 1.0)
Edit: added license.
- Attachments
-
- grenade.cpp
- Grenade plugin
- (10.01 KiB) Downloaded 319 times
Last edited by Pac-Man on Mon Apr 21, 2014 10:58 pm, edited 2 times in total.
Re: Grenade flag release - as seen on Apocalypse
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).
Re: Grenade flag release - as seen on Apocalypse
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.
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.
JeffM
Re: Grenade flag release - as seen on Apocalypse
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
"Faithless is he that says farewell when the road darkens." - J.R.R. Tolkien
Re: Grenade flag release - as seen on Apocalypse
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.JeffM wrote: 1) if this was derived in any way from any of our samples then the license must be LGPL.
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.
2.6 will have laser sight!
Levels and Robots - Servers Grouping and Names - Servers Classification - Log Converter
Levels and Robots - Servers Grouping and Names - Servers Classification - Log Converter
Re: Grenade flag release - as seen on Apocalypse
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.
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.
JeffM
Re: Grenade flag release - as seen on Apocalypse
I had an error when I compile it. What is the type of "it" in code? (line 129)
Re: Grenade flag release - as seen on Apocalypse
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
Re: Grenade flag release - as seen on Apocalypse
I am using OpenSuse g++ version 4.8.1
Re: Grenade flag release - as seen on Apocalypse
Do you have an actual error message you could provide?
Re: Grenade flag release - as seen on Apocalypse
I modified source code and solved it. Thanks for interest
Re: Grenade flag release - as seen on Apocalypse
That is great/wonderful.metu3 wrote:I modified source code and solved it. Thanks for interest
Can you please provide the code, so that others can use it too?
Thank you