Template:KV BaseTank: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added descriptions for all these. Not difficult to do.)
(updates)
Line 1: Line 1:
{{ScrollBox|title=BaseTank|
{{minititle|BaseTank}}
{{KV|Control Volume|target_destination|Name of a trigger the player must be inside to control the tank.}}
{{KV|Bullets (bullet)|choices|Ammo type. Be aware that some games will use '''Ammo type''' instead.}}
{{KV|(Team) Master|string|(Team) Master}}
:{| class=standard-table
{{KV|Yaw rate|string|How fast tank can look left or right.}}
! Literal value || Description
{{KV|Yaw range|string|How far tank can turn left or right.}}
|-
{{KV|Yaw tolerance|string|Additional left-right range. If the gun tries to turn beyond '''Yaw range + Yaw tolerance''', the gun will snap back to the maximum '''Yaw range'''.}}
| 0 || None
{{KV|Pitch rate|string|How fast tank can look up or down}}
|-
{{KV|Pitch range|string|How far tank can turn up or down}}
| 1 || Pistol
{{KV|Pitch tolerance|string|Additional up-down range. If the gun tries to turn beyond '''Pitch range + Pitch tolerance''', the gun will snap back to the maximum '''Pitch range'''.}}
|-
{{KV|Barrel Length|string|Solid length of the tank barrel. Any part of the barrel beyond this length may clip through objects.}}
| 2 || SMG1
{{KV|Barrel Horizontal|string|How wide the barrel is, horizontally.}}}
|-
{{KV|Barrel Vertical|string|How wide the barrel is, vertically.}}
| 3 || AR2 (shows pistol/smg1 bullets?)
{{KV|Smoke Sprite|sprite|Smoke sprite to emit when gun fires. {{bug|Transparency may not work.}}}}
|-
{{KV|Flash Sprite|sprite|Flash sprite to emit when gun fires.}}
| 4 || Laser (does nothing)
{{KV|Sprite scale|string|Sprite scale for both sprites above.}}
|}
{{KV|Rotate Start Sound|sound|Sound to play when tank starts to turn.}}
{{KV|Ammo type (ammotype)|choices|Ammo type. Be aware that some games will use '''Bullets''' instead.}}
{{KV|Rotate Loop Sound|sound|Sound to play when tank is turning.}}
:{| class=standard-table
{{KV|Rotate Stop Sound|sound|Sound to play when tank stops turning.}}
! Value || Description
{{KV|Rate of Fire|string|Number of bullets to fire in a second.}}
|-
{{KV|Damage Per Bullet|string|How much a single bullet hurts everything except the player. If <code>0</code>, takes amount from the type of bullet/damage.}}
| <code></code> || None
{{KV|Damage Per Bullet Vs Player|string|How much a single bullet hurts the player only. If <code>0</code>, takes amount from the type of bullet/damage.}}
|-
{{KV|Firing persistence|string|How many seconds to keep firing at target's last known position after losing [[LOS]] (for NPCs).}}
| <code>Pistol</code> || Pistol
{{KV|Firing persistence2|string|After '''Firing persistence''' is over, how many seconds to periodically fire at target's last known position (for NPCs).}}
|-
{{KV|Bullet accuracy|choices|How accurately the gun can fire.}}
| <code>SMG1</code> || SMG1
:* 0 : Perfect Shot
|-
:* 1 : Small cone
| <code>AR2</code> || AR2
:* 2 : Medium cone
|-
:* 3 : Large cone
| <code>CombineHeavyCannon</code> || "Combine Heavy Cannon"
:* 4 : Extra-large cone
|}
{{KV|Minimum target range|string|Minimum range to target something (for NPCs). If a target is closer than this amount, the NPC will probably switch to any weapon they have on them.}}
{{KV|Control Volume (control_volume)|target_destination|Name of a trigger the player must be inside to control the tank.}}
{{KV|Maximum target range|string|Maximum range to target something (for NPCs). {{confirm|This may actually be the distance for aim assistance instead?}}}}
{{KV|(Team) Master (master)|string|Not used for Source. Provided for backwards compatibility with {{ent|multisource}} or {{ent|game_team_master}}.}}
{{KV|Minimum light level|string|Minimum amount of light this entity should receive.}}
{{KV|Yaw rate (yawrate)|string|How fast tank can look left or right.}}
{{KV|Gun Base Attachment|string|If '''Parent''' is specified, this is the attachment point on the parent to aim from.}}
{{KV|Yaw range (yawrange)|string|How far tank can turn left or right.}}
{{KV|Gun Barrel Attachment|string|If '''Parent''' is specified, this is the attachment point on the parent to fire from. If you specify this, you'll want to specify the '''Gun Base Attachment''' too.}}
{{KV|Yaw tolerance (yawtolerance)|string|Additional left-right range. If the gun tries to turn beyond '''Yaw range + Yaw tolerance''', the gun will snap back to the maximum '''Yaw range'''.}}
{{KV|Gun Yaw Pose Param|string|If '''Parent''' and '''Gun Pitch Pose Param''' are specified, then the gun itself will be invisible and the tank will steer a gun on the parent using the pose parameters.}}
{{KV|Pitch rate (pitchrate)|string|How fast tank can look up or down}}
{{KV|Gun Yaw Pose Center|float|The center yaw pose parameter of the gun on the parent.}}
{{KV|Pitch range (pitchrange)|string|How far tank can turn up or down}}
{{KV|Gun Pitch Pose Param|string|If '''Parent''' and '''Gun Yaw Pose Param''' are specified, then the gun itself will be invisible and the tank will steer a gun on the parent using the pose parameters.}}
{{KV|Pitch tolerance (pitchtolerance)|string|Additional up-down range. If the gun tries to turn beyond '''Pitch range + Pitch tolerance''', the gun will snap back to the maximum '''Pitch range'''.}}
{{KV|Gun Pitch Pose Center|float|The center pitch pose parameter of the gun on the parent.}}
{{KV|Barrel Length (barrel)|string|Solid length of the tank barrel. Any part of the barrel beyond this length may clip through objects.}}
{{KV|Ammunition Count|integer|Amount of ammo when ''player'' is using. -1 {{=}} unlimited ammo.}}
{{KV|Barrel Horizontal (barrely)|string|How wide the barrel is, horizontally.}}}
{{KV|Lead Target|boolean|Aim ahead to hit moving targets (for NPCs).}}
{{KV|Barrel Vertical (barrelz)|string|How wide the barrel is, vertically.}}
{{KV|NPC Man Point|target_destination|Point where NPC must stand to use.}}
{{KV|Smoke Sprite (spritesmoke)|sprite|Smoke sprite to emit when gun fires. {{bug|Transparency may not work.}}}}
{{KV|Post-NPC Attack Grace Period|float|If specified, NPC's manning this func tank won't fire at the player, after firing at a non-player, for this amount of time.}}
{{KV|Flash Sprite (spriteflash)|sprite|Flash sprite to emit when gun fires.}}
{{KV|Ignore Grace Upto|float|The player grace period is ignored if the player is under this distance from the tank.}}
{{KV|Sprite scale (spritescale)|string|Sprite scale for both sprites above.}}
{{KV|Player Lock Time|float|The tank must be aiming right on the player for this amount of time before it's allowed to fire.}}
{{KV|Rotate Start Sound (rotatestartsound)|sound|Sound to play when tank starts to turn.}}
{{KV|Effect Handling|choices|Produce these sound and particle effects when firing.}}
{{KV|Rotate Loop Sound (rotatesound)|sound|Sound to play when tank is turning.}}
:* 0 : Use Individual Settings.
{{KV|Rotate Stop Sound (rotatestopsound)|sound|Sound to play when tank stops turning.}}
:* 1 : AR2
{{KV|Rate of Fire (firerate)|string|Number of bullets to fire in a second.}}
:* 2 : Combine Cannon
{{KV|Damage Per Bullet (bullet_damage)|string|How much a single bullet hurts everything except the player. If <code>0</code>, takes amount from the type of bullet/damage.}}
{{KV Targetname}}
{{KV|Damage Per Bullet Vs Player (bullet_damage_vs_player)|string|How much a single bullet hurts the player only. If <code>0</code>, takes amount from the type of bullet/damage.}}
{{KV Parentname}}
{{KV|Firing persistence (persistence)|string|How many seconds to keep firing at target's last known position after losing [[LOS]] (for NPCs).}}
{{KV Origin}}
{{KV|Firing persistence2 (persistence2)|string|After '''Firing persistence''' is over, how many seconds to periodically fire at target's last known position (for NPCs).}}
{{KV Angles}}
{{KV|Bullet accuracy (firespread)|choices|How accurately the gun can fire.
{{KV RenderFields}}
:*0: Perfect Shot
{{KV Global}}
:*1: Small cone
{{KV Shadow}}
:*2: Medium cone
}}<noinclude>
:*3: Large cone
[[Category:Keyvalue Templates|BaseTank]]
:*4: Extra-large cone}}
</noinclude>
{{KV|Minimum target range (minRange)|string|Minimum range to target something (for NPCs). If a target is closer than this amount, the NPC will probably switch to any weapon they have on them.}}
{{KV|Maximum target range (maxRange)|string|Maximum range to target something (for NPCs). {{confirm|This may actually be the distance for aim assistance instead?}}}}
{{KV|Gun Base Attachment (gun_base_attach)|string|If '''Parent''' is specified, this is the attachment point on the parent to aim from.}}
{{KV|Gun Barrel Attachment (gun_barrel_attach)|string|If '''Parent''' is specified, this is the attachment point on the parent to fire from. If you specify this, you'll want to specify the '''Gun Base Attachment''' too.}}
{{KV|Gun Yaw Pose Param (gun_yaw_pose_param)|string|If '''Parent''' and '''Gun Pitch Pose Param''' are specified, then the gun itself will be invisible and the tank will steer a gun on the parent using the pose parameters.}}
{{KV|Gun Yaw Pose Center (gun_yaw_pose_center)|float|The center yaw pose parameter of the gun on the parent.}}
{{KV|Gun Pitch Pose Param (gun_pitch_pose_param)|string|If '''Parent''' and '''Gun Yaw Pose Param''' are specified, then the gun itself will be invisible and the tank will steer a gun on the parent using the pose parameters.}}
{{KV|Gun Pitch Pose Center (gun_pitch_pose_center)|float|The center pitch pose parameter of the gun on the parent.}}
{{KV|Ammunition Count (ammo_count)|integer|Amount of ammo when ''player'' is using. -1 {{=}} unlimited ammo.}}
{{KV|Lead Target (LeadTarget)|boolean|Aim ahead to hit moving targets (for NPCs).}}
{{KV|NPC Man Point (npc_man_point)|target_destination|Point where NPC must stand to use.}}
{{KV|Post-NPC Attack Grace Period (playergraceperiod)|float|If specified, NPC's manning this func tank won't fire at the player, after firing at a non-player, for this amount of time.}}
{{KV|Ignore Grace Upto (ignoregraceupto)|float|The player grace period is ignored if the player is under this distance from the tank.}}
{{KV|Player Lock Time (playerlocktimebeforefire)|float|The tank must be aiming right on the player for this amount of time before it's allowed to fire.}}
{{KV|Effect Handling (effecthandling)|choices|Produce these sound and particle effects when firing.
:*0: Use Individual Settings.
:*1: AR2
:*2: Combine Cannon}}<noinclude>[[Category:Keyvalue Templates|BaseTank]]</noinclude>

Revision as of 17:15, 9 September 2018

BaseTank:

Bullets (bullet) ([todo internal name (i)]) <choices>
Ammo type. Be aware that some games will use Ammo type instead.
Literal value Description
0 None
1 Pistol
2 SMG1
3 AR2 (shows pistol/smg1 bullets?)
4 Laser (does nothing)
Ammo type (ammotype) ([todo internal name (i)]) <choices>
Ammo type. Be aware that some games will use Bullets instead.
Value Description
None
Pistol Pistol
SMG1 SMG1
AR2 AR2
CombineHeavyCannon "Combine Heavy Cannon"
Control Volume (control_volume) ([todo internal name (i)]) <targetname>
Name of a trigger the player must be inside to control the tank.
(Team) Master (master) ([todo internal name (i)]) <string>
Not used for Source. Provided for backwards compatibility with multisource or game_team_master.
Yaw rate (yawrate) ([todo internal name (i)]) <string>
How fast tank can look left or right.
Yaw range (yawrange) ([todo internal name (i)]) <string>
How far tank can turn left or right.
Yaw tolerance (yawtolerance) ([todo internal name (i)]) <string>
Additional left-right range. If the gun tries to turn beyond Yaw range + Yaw tolerance, the gun will snap back to the maximum Yaw range.
Pitch rate (pitchrate) ([todo internal name (i)]) <string>
How fast tank can look up or down
Pitch range (pitchrange) ([todo internal name (i)]) <string>
How far tank can turn up or down
Pitch tolerance (pitchtolerance) ([todo internal name (i)]) <string>
Additional up-down range. If the gun tries to turn beyond Pitch range + Pitch tolerance, the gun will snap back to the maximum Pitch range.
Barrel Length (barrel) ([todo internal name (i)]) <string>
Solid length of the tank barrel. Any part of the barrel beyond this length may clip through objects.
Barrel Horizontal (barrely) ([todo internal name (i)]) <string>
How wide the barrel is, horizontally.}
Barrel Vertical (barrelz) ([todo internal name (i)]) <string>
How wide the barrel is, vertically.
Smoke Sprite (spritesmoke) ([todo internal name (i)]) <sprite>
Smoke sprite to emit when gun fires.
Icon-Bug.pngBug:Transparency may not work.  [todo tested in ?]
Flash Sprite (spriteflash) ([todo internal name (i)]) <sprite>
Flash sprite to emit when gun fires.
Sprite scale (spritescale) ([todo internal name (i)]) <string>
Sprite scale for both sprites above.
Rotate Start Sound (rotatestartsound) ([todo internal name (i)]) <sound>
Sound to play when tank starts to turn.
Rotate Loop Sound (rotatesound) ([todo internal name (i)]) <sound>
Sound to play when tank is turning.
Rotate Stop Sound (rotatestopsound) ([todo internal name (i)]) <sound>
Sound to play when tank stops turning.
Rate of Fire (firerate) ([todo internal name (i)]) <string>
Number of bullets to fire in a second.
Damage Per Bullet (bullet_damage) ([todo internal name (i)]) <string>
How much a single bullet hurts everything except the player. If 0, takes amount from the type of bullet/damage.
Damage Per Bullet Vs Player (bullet_damage_vs_player) ([todo internal name (i)]) <string>
How much a single bullet hurts the player only. If 0, takes amount from the type of bullet/damage.
Firing persistence (persistence) ([todo internal name (i)]) <string>
How many seconds to keep firing at target's last known position after losing LOS (for NPCs).
Firing persistence2 (persistence2) ([todo internal name (i)]) <string>
After Firing persistence is over, how many seconds to periodically fire at target's last known position (for NPCs).
Bullet accuracy (firespread) ([todo internal name (i)]) <choices>
How accurately the gun can fire.
  • 0: Perfect Shot
  • 1: Small cone
  • 2: Medium cone
  • 3: Large cone
  • 4: Extra-large cone
Minimum target range (minRange) ([todo internal name (i)]) <string>
Minimum range to target something (for NPCs). If a target is closer than this amount, the NPC will probably switch to any weapon they have on them.
Maximum target range (maxRange) ([todo internal name (i)]) <string>
Maximum range to target something (for NPCs).
Confirm:This may actually be the distance for aim assistance instead?
Gun Base Attachment (gun_base_attach) ([todo internal name (i)]) <string>
If Parent is specified, this is the attachment point on the parent to aim from.
Gun Barrel Attachment (gun_barrel_attach) ([todo internal name (i)]) <string>
If Parent is specified, this is the attachment point on the parent to fire from. If you specify this, you'll want to specify the Gun Base Attachment too.
Gun Yaw Pose Param (gun_yaw_pose_param) ([todo internal name (i)]) <string>
If Parent and Gun Pitch Pose Param are specified, then the gun itself will be invisible and the tank will steer a gun on the parent using the pose parameters.
Gun Yaw Pose Center (gun_yaw_pose_center) ([todo internal name (i)]) <float>
The center yaw pose parameter of the gun on the parent.
Gun Pitch Pose Param (gun_pitch_pose_param) ([todo internal name (i)]) <string>
If Parent and Gun Yaw Pose Param are specified, then the gun itself will be invisible and the tank will steer a gun on the parent using the pose parameters.
Gun Pitch Pose Center (gun_pitch_pose_center) ([todo internal name (i)]) <float>
The center pitch pose parameter of the gun on the parent.
Ammunition Count (ammo_count) ([todo internal name (i)]) <integer>
Amount of ammo when player is using. -1 = unlimited ammo.
Lead Target (LeadTarget) ([todo internal name (i)]) <boolean>
Aim ahead to hit moving targets (for NPCs).
NPC Man Point (npc_man_point) ([todo internal name (i)]) <targetname>
Point where NPC must stand to use.
Post-NPC Attack Grace Period (playergraceperiod) ([todo internal name (i)]) <float>
If specified, NPC's manning this func tank won't fire at the player, after firing at a non-player, for this amount of time.
Ignore Grace Upto (ignoregraceupto) ([todo internal name (i)]) <float>
The player grace period is ignored if the player is under this distance from the tank.
Player Lock Time (playerlocktimebeforefire) ([todo internal name (i)]) <float>
The tank must be aiming right on the player for this amount of time before it's allowed to fire.
Effect Handling (effecthandling) ([todo internal name (i)]) <choices>
Produce these sound and particle effects when firing.
  • 0: Use Individual Settings.
  • 1: AR2
  • 2: Combine Cannon