Template:Inventory info: Difference between revisions

From Tripwire Interactive Wiki
Jump to navigation Jump to search
mNo edit summary
m (Added spacer before misc section)
 
(158 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="display:inline; width:300px; float:right;">
<includeonly>{|style="white-space:nowrap;margin:auto auto auto 50px;float:right; width: 300px;text-align: left;border: 1px solid #999999;color:#3f3f3f;background-color:#cacaca;font-size:1.1em;padding-left:20px;padding-right:20px;"
<table style="text-align:center; border:1px solid black;background-color:#E5EECC;">
|- style="text-align:center;"
<tr><td>'''{{{Name}}}'''</td></tr>
| colspan="2" | <small>''[[Killing Floor]] item''</small>
<tr><td>[[File:{{{Image}}}]]</td></tr>
|- style="text-align:center;background-color:#9f9f9f;"
{{#if: {{{Perk|}}} | <tr><td>Perk: [[{{{Perk}}}]]</td></tr> }}
| colspan="2" | '''{{{Name}}}'''
{{#if: {{{Cost|}}} | <tr><td>Cost: £{{{Cost}}}</td></tr> }}
|- style="min-height:128px;height:auto;height:128px;margin:auto auto auto auto;"
{{#if: {{{Weight|}}} | <tr><td>Cost: {{{Weight}}} blocks</td></tr> }}
| colspan="2" | '''[[File:{{{Image}}}|center]]'''
<tr><td>Damage: {{{Damage}}}</td></tr>
|- {{#if:{{{Desc|}}} | style="text-align:center;color:black;" | style="display:none;"}}
<tr><td>Firing rate: {{{RPM}}} RPM</td>/tr>
| colspan="2" style="padding:10px 10px 10px 10px;" | ''{{{Desc}}}''
<tr><td>Can sell/buy: {{{CanSellBuy}}}</td></tr>
|- style="height: 20px;"
</table>
|
</div><noinclude>This template is a work in progress.<br/><br/><br/><br/><br/><br/><br/>
|- style="background-color:#8896b7;text-align:center;padding:2px;"
| colspan="2" | '''General Information'''
|- {{#if:{{{Perk|}}}||style="display:none;"}}
| Perk
| style="text-align:right;" | [[{{{Perk}}}]]
|- {{#if:{{{Cost|}}}||style="display:none;"}}
| Cost
| style="text-align:right;" | £{{{Cost}}}
|- {{#if:{{{Weight|}}}||style="display:none;"}}
| Weight
| style="text-align:right;" | {{{Weight}}}
|- {{#if:{{{CanSellBuy|}}}||style="display:none;"}}
| Can sell/buy
| style="text-align:right;" | {{{CanSellBuy}}}
|- style="visibility:hidden;"
| -
| -
|- style="background-color:#8896b7;text-align:center;padding:2px;"
| colspan="2" | '''Weapon Information'''
|- {{#if:{{{AmmoCost|}}}||style="display:none;"}}
| Ammo cost ({{ #if:{{{AmmoType|}}} | {{{AmmoType}}} | {{{AmmoBuyAmount}}} }})
| style="text-align:right;" | £{{{AmmoCost}}}
|- {{#if:{{{Capacity|}}}||style="display:none;"}}
| Ammo capacity
| style="text-align:right;" | {{{Capacity}}}
|- {{#if:{{{Magazine|}}}||style="display:none;"}}
| Magazine capacity
| style="text-align:right;" | {{{Magazine}}}
|- {{#if:{{{Damage|}}}||style="display:none;"}}
| Damage
| style="text-align:right;" | {{{Damage}}}
|- {{#if:{{{ImpactDamage|}}}||style="display:none;"}}
| Impact damage
| style="text-align:right;" | {{{ImpactDamage}}}
|- {{#if:{{{Radius|}}}||style="display:none;"}}
| <abbr title="Radius of area of effect">Radius</abbr>
| style="text-align:right;" | {{{Radius}}}
|- {{#if:{{{HeadMul|}}}||style="display:none;"}}
| <abbr title="How much extra damage is dealt when the head is hit">Head multiplier</abbr>
| style="text-align:right;" | {{{HeadMul}}}
|- {{#if:{{{Pellets|}}}||style="display:none;"}}
| Pellets
| style="text-align:right;" | {{{Pellets}}}
|- {{#if:{{{Spread|}}}||style="display:none;"}}
| <abbr title="Maximum deviation for each bullet/pellet">Spread</abbr>
| style="text-align:right;" | {{{Spread}}}
|- {{#if:{{{Penetration|}}}||style="display:none;"}}
| <abbr title="Amount of penetrations : reduction amount">Penetration</abbr>
| style="text-align:right;" | {{{Penetration}}}
|- {{#if:{{{ROF|}}}||style="display:none;"}}
| <abbr title="Time (seconds) between shots">Rate of fire</abbr>
| style="text-align:right;" | {{{ROF}}}
|- {{#if:{{{ReloadTime|}}}||style="display:none;"}}
| |<abbr title="Time (seconds) taken to reload">Reload time</abbr>
| style="text-align:right;" | {{{ReloadTime}}}
|- {{#if:{{{RegenRate|}}}||style="display:none;"}}
| |<abbr title="Amount of charge regenerated per second (healing)">Regen rate</abbr>
| style="text-align:right;" | {{{RegenRate}}}
|- {{#if:{{{AddOns|}}}|style="height: 20px;"|style="display:none;"}}
|
|- {{#if:{{{AddOns|}}}|style="background-color:#8896b7;text-align:center;padding:2px;"|style="display:none;"}}
| colspan="2" | '''Misc'''
|- {{#if:{{{AddOns|}}}||style="display:none;"}}
| Attachments
| style="text-align:right;" | {{{AddOns}}}
|-
| colspan="2" | <br/><small><small>''Values listed in brackets are for alternate (secondary) fire.''</small></small>
|}</includeonly>
<noinclude><div style="width:100%; height:100%;">This template is a work in progress.
 
===To do===
 
* Need to add the following stats: ammo cost, recoil, reload type (mag, shell, etc).
* Add burn damage? Does it depend on the weapon used to set alight?


==Usage==
==Usage==


<pre>
{{Inventory info
{{Inventory info
|Name=Syringe
|Name=MP7M
|Image=Syringe.png
|Desc=Alt-fire fires a healing dart
|Image=Trader MP7m.png
|Perk=Field Medic
|Cost=3000
|Weight=3
|AmmoType=Magazine
|AmmoCost=10
|Damage=25 (20)
|ROF=0.06 (0.50)
|Capacity=400 (N/A)
|Magazine=20
|CanSellBuy=Yes
|Spread=0.01
|ReloadTime=3.17
|HeadMul=110%
}}
 
<div style="width:500px;"><pre>
{{Inventory info
|Name=MP7M
|Desc=Alt-fire fires a healing dart
|Image=Trader MP7m.png
|Perk=Field Medic
|Perk=Field Medic
|Cost=123
|Cost=3000
|Weight=999
|Weight=3
|Damage=20 (heals)
|AmmoType=Magazine
|RPM=800
|AmmoCost=10
|CanSellBuy=No
|Damage=25 (20)
}}</pre>
|ROF=0.06 (0.50)
|Capacity=400 (N/A)
|Magazine=20
|CanSellBuy=Yes
|Spread=0.01
|ReloadTime=3.17
|HeadMul=110%
}}</pre></div>
 
===Available parameters===
 
'''ID'''
 
*'''Name''' - Item name
*'''Desc''' - Description of alt-fire mode
*'''Image''' - Image name of item, excluding the ''file:'' part
*'''Perk''' - Related perk
*'''Cost''' - Cost at the trader
 
*'''Weight''' - Amount of blocks this item takes up
 
'''Combat stats'''
*'''AmmoType''' - Ammunition that is bought, can be magazine or shell
*'''AmmoCost''' - Cost of each clip (mag)
*'''AmmoBuyAmount''' - How much ammo the ''buy clip'' button buys (instead of specifying AmmoType)
*'''Capacity''' - Total ammo capacity
*'''Magazine''' - Magazine capacity
*'''Damage''' - Damage per shot (or pellet in the case of shotguns)
*'''Radius''' - Size of radius for area of effect weapons (explosions etc)
*'''HeadMul''' - Head shot multiplier, represented as a percentage
*'''Pellets''' - Amount of pellets per shot. Used for shotguns
*'''Spread''' - Potential amount of spread per shot/bullet
*'''Penetration''' - Penetration quantity and damage reduction separated by a colon (ie. 5 : 0.75)
*'''ROF''' - Rate of fire, expressed as seconds between shots
*'''ReloadTime''' - Reload time, expressed as seconds
 
'''Misc'''
 
*'''AddOns''' - Attachments such as flashlight, laser sight, etc.
*'''CanSellBuy''' - Can weapon be bought/sold?


</div>
</noinclude>
</noinclude>

Latest revision as of 17:51, 26 December 2012

This template is a work in progress.

To do

  • Need to add the following stats: ammo cost, recoil, reload type (mag, shell, etc).
  • Add burn damage? Does it depend on the weapon used to set alight?

Usage

Killing Floor item
MP7M
Alt-fire fires a healing dart
General Information
Perk Field Medic
Cost £3000
Weight 3
Can sell/buy Yes
- -
Weapon Information
Ammo cost (Magazine) £10
Ammo capacity 400 (N/A)
Magazine capacity 20
Damage 25 (20)
Impact damage {{{ImpactDamage}}}
Radius {{{Radius}}}
Head multiplier 110%
Pellets {{{Pellets}}}
Spread 0.01
Penetration {{{Penetration}}}
Rate of fire 0.06 (0.50)
Reload time 3.17
Regen rate {{{RegenRate}}}
Misc
Attachments {{{AddOns}}}

Values listed in brackets are for alternate (secondary) fire.


{{Inventory info
|Name=MP7M
|Desc=Alt-fire fires a healing dart
|Image=Trader MP7m.png
|Perk=Field Medic
|Cost=3000
|Weight=3
|AmmoType=Magazine
|AmmoCost=10
|Damage=25 (20)
|ROF=0.06 (0.50)
|Capacity=400 (N/A)
|Magazine=20
|CanSellBuy=Yes
|Spread=0.01
|ReloadTime=3.17
|HeadMul=110%
}}

Available parameters

ID

  • Name - Item name
  • Desc - Description of alt-fire mode
  • Image - Image name of item, excluding the file: part
  • Perk - Related perk
  • Cost - Cost at the trader
  • Weight - Amount of blocks this item takes up

Combat stats

  • AmmoType - Ammunition that is bought, can be magazine or shell
  • AmmoCost - Cost of each clip (mag)
  • AmmoBuyAmount - How much ammo the buy clip button buys (instead of specifying AmmoType)
  • Capacity - Total ammo capacity
  • Magazine - Magazine capacity
  • Damage - Damage per shot (or pellet in the case of shotguns)
  • Radius - Size of radius for area of effect weapons (explosions etc)
  • HeadMul - Head shot multiplier, represented as a percentage
  • Pellets - Amount of pellets per shot. Used for shotguns
  • Spread - Potential amount of spread per shot/bullet
  • Penetration - Penetration quantity and damage reduction separated by a colon (ie. 5 : 0.75)
  • ROF - Rate of fire, expressed as seconds between shots
  • ReloadTime - Reload time, expressed as seconds

Misc

  • AddOns - Attachments such as flashlight, laser sight, etc.
  • CanSellBuy - Can weapon be bought/sold?