Difference between revisions of "Template:Beam"

From FreeSpace Wiki
Jump to: navigation, search
(Adding a field)
(Added the notes I jotted down while creating Vishnan Beam Weapons.)
Line 30: Line 30:
 
==Usage==
 
==Usage==
  
<nowiki>{{Beam|4500|20|2|Direct|1|5 000|455|10 000}}</nowiki>
+
<code>{{Beam|4500|20|2|Direct|1|5 000|455|10 000}}</code>
 +
 
 +
Which gives:
  
Makes
 
 
{|
 
{|
 
|-
 
|-
Line 59: Line 60:
 
| 10 000
 
| 10 000
 
|}
 
|}
 +
 +
==Note==
 +
Beam stats are based on multiple values found in the weapons table file and are calculated as follows:
 +
 +
:'''Range''': [+Range value]
 +
:'''Recharge Time''': [$Fire Wait value]
 +
:'''Beam Lifetime''': [+Life value]
 +
:'''Type''': [+Type value], where
 +
::0 = Direct; 1 = Slashing; 2 = Targeting; 3 = Anti fighter; 4 = Fixed
 +
:'''Shots''': [+Shots value]
 +
:'''Damage per second''': [$Damage value] x 5.5
 +
:'''Damage per second (sustained)''': Damage per pulse / Recharge Time
 +
:'''Damage per pulse''': [$Damage value] x Beam lifetime
  
 
[[Category:Templates|Beam]]
 
[[Category:Templates|Beam]]
 
</noinclude>
 
</noinclude>

Revision as of 18:19, 18 May 2010

Range {{{1}}} m
Recharge Time {{{2}}} s
Beam Lifetime {{{3}}} s
Type: {{{4}}}
Shots {{{5}}}
Damage per second {{{6}}}
Damage per second (sustained) {{{7}}}
Damage per pulse {{{8}}}


Usage

Range 4500 m
Recharge Time 20 s
Beam Lifetime 2 s
Type: Direct
Shots 1
Damage per second 5 000
Damage per second (sustained) 455
Damage per pulse 10 000

Which gives:

Range 4500 m
Recharge Time 20 s
Beam Lifetime 2 s
Type: Direct
Shots 1
Damage per second 5 000
Damage per second (sustained) 455
Damage per pulse 10 000

Note

Beam stats are based on multiple values found in the weapons table file and are calculated as follows:

Range: [+Range value]
Recharge Time: [$Fire Wait value]
Beam Lifetime: [+Life value]
Type: [+Type value], where
0 = Direct; 1 = Slashing; 2 = Targeting; 3 = Anti fighter; 4 = Fixed
Shots: [+Shots value]
Damage per second: [$Damage value] x 5.5
Damage per second (sustained): Damage per pulse / Recharge Time
Damage per pulse: [$Damage value] x Beam lifetime