Template:KF2WeaponInfo: Difference between revisions
Jump to navigation
Jump to search
(Completely reworked custom entries (there are now infinite possible custom entries), added "Technical Information" section (also uses new infinite custom entries method), optimized code, added up to 20 achievements, changed some variables-names) |
(Spelling) |
||
Line 129: | Line 129: | ||
|- {{#if: {{{HealAmount|}}}{{{HealAmount_Solo|}}}{{{FullRechargeTime|}}}{{{FullRechargeTime_SelfInjection|}}} | style="height: 6px;" | style="display: none;"}} | |- {{#if: {{{HealAmount|}}}{{{HealAmount_Solo|}}}{{{FullRechargeTime|}}}{{{FullRechargeTime_SelfInjection|}}} | style="height: 6px;" | style="display: none;"}} | ||
| colspan="4" style="padding: 0; height: 6px;" | | | colspan="4" style="padding: 0; height: 6px;" | | ||
|- {{#if: {{{ | |- {{#if: {{{Custom_Entries|}}} || style="display: none;"}} | ||
| colspan="4" style="padding: 0 12px;" | {{{ | | colspan="4" style="padding: 0 12px;" | {{{Custom_Entries|}}} | ||
|- {{#if: {{{ | |- {{#if: {{{Custom_Entries|}}} | style="height: 6px;" | style="display: none;"}} | ||
| colspan="4" style="padding: 0; height: 6px;" | | | colspan="4" style="padding: 0; height: 6px;" | | ||
|- {{#if: {{{ | |- {{#if: {{{Technical_Entries|}}} | style="background: #000000; color: #ffffff; text-align: center;" | style="display: none;"}} | ||
| colspan="4" style="padding: 0; background: linear-gradient(transparent 50%, #202224 50%), linear-gradient(135deg, transparent 5px, #bd0000 0, #bd0000 60%, transparent 60%) top left, linear-gradient(225deg, transparent 5px, #bd0000 0, #bd0000 60%, transparent 60%) top right; vertical-align: top; position: relative; top: 2px; height: 43px; width: 100%;" | <div style="background: linear-gradient(135deg, transparent 5px, #202224 0, #202224 60%, transparent 60%) top left, linear-gradient(225deg, transparent 5px, #202224 0, #202224 60%, transparent 60%) top right; display: table; padding: 0; position: relative; left: 0; top: 5px; height: 30px; width: 100%;"><div style="display: table-cell; vertical-align: middle;">'''Technical Information'''</div></div><div style="background: linear-gradient(135deg, transparent 5px, #000000 0, #000000 60%, transparent 60%) top left, linear-gradient(225deg, transparent 5px, #000000 0, #000000 60%, transparent 60%) top right; height: 8px; left: 0; position: absolute; top: 35px; width: 100%;"></div> | | colspan="4" style="padding: 0; background: linear-gradient(transparent 50%, #202224 50%), linear-gradient(135deg, transparent 5px, #bd0000 0, #bd0000 60%, transparent 60%) top left, linear-gradient(225deg, transparent 5px, #bd0000 0, #bd0000 60%, transparent 60%) top right; vertical-align: top; position: relative; top: 2px; height: 43px; width: 100%;" | <div style="background: linear-gradient(135deg, transparent 5px, #202224 0, #202224 60%, transparent 60%) top left, linear-gradient(225deg, transparent 5px, #202224 0, #202224 60%, transparent 60%) top right; display: table; padding: 0; position: relative; left: 0; top: 5px; height: 30px; width: 100%;"><div style="display: table-cell; vertical-align: middle;">'''Technical Information'''</div></div><div style="background: linear-gradient(135deg, transparent 5px, #000000 0, #000000 60%, transparent 60%) top left, linear-gradient(225deg, transparent 5px, #000000 0, #000000 60%, transparent 60%) top right; height: 8px; left: 0; position: absolute; top: 35px; width: 100%;"></div> | ||
|- {{#if: {{{ | |- {{#if: {{{Technical_Entries|}}} || style="display: none;"}} | ||
| colspan="4" style="padding: 0 12px;" | {{{ | | colspan="4" style="padding: 0 12px;" | {{{Technical_Entries|}}} | ||
|- {{#if: {{{ | |- {{#if: {{{Technical_Entries|}}} | style="height: 6px;" | style="display: none;"}} | ||
| colspan="4" style="padding: 0; height: 6px;" | | | colspan="4" style="padding: 0; height: 6px;" | | ||
|- {{#if: {{{Achievement_0_Name|}}}{{{Achievement_1_Name|}}}{{{Achievement_2_Name|}}}{{{Achievement_3_Name|}}}{{{Achievement_4_Name|}}}{{{Achievement_5_Name|}}}{{{Achievement_6_Name|}}}{{{Achievement_7_Name|}}}{{{Achievement_8_Name|}}}{{{Achievement_9_Name|}}}{{{Achievement_10_Name|}}}{{{Achievement_11_Name|}}}{{{Achievement_12_Name|}}}{{{Achievement_13_Name|}}}{{{Achievement_14_Name|}}}{{{Achievement_15_Name|}}}{{{Achievement_16_Name|}}}{{{Achievement_17_Name|}}}{{{Achievement_18_Name|}}}{{{Achievement_19_Name|}}} | style="background: #000000; color: #ffffff; text-align: center;" | style="display: none;"}} | |- {{#if: {{{Achievement_0_Name|}}}{{{Achievement_1_Name|}}}{{{Achievement_2_Name|}}}{{{Achievement_3_Name|}}}{{{Achievement_4_Name|}}}{{{Achievement_5_Name|}}}{{{Achievement_6_Name|}}}{{{Achievement_7_Name|}}}{{{Achievement_8_Name|}}}{{{Achievement_9_Name|}}}{{{Achievement_10_Name|}}}{{{Achievement_11_Name|}}}{{{Achievement_12_Name|}}}{{{Achievement_13_Name|}}}{{{Achievement_14_Name|}}}{{{Achievement_15_Name|}}}{{{Achievement_16_Name|}}}{{{Achievement_17_Name|}}}{{{Achievement_18_Name|}}}{{{Achievement_19_Name|}}} | style="background: #000000; color: #ffffff; text-align: center;" | style="display: none;"}} | ||
Line 227: | Line 227: | ||
| FullRechargeTime_SelfInjection=0 | | FullRechargeTime_SelfInjection=0 | ||
| | | | ||
| | | Custom_Entries= | ||
{{KF2VariousInfo_CustomEntry | '''Custom Entry''' | Custom Value | AddSpaceAfterEntry=true }} | {{KF2VariousInfo_CustomEntry | '''Custom Entry''' | Custom Value | AddSpaceAfterEntry=true }} | ||
{{KF2VariousInfo_CustomEntry | '''Heal Amount''' <small>(per second)</small> | 5 ✚ }} | {{KF2VariousInfo_CustomEntry | '''Heal Amount''' <small>(per second)</small> | 5 ✚ }} | ||
{{KF2VariousInfo_CustomEntry | '''Heal Duration''' | 8s | Custom Description | Last=true }} | {{KF2VariousInfo_CustomEntry | '''Heal Duration''' | 8s | Custom Description | Last=true }} | ||
| | | | ||
| | | Technical_Entries= | ||
{{KF2VariousInfo_CustomEntry | '''Technical Entry''' | Technical Value | Technical Description | Last=true }} | {{KF2VariousInfo_CustomEntry | '''Technical Entry''' | Technical Value | Technical Description | Last=true }} | ||
| | | | ||
Line 637: | Line 637: | ||
---- | ---- | ||
|- | |- | ||
| style="font-family: monospace, Courier; vertical-align: top; white-space: nowrap;" | <nowiki>| | | style="font-family: monospace, Courier; vertical-align: top; white-space: nowrap;" | <nowiki>| Custom_Entries=</nowiki><br /><small><nowiki> {{KF2VariousInfo_CustomEntry|1|2|3}}</nowiki><br /><nowiki> {{KF2VariousInfo_CustomEntry|1|2|3}}</nowiki><br /><nowiki> {{KF2VariousInfo_CustomEntry|1|2|3|AddSpaceAfterEntry=true}}</nowiki><br /><nowiki> {{KF2VariousInfo_CustomEntry|1|2|3}}</nowiki><br /><nowiki> {{KF2VariousInfo_CustomEntry|1|2|3|Last=true}}</nowiki></small> | ||
| style="vertical-align: top;" |   | | style="vertical-align: top;" |   | ||
| style="vertical-align: top;" | Additional custom entries | | style="vertical-align: top;" | Additional custom entries | ||
Line 658: | Line 658: | ||
---- | ---- | ||
|- | |- | ||
| style="font-family: monospace, Courier; vertical-align: top; white-space: nowrap;" | <nowiki>| | | style="font-family: monospace, Courier; vertical-align: top; white-space: nowrap;" | <nowiki>| Custom_Entries=</nowiki><br /><small><nowiki> {{KF2VariousInfo_CustomEntry|1|2|3}}</nowiki><br /><nowiki> {{KF2VariousInfo_CustomEntry|1|2|3}}</nowiki><br /><nowiki> {{KF2VariousInfo_CustomEntry|1|2|3|AddSpaceAfterEntry=true}}</nowiki><br /><nowiki> {{KF2VariousInfo_CustomEntry|1|2|3}}</nowiki><br /><nowiki> {{KF2VariousInfo_CustomEntry|1|2|3|Last=true}}</nowiki></small> | ||
| style="vertical-align: top;" |   | | style="vertical-align: top;" |   | ||
| style="vertical-align: top;" | Additional technical entries | | style="vertical-align: top;" | Additional technical entries | ||
Line 846: | Line 846: | ||
| FullRechargeTime_SelfInjection= | | FullRechargeTime_SelfInjection= | ||
| | | | ||
| | | Custom_Entries= | ||
{{KF2VariousInfo_CustomEntry|1|2|3}} | {{KF2VariousInfo_CustomEntry|1|2|3}} | ||
| | | | ||
| | | Technical_Entries= | ||
{{KF2VariousInfo_CustomEntry|1|2|3}} | {{KF2VariousInfo_CustomEntry|1|2|3}} | ||
| | | | ||
Line 872: | Line 872: | ||
| Achievement_9_Image= | | Achievement_9_Image= | ||
| Achievement_9_Name= | | Achievement_9_Name= | ||
| Achievement_10_Image= | |||
| Achievement_10_Name= | |||
| Achievement_11_Image= | |||
| Achievement_11_Name= | |||
| Achievement_12_Image= | |||
| Achievement_12_Name= | |||
| Achievement_13_Image= | |||
| Achievement_13_Name= | |||
| Achievement_14_Image= | |||
| Achievement_14_Name= | |||
| Achievement_15_Image= | |||
| Achievement_15_Name= | |||
| Achievement_16_Image= | |||
| Achievement_16_Name= | |||
| Achievement_17_Image= | |||
| Achievement_17_Name= | |||
| Achievement_18_Image= | |||
| Achievement_18_Name= | |||
| Achievement_19_Image= | |||
| Achievement_19_Name= | |||
| | | | ||
| GameVersion= | | GameVersion= |
Revision as of 20:39, 19 January 2017
Killing Floor 2 item | |||
Magazine Size | 15 | ||
Ammo Capacity | 225 | ||
Damage | 15 | ||
Fire Rate | 343 | ||
Accuracy | 50 | ||
Penetration | 0 | ||
• 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 | ||
Alternative Weapon Type | Electric Weapon | ||
Secondary Ammunition | |||
Ammo Type | M203 Grenade | ||
Magazine Size | 1 | ||
Ammo Capacity | 12 | ||
Damage | 10 | ||
Fire Rate | 300 | ||
Accuracy | 25 | ||
Penetration | 1 | ||
Starting Ammo | 1 + 3 | ||
Ammo Consumption (per use) | 0 | ||
Ammo Cost | 13 | ||
Heal Amount | 0 ✚ | ||
Heal Amount (solo) | 0 ✚ | ||
Full Recharge Time | 0s | ||
Full Recharge Time (self injection) | 0s | ||
Custom Entry Custom Value Heal Amount (per second) 5 ✚ Heal Duration 8s Custom Description
| |||
Technical Information | |||
Technical Entry Technical Value Technical Description
| |||
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 | ||
| |||||
| MagazineSize= | Magazine capacity | Example: | 15 | ||
| |||||
| AmmoCapacity= | Maximum spare ammo | Example: | 225 | ||
| |||||
| 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 | ||
| |||||
| 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 | ||
| |||||
| AlternativeWeaponType= | The weapons alternative weapon type | Example: | Electric Weapon | ||
| |||||
| | |||||
| |||||
| SecondaryAmmunition_AmmoType= | Ammo Type of the secondary Ammunition | Example: | M203 Grenade | ||
| |||||
| SecondaryAmmunition_AmmoImage= | Name of the Image of the corresponding Ammo Type | Example: | KF2_SecondaryAmmo_Grenade_Gray.png | ||
| |||||
| SecondaryAmmunition_MagazineSize= | Magazine Size of the secondary Ammo Type | Example: | 1 | ||
| |||||
| SecondaryAmmunition_AmmoCapacity= | Maximum ammo of the secondary Ammo Type | Example: | 12 | ||
| |||||
| SecondaryAmmunition_Damage= | Damage value of the secondary Ammo Type | Example: | 10.000000 | ||
| |||||
| SecondaryAmmunition_FireRate= | Fire Rate value of the secondary Ammo Type | Example: | 300.000000 | ||
| |||||
| SecondaryAmmunition_Accuracy= | Accuracy value of the secondary Ammo Type | Example: | 25.000000 | ||
| |||||
| SecondaryAmmunition_Penetration= | Penetration value of the secondary Ammo Type | Example: | 1.000000 | ||
| |||||
| SecondaryAmmunition_InitialSpareMags= | Initial ammo of the secondary Ammo Type | Example: | 4 | ||
| |||||
| SecondaryAmmunition_AmmoConsumption= | How much ammo it takes to use one shot / attack with the weapon | Example: | 0 | ||
| |||||
| HealAmount= | How much the Healing Dart heals other players | Example: | 0 | ||
| |||||
| HealAmount_Solo= | How much you heal yourself (Syringe only) | Example: | 0 | ||
| |||||
| FullRechargeTime= | How long it takes until the Healing Dart / Syringe is fully charged after healing other players | Example: | 0 | ||
| |||||
| FullRechargeTime_SelfInjection= | How long it takes until the Syringe is fully charged after healing yourself (Syringe only) | Example: | 0 | ||
| |||||
| SecondaryAmmunition_AmmoCost= | How much one magazine costs of the secondary Ammo Type | Example: | 13 | ||
| |||||
| | |||||
| |||||
| Custom_Entries= {{KF2VariousInfo_CustomEntry|1|2|3}} {{KF2VariousInfo_CustomEntry|1|2|3}} {{KF2VariousInfo_CustomEntry|1|2|3|AddSpaceAfterEntry=true}} {{KF2VariousInfo_CustomEntry|1|2|3}} {{KF2VariousInfo_CustomEntry|1|2|3|Last=true}} |
Additional custom entries
1 - Entry Title AddSpaceAfterEntry=true Last=true |
Example: | {{KF2VariousInfo_CustomEntry|'''Custom Entry'''|Custom Value|AddSpaceAfterEntry=true}} {{KF2VariousInfo_CustomEntry|'''Heal Amount''' <small>(per second)</small>|5 ✚}} {{KF2VariousInfo_CustomEntry|'''Heal Duration'''|8s|Custom Description|Last=true}} | ||
| |||||
| | |||||
| |||||
| Custom_Entries= {{KF2VariousInfo_CustomEntry|1|2|3}} {{KF2VariousInfo_CustomEntry|1|2|3}} {{KF2VariousInfo_CustomEntry|1|2|3|AddSpaceAfterEntry=true}} {{KF2VariousInfo_CustomEntry|1|2|3}} {{KF2VariousInfo_CustomEntry|1|2|3|Last=true}} |
Additional technical entries
1 - Entry Title AddSpaceAfterEntry=true Last=true |
Example: | {{KF2VariousInfo_CustomEntry|'''Technical Entry'''|Technical Value|Technical Description|Last=true}} | ||
| |||||
| | |||||
| |||||
| 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_19_Image= | |||||
| |||||
| Achievement_19_Name= | |||||
| |||||
| | |||||
| |||||
| GameVersion= | Version of Killing Floor 2 these stats are taken from | Example: | 1042 | ||
| |||||
}} |
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= | MagazineSize= | AmmoCapacity= | Damage= | FireRate= | Accuracy= | Penetration= | Description= | | PerkName= | Pricing= | Weight= | | InitialSpareMags= | AmmoCost= | Block= | Parry= | WeaponType= | AlternativeWeaponType= | | SecondaryAmmunition_AmmoType= | SecondaryAmmunition_AmmoImage= | SecondaryAmmunition_MagazineSize= | SecondaryAmmunition_AmmoCapacity= | SecondaryAmmunition_Damage= | SecondaryAmmunition_FireRate= | SecondaryAmmunition_Accuracy= | SecondaryAmmunition_Penetration= | SecondaryAmmunition_InitialSpareMags= | SecondaryAmmunition_AmmoConsumption= | SecondaryAmmunition_AmmoCost= | HealAmount= | HealAmount_Solo= | FullRechargeTime= | FullRechargeTime_SelfInjection= | | Custom_Entries= {{KF2VariousInfo_CustomEntry|1|2|3}} | | Technical_Entries= {{KF2VariousInfo_CustomEntry|1|2|3}} | | 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= | Achievement_10_Image= | Achievement_10_Name= | Achievement_11_Image= | Achievement_11_Name= | Achievement_12_Image= | Achievement_12_Name= | Achievement_13_Image= | Achievement_13_Name= | Achievement_14_Image= | Achievement_14_Name= | Achievement_15_Image= | Achievement_15_Name= | Achievement_16_Image= | Achievement_16_Name= | Achievement_17_Image= | Achievement_17_Name= | Achievement_18_Image= | Achievement_18_Name= | Achievement_19_Image= | Achievement_19_Name= | | GameVersion= }}