Template:KF2WeaponInfo: Difference between revisions

From Tripwire Interactive Wiki
Jump to navigation Jump to search
(Added support for the medic grenade (healing over time))
(Fixed "space above the Secondary Ammo section isn't displayed properly")
Line 68: Line 68:
| colspan="2" style="padding-left: 12px; vertical-align: top; white-space: nowrap;" | '''Weapon Type'''
| colspan="2" style="padding-left: 12px; vertical-align: top; white-space: nowrap;" | '''Weapon Type'''
| colspan="2" style="padding-right: 12px; text-align: right;" | {{{WeaponType}}} [[File:KF2_WeaponType_{{{WeaponType}}}_Gray.png|top|20px|link=]]
| colspan="2" style="padding-right: 12px; text-align: right;" | {{{WeaponType}}} [[File:KF2_WeaponType_{{{WeaponType}}}_Gray.png|top|20px|link=]]
|- {{#ifexpr: ({{#if: {{{InitialSpareMags|}}} | 1 | 0}} or {{#if: {{{AmmoCost|}}} | 1 | 0}} or {{#if: {{{Block|}}} | 1 | 0}} or {{#if: {{{Parry|}}} | 1 | 0}} or {{#if: {{{WeaponType|}}} | 1 | 0}}) and ({{#if: {{{SecondaryAmmoType|}}} | 1 | 0}} or {{#if: {{{HealAmount|}}} | 1 | 0}} or {{#if: {{{HealAmountSolo|}}} | 1 | 0}} or {{#if: {{{HealRecharge|}}} | 1 | 0}} or {{#if: {{{HealRechargeSolo|}}} | 1 | 0}} or {{#if: {{{SecondaryMagazineSize|}}} | 1 | 0}} or {{#if: {{{SecondaryAmmoCapacity|}}} | 1 | 0}} or {{#if: {{{SecondaryAmmoConsumption|}}} | 1 | 0}} or {{#if: {{{SecondaryAmmoCost|}}} | 1 | 0}}) || style="display: none;"}}
|- {{#ifexpr: ({{#if: {{{InitialSpareMags|}}} | 1 | 0}} or {{#if: {{{AmmoCost|}}} | 1 | 0}} or {{#if: {{{Block|}}} | 1 | 0}} or {{#if: {{{Parry|}}} | 1 | 0}} or {{#if: {{{WeaponType|}}} | 1 | 0}}) and ({{#if: {{{SecondaryAmmoType|}}} | 1 | 0}} or {{#if: {{{HealAmount|}}} | 1 | 0}} or {{#if: {{{HealAmountSolo|}}} | 1 | 0}} or {{#if: {{{HealAmountGrenade|}}} | 1 | 0}} or {{#if: {{{HealRecharge|}}} | 1 | 0}} or {{#if: {{{HealRechargeSolo|}}} | 1 | 0}} or {{#if: {{{HealDuration|}}} | 1 | 0}} or {{#if: {{{SecondaryMagazineSize|}}} | 1 | 0}} or {{#if: {{{SecondaryAmmoCapacity|}}} | 1 | 0}} or {{#if: {{{SecondaryAmmoConsumption|}}} | 1 | 0}} or {{#if: {{{SecondaryAmmoCost|}}} | 1 | 0}}) || style="display: none;"}}
| colspan="4" style="height: 6px;" |  
| colspan="4" style="height: 6px;" |  
|- {{#if: {{{SecondaryAmmoType|}}} | style="height: 20px" | style="display: none;"}}
|- {{#if: {{{SecondaryAmmoType|}}} | style="height: 20px" | style="display: none;"}}

Revision as of 13:44, 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=
}}