Difference between revisions of "Template:Beam"

From FreeSpace Wiki
Jump to: navigation, search
(new template)
 
(Note: Major error corrected.)
 
(4 intermediate revisions by 2 users not shown)
Line 18: Line 18:
 
| '''Damage''' per second
 
| '''Damage''' per second
 
| {{{6}}}
 
| {{{6}}}
 +
|-
 +
| '''Damage''' per second (sustained)
 +
| {{{7}}}
 
|-
 
|-
 
| '''Damage''' per pulse
 
| '''Damage''' per pulse
| {{{7}}}
+
| {{{8}}}
 
|}
 
|}
  
Line 27: Line 30:
 
==Usage==
 
==Usage==
  
<nowiki>{{Beam|4500|20|2|Direct|1|5 000|10 000}}</nowiki>
+
<code><nowiki>{{Beam|4500|20|2|Direct|1|5 000|455|10 000}}</nowiki></code>
 +
 
 +
Which gives:
  
Makes
 
 
{|
 
{|
 
|-
 
|-
Line 49: Line 53:
 
| '''Damage''' per second
 
| '''Damage''' per second
 
| 5 000
 
| 5 000
 +
|-
 +
| '''Damage''' per second (sustained)
 +
| 455
 
|-
 
|-
 
| '''Damage''' per pulse
 
| '''Damage''' per pulse
 
| 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 per second x Beam lifetime
  
 
[[Category:Templates|Beam]]
 
[[Category:Templates|Beam]]
 
</noinclude>
 
</noinclude>

Latest revision as of 09:51, 6 June 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

{{Beam|4500|20|2|Direct|1|5 000|455|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 per second x Beam lifetime