Template:KV BaseTank: Difference between revisions
Jump to navigation
Jump to search
m (Getting rid of some todo's. I don't think they'll ever be described properly by anyone here.) |
(reworded the description for both "Param" lines, mentioning how if not set, it would rotate the brush around the brush entity origin instead. Also added note to "Rotate Loop Sound" about endlessly playing sounds) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{ {{PAGENAME}} |startcollapsed=0}} | ||
{{KV|Control Volume|target_destination|Name of a trigger the | |||
{{KV|(Team) Master|string| | <includeonly> | ||
{{KV|Yaw rate|string| | |||
{{KV|Yaw range|string| | <onlyinclude>{{Expand|title=BaseTank keyvalues|startcollapsed={{{startcollapsed|1}}}| | ||
{{KV|Yaw tolerance|string|Yaw tolerance}} | {{KV|Bullets|intn=bullet|choices|Ammo type. Be aware that some games will use '''Ammo type''' instead.}} | ||
{{KV|Pitch rate|string| | :{{{!}} class{{=}}standard-table | ||
{{KV|Pitch range|string| | ! Literal value {{!!}} Description | ||
{{KV|Pitch tolerance|string|Pitch tolerance}} | {{!}}- | ||
{{KV|Barrel Length|string| | {{!}} 0 {{!!}} None | ||
{{KV|Barrel Horizontal|string| | {{!}}- | ||
{{KV|Barrel Vertical|string| | {{!}} 1 {{!!}} Pistol | ||
{{KV|Smoke Sprite|sprite|Smoke | {{!}}- | ||
{{KV|Flash Sprite|sprite|Flash | {{!}} 2 {{!!}} SMG1 | ||
{{KV|Sprite scale|string|Sprite scale}} | {{!}}- | ||
{{KV|Rotate Start Sound|sound| | {{!}} 3 {{!!}} AR2 (shows pistol/smg1 bullets?) | ||
{{KV|Rotate Loop Sound|sound| | {{!}}- | ||
{{KV|Rotate Stop Sound|sound| | {{!}} 4 {{!!}} Laser (does nothing) | ||
{{KV|Rate of Fire|string| | {{!}}} | ||
{{KV|Damage Per Bullet|string|If | {{KV|Ammo type|intn=ammotype|choices|Ammo type. Be aware that some games will use '''Bullets''' instead.}} | ||
{{KV|Damage Per Bullet Vs Player|string|If | :{{{!}} class{{=}}standard-table | ||
{{KV|Firing persistence|string| | ! Value {{!!}} Description | ||
{{KV|Firing persistence2|string| | {{!}}- | ||
{{KV|Bullet accuracy|choices | {{!}} <code></code> {{!!}} None | ||
:* 0 : Perfect Shot | {{!}}- | ||
:* 1 : Small cone | {{!}} <code>Pistol</code> {{!!}} Pistol | ||
:* 2 : Medium cone | {{!}}- | ||
:* 3 : Large cone | {{!}} <code>SMG1</code> {{!!}} SMG1 | ||
:* 4 : Extra-large cone | {{!}}- | ||
{{KV| | {{!}} <code>AR2</code> {{!!}} AR2 | ||
{{KV|Maximum target range|string | {{!}}- | ||
{{ | {{!}} <code>CombineHeavyCannon</code> {{!!}} Combine Heavy Cannon (Episode 2 autogun) | ||
{{KV|Gun Base Attachment|string|If Parent is specified, this is the attachment point on the parent to aim from.}} | {{!}}} | ||
{{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|Control Volume|intn=control_volume|target_destination|Name of a trigger the player must be inside to control the tank.}} | ||
{{KV|Gun Yaw Pose Param|string|If Parent | {{KV|(Team) Master|intn=master|string|Not used for Source. Provided for backwards compatibility with {{ent|multisource}} or {{ent|game_team_master}}.}} | ||
{{KV|Gun Yaw Pose Center|float|The center yaw pose parameter of the gun on the parent}} | {{KV|Yaw rate|intn=yawrate|string|How fast tank can look left or right.}} | ||
{{KV|Gun Pitch Pose Param|string|If Parent | {{KV|Yaw range|intn=yawrange|string|How far tank can turn left or right.}} | ||
{{KV|Gun Pitch Pose Center|float|The center pitch pose parameter of the gun on the parent}} | {{KV|Yaw tolerance|intn=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|Ammunition Count|integer| | {{KV|Pitch rate|intn=pitchrate|string|How fast tank can look up or down}} | ||
{{KV|Lead Target|boolean}} | {{KV|Pitch range|intn=pitchrange|string|How far tank can turn up or down}} | ||
{{KV|NPC Man Point|target_destination|Point where NPC must stand to | {{KV|Pitch tolerance|intn=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|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|Barrel Length|intn=barrel|string|Solid length of the tank barrel. Any part of the barrel beyond this length may clip through objects.}} | ||
{{KV|Ignore Grace Upto|float|The player grace period is ignored if the player | {{KV|Barrel Horizontal|intn=barrely|string|How wide the barrel is, horizontally.}}} | ||
{{KV|Player Lock Time|float|The tank must | {{KV|Barrel Vertical|intn=barrelz|string|How wide the barrel is, vertically.}} | ||
{{KV|Effect Handling|choices | {{KV|Smoke Sprite|intn=spritesmoke|sprite|Smoke sprite to emit when gun fires. {{bug|Transparency may not work.}}}} | ||
:* 0 : Use Individual Settings. | {{KV|Flash Sprite|intn=spriteflash|sprite|Flash sprite to emit when gun fires.}} | ||
:* 1 : AR2 | {{KV|Sprite scale|intn=spritescale|string|Sprite scale for both sprites above.}} | ||
:* 2 : Combine Cannon | {{KV|Rotate Start Sound|intn=rotatestartsound|sound|Sound to play when tank starts to turn.}} | ||
{{KV|Rotate Loop Sound|intn=rotatesound|sound|Sound to play when tank is turning.{{bug|hidetested=true|If the tank stops being controlled while turning, the sound will continue to loop until the tank is being turned again.}}}} | |||
{{KV|Rotate Stop Sound|intn=rotatestopsound|sound|Sound to play when tank stops turning.}} | |||
{{KV|Rate of Fire|intn=firerate|string|Number of bullets to fire in a second.}} | |||
{{KV|Damage Per Bullet|intn=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|Damage Per Bullet Vs Player|intn=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|Firing persistence|intn=persistence|string|How many seconds to keep firing at target's last known position after losing [[LOS]] (for NPCs).}} | |||
{{KV|Firing persistence2|intn=persistence2|string|After '''Firing persistence''' is over, how many seconds to periodically fire at target's last known position (for NPCs).}} | |||
{{KV|Bullet accuracy|intn=firespread|choices|How accurately the gun can fire. | |||
:*0: Perfect Shot | |||
:*1: Small cone | |||
:*2: Medium cone | |||
:*3: Large cone | |||
:*4: Extra-large cone}} | |||
{{KV|Minimum target range|intn=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|intn=maxRange|string|Maximum range to target something (for NPCs). {{confirm|This may actually be the distance for aim assistance instead?}}}} | |||
{{KV|Gun Base Attachment|intn=gun_base_attach|string|If '''Parent''' is specified, this is the attachment point on the parent to aim from.}} | |||
{{KV|Gun Barrel Attachment|intn=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|intn=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 use the pose parameters on the parent model. If not set, the gun brush rotates around the entity origin.}} | |||
{{KV|Gun Yaw Pose Center|intn=gun_yaw_pose_center|float|The center yaw pose parameter of the gun on the parent.}} | |||
{{KV|Gun Pitch Pose Param|intn=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 use the pose parameters on the parent model. If not set, the gun brush rotates around the entity origin.}} | |||
{{KV|Gun Pitch Pose Center|intn=gun_pitch_pose_center|float|The center pitch pose parameter of the gun on the parent.}} | |||
{{KV|Ammunition Count|intn=ammo_count|integer|Amount of ammo when ''player'' is using. -1 {{=}} unlimited ammo.}} | |||
{{KV|Lead Target|intn=LeadTarget|boolean|Aim ahead to hit moving targets (for NPCs).}} | |||
{{KV|NPC Man Point|intn=npc_man_point|target_destination|Point where NPC must stand to use.}} | |||
{{KV|Post-NPC Attack Grace Period|intn=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|intn=ignoregraceupto|float|The player grace period is ignored if the player is under this distance from the tank.}} | |||
{{KV|Player Lock Time|intn=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|intn=effecthandling|choices|Produce these sound and particle effects when firing. | |||
:*0: Use Individual Settings. | |||
:*1: AR2 | |||
:*2: Combine Cannon}} | |||
}}</onlyinclude> | |||
</includeonly> | |||
[[Category:Keyvalue Templates|BaseTank]] | [[Category:Keyvalue Templates|BaseTank]] | ||
Latest revision as of 07:34, 8 February 2025
|