This wiki is archived and useful information is being migrated to the main bzflag.org website
Difference between revisions of "Airspawn"
(New page: Airspawn is a standard plug-in that is shipped with the BZFlag Source code. It modifies the starting, or Spawning position of a player tank to being somewhere in the a...) |
(update) |
||
(10 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | Airspawn is a standard [[Plug-ins|plug-in]] that is shipped with the [[BZFlag Source]] | + | Airspawn is a standard [[Plug-ins|plug-in]] that is shipped with the [[BZFlag Source|source code]]. It allows the starting, or [[spawning]] position of a player tank to be somewhere in the air. Airspawn is included in [[BZFlag 2.0.4|v2.0.4]] and later releases. |
==Usage== | ==Usage== | ||
− | When | + | When the airspawn is loaded it can take an [[Plug-ins#Parameters|optional parameter]] that represents the maximum height variance that will be applied to a spawn position. The default value is 10 [[world units]]. With the plugin loaded, the height above ground of tank spawns will be a random value between 0 and the maximum value. The usage is: |
+ | |||
+ | -loadplugin "X:\path\to\the\plugin\airspawn.dll,<maxHeight>" | ||
+ | |||
+ | or in an already running game: | ||
+ | |||
+ | /loadplugin "X:\path\to\the\plugin\airspawn.dll,<maxHeight>" | ||
+ | |||
+ | Examples: | ||
+ | |||
+ | -loadplugin "C:\Program Files\BZFlag2.4.10\airspawn.dll,100" | ||
+ | -loadplugin "/usr/local/bzflag2.4.10/plugins/airspawn.so,100" | ||
+ | |||
+ | The "-loadplugin" syntax is used in the [[sample conf|server configuration]] file or at the command line when invoking a game [[BZFS|server]]. | ||
==History== | ==History== | ||
Airspawn was the very first plug-in made, it was a proof of concept for the API. | Airspawn was the very first plug-in made, it was a proof of concept for the API. | ||
− | |||
[[Category:Plug-Ins]] | [[Category:Plug-Ins]] |
Latest revision as of 03:10, 19 March 2017
Airspawn is a standard plug-in that is shipped with the source code. It allows the starting, or spawning position of a player tank to be somewhere in the air. Airspawn is included in v2.0.4 and later releases.
Usage[edit]
When the airspawn is loaded it can take an optional parameter that represents the maximum height variance that will be applied to a spawn position. The default value is 10 world units. With the plugin loaded, the height above ground of tank spawns will be a random value between 0 and the maximum value. The usage is:
-loadplugin "X:\path\to\the\plugin\airspawn.dll,<maxHeight>"
or in an already running game:
/loadplugin "X:\path\to\the\plugin\airspawn.dll,<maxHeight>"
Examples:
-loadplugin "C:\Program Files\BZFlag2.4.10\airspawn.dll,100" -loadplugin "/usr/local/bzflag2.4.10/plugins/airspawn.so,100"
The "-loadplugin" syntax is used in the server configuration file or at the command line when invoking a game server.
History[edit]
Airspawn was the very first plug-in made, it was a proof of concept for the API.