Difference between revisions of "Template:Beam"

From FreeSpace Wiki
Jump to: navigation, search
(Added the notes I jotted down while creating Vishnan Beam Weapons.)
(Note: Major error corrected.)
 
(2 intermediate revisions by the same user not shown)
Line 30: Line 30:
 
==Usage==
 
==Usage==
  
<code>{{Beam|4500|20|2|Direct|1|5 000|455|10 000}}</code>
+
<code><nowiki>{{Beam|4500|20|2|Direct|1|5 000|455|10 000}}</nowiki></code>
  
 
Which gives:
 
Which gives:
Line 72: Line 72:
 
:'''Damage per second''': [$Damage value] x 5.5
 
:'''Damage per second''': [$Damage value] x 5.5
 
:'''Damage per second (sustained)''': Damage per pulse / Recharge Time
 
:'''Damage per second (sustained)''': Damage per pulse / Recharge Time
:'''Damage per pulse''': [$Damage value] x Beam lifetime
+
:'''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