Template:WeaponsTable/ranged: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
No edit summary
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{doc}}</noinclude><onlyinclude>
<noinclude>{{doc}}</noinclude><onlyinclude>
|-
|- {{#vardefine:rowspan|{{#expr: 1+{{#count:{{{ammo}}}|<br>}} {{#if:{{{ammo2|}}}|+1+{{#count:{{{ammo2}}}|<br>}}}} }}}}
| style="text-align:center;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" | [[File:{{#replace:{{{name}}}|&amp;#39;|'}}.png|50px]] <br> [[{{#replace:{{{name}}}|&amp;#39;|'}}]]
| style="text-align:center;" rowspan="{{#var:rowspan}}" | [[File:{{#replace:{{{icon|{{{name}}}.png}}}|&amp;#39;|'}}|50px]] <br> [[{{#replace:{{{name}}}|&amp;#39;|'}}]]
| style="text-align:center;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" |{{#if:{{{minleveldifficulty|}}}{{#ifeq:{{{outpostsold|}}}|1|1}}{{#ifeq:{{{citysold|}}}|1|1}}{{#ifeq:{{{researchsold|}}}|1|1}}{{#ifeq:{{{militarysold|}}}|1|1}}{{#ifeq:{{{minesold|}}}|1|1}}{{#ifeq:{{{armorysold|}}}|1|1}}{{#ifeq:{{{medicalsold|}}}|1|1}}{{#ifeq:{{{engineeringsold|}}}|1|1}}{{#ifeq:{{{clownsold|}}}|1|1}}{{#ifeq:{{{husksold|}}}|1|1}}|<!-- 
| style="text-align:center;" rowspan="{{#var:rowspan}}" |{{{attackspeed}}}
-->{{#if:{{{coalitionreputation|}}}{{{separatistsreputation|}}}{{{clownreputation|}}}{{{huskreputation|}}}|<div style="text-align:center;white-space:nowrap;">{{#if:{{{coalitionreputation|}}}|[[File:Faction coalition.png|32px]]{{{coalitionreputation}}}}}{{#if:{{{separatistsreputation|}}}|[[File:Faction separatists.png|32px]]{{{separatistsreputation}}}}}{{#if:{{{clownreputation|}}}|[[File:Faction clowns.png|32px]]{{{clownreputation}}}}}{{#if:|[[File:Faction huskcult.png|32px]]{{{huskreputation}}}}}+ Reputation at:</div>}}<!--
| style="text-align:center;" rowspan="{{#var:rowspan}}" |{{{ammocount}}}{{#if:{{{ammo2count|}}}|&nbsp; &#124; &nbsp;{{{ammo2count}}}}}  
-->{{#if:{{{minleveldifficulty|}}}|<div style="text-align:center;white-space:nowrap;">{{{minleveldifficulty}}}%+ Level Difficulty at:</div>}}<div style="display:flex;flex-wrap:wrap;justify-content:center;align-content:center;"><!--
{{#if:{{{afflictions|}}}|<!-- The following is for weapons that don't use ammo and the afflictions are from the weapon itself -->
-->{{#ifeq:{{{outpostsold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Location Habitation Outpost|Campaign#Outposts}}</div>}}<!--
{{!}} style="text-align:center;" rowspan="{{#var:rowspan}}" {{!}}
-->{{#ifeq:{{{citysold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Location Colony|Campaign#Outposts}}</div>}}<!--
{{!}} style="text-align:center;" rowspan="{{#var:rowspan}}" {{!}}
-->{{#ifeq:{{{researchsold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Location Research Outpost|Campaign#Outposts}}</div>}}<!--
{{!}}                           rowspan="{{#var:rowspan}}" {{!}} {{#if:{{{afflictions|}}}{{{explosionafflictions|}}}|{{AfflictionParser|afflictions={{{afflictions|}}}|explosionafflictions={{{explosionafflictions|}}}|explosionrange={{{explosionrange|}}}|projectiles={{{projectiles|}}}|weapondamagemodifier={{{weapondamagemodifier|}}}|nomargin=yes}}}}
-->{{#ifeq:{{{militarysold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Location Military Outpost|Campaign#Outposts}}</div>}}<!--
{{!}}                           rowspan="{{#var:rowspan}}" {{!}} {{#if:{{{penetration|}}}|{{{penetration}}}%}}
-->{{#ifeq:{{{minesold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Location Mining Outpost|Campaign#Outposts}}</div>}}<!--
{{!}}                           rowspan="{{#var:rowspan}}" {{!}} {{#if:{{{severlimbsprobability|}}}|{{{severlimbsprobability|}}}%}}
-->{{#ifeq:{{{armorysold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Armory Merchant|Campaign#Outposts}}</div>}}<!--
{{!}} style="text-align:center;" rowspan="{{#var:rowspan}}" {{!}} {{#if:{{{supplyname|}}}|{{{supplyname}}}:<br>}}{{#if:{{{supplyitems|}}}|{{{supplyitems}}}}}|<!-- The following is for weapons with ammo -->
-->{{#ifeq:{{{medicalsold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Medical Merchant|Campaign#Outposts}}</div>}}<!--
{{#vardefine:rowcount|0}}<!--
-->{{#ifeq:{{{engineeringsold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Engineering Merchant|Campaign#Outposts}}</div>}}<!--
-->{{#cargo_query:
-->{{#ifeq:{{{clownsold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Clown Merchant|Campaign#Factions}}</div>}}<!--
-->{{#ifeq:{{{husksold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Husk Merchant|Campaign#Factions}}</div>}}</div><!--
-->{{#ifeq:{{{fabricator}}}|1|<hr>}}}}<!--
 
-->{{#ifeq:{{{fabricator}}}|1|<div>Crafting:</div>{{#if:{{{talent|}}}|<div>Talent:{{{talent}}}</div>}}<div>{{{fabricatormaterials|}}}</div>}}<!--
 
-->{{#if:{{{sources|}}}|{{{sources}}}}}
| style="text-align:center;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" |{{{attackspeed}}}
| style="text-align:center;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" |{{#if:{{{supplyname|}}}|{{{supplyname}}}:<br>}}{{#if:{{{supplyitems|}}}|{{{supplyitems}}}}}
| style="text-align:center;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" |{{{ammocount}}}
{{#if:{{{afflictions|}}}|<!-- This entire segment is for the Arc Emitter, it doesn't use ammo and the afflictions are from the weapon itself -->
{{!}} style="text-align:center;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" {{!}} {{{ammo|}}}
{{!}} style="text-align:center;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" {{!}}
{{!}} rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" {{!}} {{{afflictions}}}
{{!}} rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" {{!}} {{#if:{{{penetration|}}}|{{{penetration}}}|0}}%
|{{#cargo_query:
tables = Items,Ammunition
tables = Items,Ammunition
| join on = Items.name = Ammunition.name
| join on = Items.name = Ammunition.name
| fields = Items.name, Items.penetration, Items.projectiles, Items.magazine, Items.fuelduration,
| fields = Items.name, Items.penetration, Items.projectiles, Items.magazine, Items.fuelduration, Items.severlimbsprobability, Items.explosionrange, Items.afflictions, Items.explosionafflictions, Ammunition.usedby, Ammunition.usedbyweapondamagemodifier,
<!-- Afflictions -->
| where = Ammunition.usedby = "{{{name}}}" OR Ammunition.usedby2 = "{{{name}}}" OR Ammunition.usedby3 = "{{{name}}}"
Items.bluntforcetrauma, Items.lacerations, Items.gunshotwound, Items.deeptissueinjury, Items.burn, Items.bleeding, Items.progressivestun, Items.stun,
Items.explosionrange, Items.explosionradiationsickness, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionlacerations, Items.explosionbleeding, Items.explosionstun,
<!-- usedby -->
Ammunition.usedby, Ammunition.usedbyweapondamagemodifier, Ammunition.usedbymagazine, Ammunition.usedbyfuelduration
| where = Ammunition.usedby = "{{{name}}}" {{#ifeq:{{{name}}}|Arc Emitter|OR Items.name = "Arc Emitter"}} <!-- Exception for the Arc Emitter - It doesn't have ammo that causes afflictions, they are caused by the weapon itself -->
| order by = Items.name
| order by = Items.name
| format = template
| format = template
| template = AmmoTable/ammo
| template = WeaponsTable/ranged/ammo{{!}}weapondamagemodifier={{{weapondamagemodifier|}}}{{!}}firerate={{{firerate|}}}{{!}}supplyname={{{supplyname|}}}{{!}}supplyitems={{{supplyitems|}}}{{!}}rowspan={{#var:rowspan}}
| named args = yes
| named args = yes
| default =
| default =
}}
}}
{{#cargo_query:
tables = Items,Ammunition
| join on = Items.name = Ammunition.name
| fields = Items.name, Items.penetration, Items.projectiles, Items.magazine, Items.fuelduration,
<!-- Afflictions -->
Items.bluntforcetrauma, Items.lacerations, Items.gunshotwound, Items.deeptissueinjury, Items.burn, Items.bleeding, Items.progressivestun, Items.stun,
Items.explosionrange, Items.explosionradiationsickness, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionlacerations, Items.explosionbleeding, Items.explosionstun,
<!-- usedby2 -->
Ammunition.usedby2, Ammunition.usedby2weapondamagemodifier, Ammunition.usedby2magazine, Ammunition.usedby2fuelduration
| where = Ammunition.usedby2 = "{{{name}}}"
| order by = Items.name
| format = template
| template = AmmoTable/ammo2
| named args = yes
| default =
}}
}}
{{#cargo_query:
|-
tables = Items,Ammunition
| style="height:0;padding:0;" colspan="8" |
| join on = Items.name = Ammunition.name
| fields = Items.name, Items.penetration, Items.projectiles, Items.magazine, Items.fuelduration,
<!-- Afflictions -->
Items.bluntforcetrauma, Items.lacerations, Items.gunshotwound, Items.deeptissueinjury, Items.burn, Items.bleeding, Items.progressivestun, Items.stun,
Items.explosionrange, Items.explosionradiationsickness, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionlacerations, Items.explosionbleeding, Items.explosionstun,
<!-- usedby3 -->
Ammunition.usedby3, Ammunition.usedby3weapondamagemodifier, Ammunition.usedby3magazine, Ammunition.usedby3fuelduration
| where = Ammunition.usedby3 = "{{{name}}}"
| order by = Items.name
| format = template
| template = AmmoTable/ammo3
| named args = yes
| default =
}}}}
</onlyinclude>
</onlyinclude>

Latest revision as of 23:21, 3 January 2024

Documentation

This template is used by Template:WeaponsTable to display individual rows. It is not meant for direct usage.


Ranged Weapons
Weapon Fire
rate
Max
ammo
Ammunition Mag
size
Afflictions Armor
Pen
Sever
Limb
Supply

Advanced Syringe Gun
1 8
Depends on the used Syringe

Syringe Gun
1 4
Depends on the used Syringe

Stun Gun
1 2
Fulgurium Stun Gun Dart
 Lacerations (1)*
 Stun (6)*

Stun Gun Dart
 Lacerations (0.5)*
 Stun (0.1)*

Machine Pistol
5.7 1
Depleted Fuel SMG Magazine
21
 Gunshot Wound (12)*
 Bleeding (4)*
 Stun (0.12)*
25% 10%

SMG Magazine
21
 Gunshot Wound (10)*
 Bleeding (10)*
 Stun (0.16)* (10% chance)
10%

Deadeye Carbine
3.33 1
Depleted Fuel SMG Magazine
21
 Gunshot Wound (16.5)*
 Bleeding (5.5)*
 Stun (0.165)*
25% 10%

SMG Magazine
21
 Gunshot Wound (13.75)*
 Bleeding (13.75)*
 Stun (0.22)* (10% chance)
10%

SMG
5 1
Depleted Fuel SMG Magazine
21
 Gunshot Wound (19.5)*
 Bleeding (6.5)*
 Stun (0.195)*
25% 10%

SMG Magazine
21
 Gunshot Wound (16.25)*
 Bleeding (16.25)*
 Stun (0.26)* (10% chance)
10%

Boom Stick
1.82 2
Explosive Slug
 Bleeding (20)*
 Stun (0.8)*
Explosion (0.7m):
 Burn (60)*
50% 100%

Shotgun Rubber Shell
 Stun (2.4)*
0%

Shotgun Shell
 Gunshot Wound (64)*
 Bleeding (48)*
 Stun (0.8)*
50%

Riot Shotgun
1 6
Explosive Slug
 Bleeding (20)*
 Stun (0.8)*
Explosion (0.7m):
 Burn (60)*
50% 100%

Shotgun Rubber Shell
 Stun (2.4)*
0%

Shotgun Shell
 Gunshot Wound (64)*
 Bleeding (48)*
 Stun (0.8)*
50%

Autoshotgun
2.22 24
Explosive Slug
 Bleeding (18)*
 Stun (0.72)*
Explosion (0.7m):
 Burn (54)*
50% 100%

Shotgun Rubber Shell
 Blunt Force Trauma (21.6)*
 Stun (2.16)*
0%

Shotgun Shell
 Gunshot Wound (57.6)*
 Bleeding (43.2)*
 Stun (0.72)*
50%

Rifle
0.5 6  |  1
40mm Acid Grenade
Explosion (5m):
 Acid Burn (20)*
 Acid Burn (10)* (20% chance)
 Stun (0.5)*

40mm Grenade
Explosion (3m):
 Bleeding (400)* (5% chance)
 Burn (100)*
 Stun (5)*
100% 5%

40mm Mini Nuke
 Burn (100)*
 Bleeding (50)*
 Stun (5)*
Explosion (5m):
 Burn (200)*
 Bleeding (40)* (5% chance)
 Stun (10)*
100% 500%

40mm Stun Grenade
Explosion (3m):
 Stun (15)*

Rifle Round
 Gunshot Wound (55)*
 Bleeding (33)*
 Stun (0.6)*
 Stun (0.9)* (30% chance)
45% 50%

Revolver
2 6
Depleted Fuel Revolver Round
 Gunshot Wound (35)*
 Bleeding (10)*
 Stun (0.3)*
25% 20%

Revolver Round
 Gunshot Wound (28)*
 Bleeding (25)*
 Stun (0.3)*
10% 20%

Scrap Cannon
0.33 8
Iron
 Lacerations (48)*
 Bleeding (96)*
 Stun (1.6)*
50% Power Supply:
Battery Cell (8 Shots)
Fulgurium Battery Cell (16 Shots)

Scrap
 Lacerations (48)*
 Lacerations (48)* (50% chance)
 Bleeding (96)*
 Bleeding (96)* (50% chance)
 Stun (1.6)*
50%

Steel Bar
 Lacerations (96)*
 Bleeding (96)*
 Stun (1.6)*
50%

HMG
10 1
HMG Magazine
100
 Gunshot Wound (12)*
 Bleeding (10)*
 Stun (0.1)*
 Stun (0.5)* (1% chance)
40% 20%

Harpoon Gun
0.571 6
Ahab's Spear
 Lacerations (80)*
 Bleeding (80)*
 Stun (1)*
20%

Explosive Harpoon
Explosion (2m):
 Burn (50)*
 Stun (1.5)*
50% 25%

Harpoon
 Lacerations (35)*
 Bleeding (35)*
 Stun (0.5)*
10%

Physicorium Harpoon
 Lacerations (60)*
 Bleeding (60)*
 Stun (0.5)*
20%

Harpoon Coil-Rifle
0.571 6
Ahab's Spear
 Lacerations (136)*
 Bleeding (136)*
 Stun (1.7)*
20% Power Supply:
Battery Cell (12 Shots)
Fulgurium Battery Cell (24 Shots)

Explosive Harpoon
 Deep Tissue Injury (42.5)*
Explosion (2m):
 Burn (85)*
 Stun (2.55)*
50% 25%

Harpoon
 Lacerations (59.5)*
 Bleeding (59.5)*
 Stun (0.85)*
10%

Physicorium Harpoon
 Lacerations (102)*
 Bleeding (102)*
 Stun (0.85)*
20%

Handcannon
1 6
Handcannon Round
 Gunshot Wound (70)*
 Bleeding (50)*
 Stun (1.5)*
50% 100%

Assault Rifle
4.167 1
Assault Rifle Magazine
20
 Gunshot Wound (30)*
 Bleeding (15)*
 Stun (0.25)*
 Stun (0.5)* (20% chance)
20% 20%

Alien Pistol
1.88 1
Alien Power Cell
25
 Burn (10.5)*
 Deep Tissue Injury (10.5)*
 Stun (0.1)*
10%

Grenade Launcher
1 1
40mm Acid Grenade
Explosion (5m):
 Acid Burn (20)*
 Acid Burn (10)* (20% chance)
 Stun (0.5)*

40mm Grenade
Explosion (3m):
 Bleeding (400)* (5% chance)
 Burn (100)*
 Stun (5)*
100% 5%

40mm Mini Nuke
 Burn (100)*
 Bleeding (50)*
 Stun (5)*
Explosion (5m):
 Burn (200)*
 Bleeding (40)* (5% chance)
 Stun (10)*
100% 500%

40mm Stun Grenade
Explosion (3m):
 Stun (15)*

Ancient Weapon
1
 Burn (40)*
 Affects every limb it hits.
 Stun (4)* (15% chance)
50% 2.5% Power Supply:
Alien Power Cell (20s)

Arc Emitter
0.2
 Burn (10)*
 Stun (5)*
Power Supply:
Battery Cell (4 Shots)
Fulgurium Battery Cell (8 Shots)

Flamer
1
 Burn (1.25)*
 Affects every limb it hits.
Fuel Supply:
Welding Fuel Tank (16.7s)
Incendium Fuel Tank (40s)

Prototype Steam Cannon
1
 Burn (1.25)*
 Affects every limb it hits.
Fuel Supply:
Welding Fuel Tank (16.7s)
Incendium Fuel Tank (40s)

Rapid Fissile Accelerator
0.8
 Stun (0.5)*
Explosion (1.25m):
 Burn (25)*
 Stun (1)*
50% Fuel Rod Supply:
Fuel Rod (4 Shots)
Thorium Fuel Rod (8 Shots)
Fulgurium Fuel Rod (12 Shots)
Volatile Fulgurium Fuel Rod (20 Shots)

|- | style="text-align:center;" rowspan="1" | [[File:{{{name}}}.png|50px]]
[[{{{name}}}]] | style="text-align:center;" rowspan="1" |{{{attackspeed}}} | style="text-align:center;" rowspan="1" |{{{ammocount}}}

|- | style="height:0;padding:0;" colspan="8" |