Template:KF2WeaponInfo: Difference between revisions

From Tripwire Interactive Wiki
Jump to navigation Jump to search
(Fixed "space above the Secondary Ammo section isn't displayed properly")
(Fixed "width of fire-rate bar was still too small")
Line 8: Line 8:
|- {{#if: {{{Damage|}}} | style="height: 20px" | style="display: none;"}}
|- {{#if: {{{Damage|}}} | style="height: 20px" | style="display: none;"}}
| style="padding-left: 12px; width: 135px;" | '''Damage'''
| style="padding-left: 12px; width: 135px;" | '''Damage'''
| colspan="2" style="width: 115px;" | <div style="background: #202224; border: #a6a7a9 solid 1px; box-shadow: inset 0 0 0 1px #000000; display: table-cell; height: 12px; margin-top: 4px; width: 102px;"><div style="background: #ffffff; height: 10px; position: relative; top: 1px; left: 1px; width: {{#expr: (({{#ifeq: {{#expr: {{{Damage}}} / 820 <= 1}} | 1 | {{#expr: {{{Damage}}} / 820}} | 1 }}) ^ 0.5) * 100 }}px"></div></div>
| colspan="2" style="width: 158px;" | <div style="background: #202224; border: #a6a7a9 solid 1px; box-shadow: inset 0 0 0 1px #000000; display: table-cell; height: 12px; margin-top: 4px; width: 102px;"><div style="background: #ffffff; height: 10px; position: relative; top: 1px; left: 1px; width: {{#expr: (({{#ifeq: {{#expr: {{{Damage}}} / 820 <= 1}} | 1 | {{#expr: {{{Damage}}} / 820}} | 1 }}) ^ 0.5) * 100 }}px"></div></div>
| style="padding-right: 12px; text-align: right;" | {{#expr: {{{Damage}}} round 0}}
| style="padding-right: 12px; text-align: right;" | {{#expr: {{{Damage}}} round 0}}
|- {{#if: {{{FireRate|}}} | style="height: 20px" | style="display: none;"}}
|- {{#if: {{{FireRate|}}} | style="height: 20px" | style="display: none;"}}
| style="padding-left: 12px; width: 135px;" | '''Fire Rate'''
| style="padding-left: 12px; width: 135px;" | '''Fire Rate'''
| colspan="2" style="width: 115px;" | <div style="background: #202224; border: #a6a7a9 solid 1px; box-shadow: inset 0 0 0 1px #000000; display: table-cell; height: 12px; margin-top: 4px; width: 102px;"><div style="background: #ffffff; height: 10px; position: relative; top: 1px; left: 1px; width: {{#expr: ({{#ifeq: {{#expr: {{{FireRate}}} / 800 <= 1}} | 1 | {{#expr: {{{FireRate}}} / 800}} | 1 }}) * 100 }}px"></div></div>
| colspan="2" style="width: 158px;" | <div style="background: #202224; border: #a6a7a9 solid 1px; box-shadow: inset 0 0 0 1px #000000; display: table-cell; height: 12px; margin-top: 4px; width: 102px;"><div style="background: #ffffff; height: 10px; position: relative; top: 1px; left: 1px; width: {{#expr: ({{#ifeq: {{#expr: {{{FireRate}}} / 800 <= 1}} | 1 | {{#expr: {{{FireRate}}} / 800}} | 1 }}) * 100 }}px"></div></div>
| style="padding-right: 12px; text-align: right;" | {{#expr: {{{FireRate}}} round 0}}
| style="padding-right: 12px; text-align: right;" | {{#expr: {{{FireRate}}} round 0}}
|- {{#if: {{{Accuracy|}}} | style="height: 20px" | style="display: none;"}}
|- {{#if: {{{Accuracy|}}} | style="height: 20px" | style="display: none;"}}
| style="padding-left: 12px; width: 135px;" | '''Accuracy'''
| style="padding-left: 12px; width: 135px;" | '''Accuracy'''
| colspan="2" style="width: 115px;" | <div style="background: #202224; border: #a6a7a9 solid 1px; box-shadow: inset 0 0 0 1px #000000; display: table-cell; height: 12px; margin-top: 4px; width: 102px;"><div style="background: #ffffff; height: 10px; position: relative; top: 1px; left: 1px; width: {{#expr: (({{#ifeq: {{#expr: {{{Accuracy}}} / 100 <= 1}} | 1 | {{#expr: {{{Accuracy}}} / 100}} | 1 }}) ^ 0.5) * 100 }}px"></div></div>
| colspan="2" style="width: 158px;" | <div style="background: #202224; border: #a6a7a9 solid 1px; box-shadow: inset 0 0 0 1px #000000; display: table-cell; height: 12px; margin-top: 4px; width: 102px;"><div style="background: #ffffff; height: 10px; position: relative; top: 1px; left: 1px; width: {{#expr: (({{#ifeq: {{#expr: {{{Accuracy}}} / 100 <= 1}} | 1 | {{#expr: {{{Accuracy}}} / 100}} | 1 }}) ^ 0.5) * 100 }}px"></div></div>
| style="padding-right: 12px; text-align: right;" | {{#expr: {{{Accuracy}}} round 0}}
| style="padding-right: 12px; text-align: right;" | {{#expr: {{{Accuracy}}} round 0}}
|- {{#if: {{{Penetration|}}} | style="height: 20px" | style="display: none;"}}
|- {{#if: {{{Penetration|}}} | style="height: 20px" | style="display: none;"}}
| style="padding-left: 12px; width: 135px;" | '''Penetration'''
| style="padding-left: 12px; width: 135px;" | '''Penetration'''
| colspan="2" style="width: 115px;" | <div style="background: #202224; border: #a6a7a9 solid 1px; box-shadow: inset 0 0 0 1px #000000; display: table-cell; height: 12px; margin-top: 4px; width: 102px;"><div style="background: #ffffff; height: 10px; position: relative; top: 1px; left: 1px; width: {{#expr: ({{#ifeq: {{#expr: {{{Penetration}}} / 4 <= 1}} | 1 | {{#expr: {{{Penetration}}} / 4}} | 1 }}) * 100 }}px"></div></div>
| colspan="2" style="width: 158px;" | <div style="background: #202224; border: #a6a7a9 solid 1px; box-shadow: inset 0 0 0 1px #000000; display: table-cell; height: 12px; margin-top: 4px; width: 102px;"><div style="background: #ffffff; height: 10px; position: relative; top: 1px; left: 1px; width: {{#expr: ({{#ifeq: {{#expr: {{{Penetration}}} / 4 <= 1}} | 1 | {{#expr: {{{Penetration}}} / 4}} | 1 }}) * 100 }}px"></div></div>
| style="padding-right: 12px; text-align: right;" | {{#expr: {{{Penetration}}} round 1}}
| style="padding-right: 12px; text-align: right;" | {{#expr: {{{Penetration}}} round 1}}
|- {{#if: {{{MagazineSize|}}} | style="height: 20px" | style="display: none;"}}
|- {{#if: {{{MagazineSize|}}} | style="height: 20px" | style="display: none;"}}

Revision as of 22:23, 31 July 2016


Killing Floor 2 item
9mm Pistol
Damage
15
Fire Rate
343
Accuracy
50
Penetration
0
Magazine Size 15
Ammo Capacity 225
• Fire mode is semi-auto only.
• This is the standard 9mm pistol. Simple and cheap (very cheap, frankly, to you), it is the basic sidearm for all Horzine operatives.
General Information
Perk All
Pricing 0
Weight 0
Weapon Information
Starting Ammo 15 + 105
Ammo Cost 8
Block (damage multiplier) ×1
Parry (damage multiplier) ×1
Weapon Type Pistol
Secondary Ammo
Ammo Type Healing Darts
Heal Amount (coop) 0
Heal Amount (solo) 0
Heal Amount (per second) 0
Heal Recharge Time (coop) 0s
Heal Recharge Time (solo) 0s
Heal Duration 0s
Magazine Size 0
Ammo Capacity 100
Starting Ammo 100
Ammo Consumption (per use) 0
Ammo Cost 0
Related Achievements


Syntax

Parameters

{{KF2WeaponInfo

| Name= Name of the weapon Example: 9mm Pistol

| PerkImage= Name of the image of the corresponding perk Example: KF2_No_Perk_White.png

| PerkLink= Name of the page of the corresponding perk Example: Perks (Killing Floor 2)

| WeaponImage= Name of the image of the corresponding weapon Example: KF29mm Pistol.png

| Damage= Damage value of the weapon Example: 15.000000

| FireRate= Fire Rate value of the weapon Example: 342.857147

| Accuracy= Accuracy value of the weapon Example: 50.000000

| Penetration= Penetration value of the weapon Example: 0.000000

| MagazineSize= Magazine capacity Example: 15

| AmmoCapacity= Maximum spare ammo Example: 225

| Description= Trader descripton of the weapon Example: • Fire mode is semi-auto only.
• This is the standard 9mm pistol. Simple and cheap (very cheap, frankly, to you), it is the basic sidearm for all Horzine operatives.

|

| PerkName= Name of the corresponding perk Example: All

| Pricing= How much the weapon costs at the trader Example: 0

| Weight= How much the weapon weights Example: 0

|

| InitialSpareMags= How much spare magazines you have
Displays "Starting Ammo"
Example: 7

| AmmoCost= How much one magazine costs Example: 8

| Block= Damage multiplier while blocking Example: 1

| Parry= Damage multiplier while parrying Example: 1

| WeaponType= The weapons weapon type Example: Pistol

|

| SecondaryAmmoType= Ammo Type of the secondary Ammunition Example: Healing Dart

| SecondaryAmmoImage= Name of the Image of the corresponding Ammo Type Example: KF2_SecondaryAmmo_MedicDarts_Gray.png

| HealAmount= How much the Healing Dart heals other players Example: 0

| HealAmountSolo= How much you heal yourself (Syringe only) Example: 0

| HealAmountGrenade= How much you heal per second (Grenade only) Example: 0

| HealRecharge= How long it takes until the Healing Dart / Syringe is fully charged after healing other players Example: 0

| HealRechargeSolo= How long it takes until the Syringe is fully charged after healing yourself (Syringe only) Example: 0

| HealDuration= How long the Medic Grenade lasts (Grenade only) Example: 0

| SecondaryMagazineSize= Magazine Size of the secondary Ammo Type Example: 0

| SecondaryAmmoCapacity= Maximum spare ammo of the secondary Ammo Type Example: 100

| SecondaryAmmoConsumption= How much ammo it takes to use one shot / attack with the weapon Example: 0

| SecondaryAmmoCost= How much one magazine costs of the secondary Ammo Type Example: 0

|

| Achievement_0_Image= Name of the image of the corresponding achievement Example: KF2_Achievement_109.jpg

| Achievement_0_Name= Name of the achievement the weapon is related to Example: School's Out Forever

| Achievement_1_Image=

| Achievement_1_Name=

|          .
|          .
|          .
.
.
.
.
.
.

| Achievement_9_Image=

| Achievement_9_Name=

}}

Weapon Types

There are 10 specific choices for this section.

Weapon Type Corresponding Image
Pistol
Shotgun
Rifle
Projectile
Flame Weapon
Electric Weapon
Explosive
Assault Rifle
Melee Weapon
SMG

Template

Copy this template for quick usage.

{{KF2WeaponInfo
| Name=
| PerkImage=
| PerkLink=
| WeaponImage=
| Damage=
| FireRate=
| Accuracy=
| Penetration=
| MagazineSize=
| AmmoCapacity=
| Description=
|
| PerkName=
| Pricing=
| Weight=
|
| InitialSpareMags=
| AmmoCost=
| Block=
| Parry=
| WeaponType=
|
| SecondaryAmmoType=
| SecondaryAmmoImage=
| HealAmount=
| HealAmountSolo=
| HealAmountGrenade=
| HealRecharge=
| HealRechargeSolo=
| HealDuration=
| SecondaryMagazineSize=
| SecondaryAmmoCapacity=
| SecondaryAmmoConsumption=
| SecondaryAmmoCost=
|
| Achievement_0_Image=
| Achievement_0_Name=
| Achievement_1_Image=
| Achievement_1_Name=
| Achievement_2_Image=
| Achievement_2_Name=
| Achievement_3_Image=
| Achievement_3_Name=
| Achievement_4_Image=
| Achievement_4_Name=
| Achievement_5_Image=
| Achievement_5_Name=
| Achievement_6_Image=
| Achievement_6_Name=
| Achievement_7_Image=
| Achievement_7_Name=
| Achievement_8_Image=
| Achievement_8_Name=
| Achievement_9_Image=
| Achievement_9_Name=
}}