User:Flozi: Difference between revisions
From Spring
Jump to navigationJump to search
m →Scratchpad: more example, lose the shadow |
|||
| Line 4: | Line 4: | ||
= Scratchpad = | = Scratchpad = | ||
== Template:Tag == | |||
<span class="type" style="color:#0099cc; font-family:courier, monospace;">bool</span> <span class="tagname" style="color:#105289; font-family:courier, monospace; font-weight:bold;">burnblow</span>   default: <span class="value" style="color:#ff6600;font-family:courier, monospace;">false</span>   lua: <code>selfExplode</code> | <span class="type" style="color:#0099cc; font-family:courier, monospace;">bool</span> <span class="tagname" style="color:#105289; font-family:courier, monospace; font-weight:bold;">burnblow</span>   default: <span class="value" style="color:#ff6600;font-family:courier, monospace;">false</span>   lua: <code>selfExplode</code> | ||
| Line 15: | Line 16: | ||
:The velocity in elmos per second of the weapon projectile. Since 99.0 maxVelocity is a synonym. | :The velocity in elmos per second of the weapon projectile. Since 99.0 maxVelocity is a synonym. | ||
== Template:API -> CallIn == | |||
<span style="font-family:courier, monospace;"><span class="tagname" style="color:#105289;">addon.<span style="font-weight:bold;">AllowUnitCreation</span></span>(<span class="type" style="color:#0099cc;">number</span> unitDefID, <span class="type" style="color:#0099cc;">number</span> builderID, <span class="type" style="color:#0099cc;">number</span> builderTeam, | |||
<span class="type" style="color:#0099cc;">number</span> x, <span class="type" style="color:#0099cc;">number</span> y, <span class="type" style="color:#0099cc;">number</span> z, | |||
<span class="type" style="color:#0099cc;">number</span> facing)</span> | |||
:return: <span style="font-family:courier, monospace;"><span class="type" style="color:#0099cc;">bool</span> allow</span> | |||
:Called just before unit is created, the boolean return value determines whether or not the creation is permitted. | |||
= TODO: = | = TODO: = | ||
Revision as of 22:37, 8 June 2016
My User Subpages
Scratchpad
Template:Tag
bool burnblow default: false lua: selfExplode
- Does the weapon explode when it reaches its maximum range or continue on its path? The name is an OTAism.
float range default: 10.0
- The maximum range in elmos that the weapon can fire at.
float weaponVelocity default: 0.0
- The velocity in elmos per second of the weapon projectile. Since 99.0 maxVelocity is a synonym.
Template:API -> CallIn
addon.AllowUnitCreation(number unitDefID, number builderID, number builderTeam, number x, number y, number z, number facing)
- return: bool allow
- Called just before unit is created, the boolean return value determines whether or not the creation is permitted.
TODO:
Major
- Category:ShowCase template, main page, S44 & MCL as examples
- Category:Tutorial
- Continue to improve Lua:Callins - Fill in blank explanations
- Clickable / right-click copy paste-able anchors in {{tag}} et al
- Assimp build upon, metadata doc, split tutorial again >_>
- Cleanup old Category:Map_making into new Category:Map Dev
Minor
- Page on spring wiki etiquette (SpringWiki) / style guide & template usage (Mapdev:WikiGuide) /namespace conventions (Spring:PageNamingConventions) - pages are good already; put these in revamped community portal?
- Move all pages in Animation- to Animation:
- Continue to improve Gamedev:Main up to the high standard of Mapdev:Main
Undocumented Features
- cmdcolors.txt (c.f. GUI modifications in SVN)
- ctrlpanel.txt (c.f. as above)
- isolated mode (isolated.txt 99+ c.f. portable/isolation mode, Spring manpages)
Template:LuaCallout Examples
{{{prefix}}}UseTeamResource
( {{{arg1}}},
{{{arg2}}},
{{{arg3}}},
{{{arg4}}},
{{{arg5}}},
{{{arg6}}},
{{{arg7}}},
{{{arg8}}},
{{{arg9}}} )
return: nil | bool hadEnough