<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.svencoop.com/index.php?action=history&amp;feed=atom&amp;title=Func_tankmortar</id>
	<title>Func tankmortar - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.svencoop.com/index.php?action=history&amp;feed=atom&amp;title=Func_tankmortar"/>
	<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=Func_tankmortar&amp;action=history"/>
	<updated>2026-04-04T07:16:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.svencoop.com/index.php?title=Func_tankmortar&amp;diff=214&amp;oldid=prev</id>
		<title>GeckonCZ: Import of converted entguide pages from Sven Manor.</title>
		<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=Func_tankmortar&amp;diff=214&amp;oldid=prev"/>
		<updated>2019-01-27T22:29:18Z</updated>

		<summary type="html">&lt;p&gt;Import of converted entguide pages from Sven Manor.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Entity_Infobox&lt;br /&gt;
| title=&lt;br /&gt;
| type=b&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Same as func_tank but produces instant explosions. Func_tankmortar is used to represent a mounted cannon which can be controlled &lt;br /&gt;
by players as well as monsters, if allowed. For either to be able to use this, it must be hooked up to a single func_tankcontrols entity.&lt;br /&gt;
If you want func_tankmortar to be controllable by player, you need to specify a name of func_tankmortar and use func_tankcontrols entity&lt;br /&gt;
in addition of this entity. Automatic turret needs &amp;quot;Active&amp;quot; flag enabled. Entity requires origin brush tied to barrel, so it can rotate around it.&lt;br /&gt;
&lt;br /&gt;
== Keyvalues ==&lt;br /&gt;
&lt;br /&gt;
{{Entity_keyvalue|(Team) Master|master|Currently unsupported.}}&lt;br /&gt;
{{Entity_keyvalue|Target|target|Entity to fire each shot. You might want to use it in combination with ambient_generic to produce shooting sound.}}&lt;br /&gt;
{{Entity_keyvalue|Yaw Rate|yawrate|How fast the barrel rotates horizontally, in degrees per seconds.}}&lt;br /&gt;
{{Entity_keyvalue|Yaw Range|yawrange|The range, in degrees, of the barrel horizontal rotation in each side- left and right. This value is doubled for the whole barrel range e.g. when it&amp;#039;s set to 90, the barrel can rotate left by 90 degrees and right by 90 degrees, what gives the total of 180.}}&lt;br /&gt;
{{Entity_keyvalue|Yaw Tolerance|yawtolerance|Seems to not affecting entity.}}&lt;br /&gt;
{{Entity_keyvalue|Pitch Rate|pitchrate|Vertical barrel rotating speed, in degrees per seconds.}}&lt;br /&gt;
{{Entity_keyvalue|Pitch Range|pitchrange|Vertical range of the barrel rotation, up and down. This value is doubled for the whole barrel range e.g. when it&amp;#039;s set to 10, the barrel can rotate up by 10 degrees and down by 10 degrees, what gives the total of 20.}}&lt;br /&gt;
{{Entity_keyvalue|Pitch Tolerance|pitchtolerance|Seems to not affecting entity.}}&lt;br /&gt;
{{Entity_keyvalue|Barrel Length|barrel|Determines where bullets comes from. Distance is counted from origin brush to barrel end.}}&lt;br /&gt;
{{Entity_keyvalue|Barrel Horizontal|barrely|Horizontal (x axis) distance between center of the barrel and the origin&amp;#039;s center.}}&lt;br /&gt;
{{Entity_keyvalue|Barrel Vertical|barrelz|Vertical (z axis) distance between center of the barrel and the origin&amp;#039;s center.}}&lt;br /&gt;
{{Entity_keyvalue|Smoke Sprite|spritesmoke|Name of the sprite to show whenever bullet is shoot. Starts with &amp;#039;sprites/&amp;#039; folder.}}&lt;br /&gt;
{{Entity_keyvalue|Flash Sprite|spriteflash|Name of the sprite to show as a muzzle flash of the barrel. Starts with &amp;#039;sprites/&amp;#039; folder.}}&lt;br /&gt;
{{Entity_keyvalue|Sprite Scale|spritescale|Scale of smoke and flash sprites.}}&lt;br /&gt;
{{Entity_keyvalue|Rotate Sound|rotatesound|Sound file to play in a loop while barrel is rotating.}}&lt;br /&gt;
{{Entity_keyvalue|Rate of Fire|firerate|Number of bullets per second.}}&lt;br /&gt;
{{Entity_keyvalue|Damage Per Bullet|bullet_damage|Damage to deal each shot.}}&lt;br /&gt;
{{Entity_keyvalue|Firing Persistence|persistence|How many seconds this entity will continue shooting after losing player from field of view. Works only for automatic turrets.}}&lt;br /&gt;
{{Entity_keyvalue|Bullet Accuracy|firespread|Allows to customize bullet spreading, from perfect shot to Star Wars Stormtrooper accuracy.}}&lt;br /&gt;
{{Entity_keyvalue|Minimum target range|minRange|Minimum view distance to shoot target, used for automatic turrets only.}}&lt;br /&gt;
{{Entity_keyvalue|Maximum target range|maxRange|Maximum view distance to shoot target, used for automatic turrets only. However values above 2048 doesn&amp;#039;t work.}}&lt;br /&gt;
{{Entity_keyvalue|Explosion Magnitude|iMagnitude|The greater the magnitude, the more damage the explosion will cause. Note that explosion damage values above 200 are know to cause explosion damage to even go through walls.&lt;br /&gt;
&lt;br /&gt;
And Several relation flags you can use to control func_tankmortar classification. Needs &amp;quot;Use Relation&amp;quot; flag enabled.}}&lt;br /&gt;
&lt;br /&gt;
== Flags ==&lt;br /&gt;
&lt;br /&gt;
{{Entity_flag|1|Active|Makes this func_tankmortar active on start, which means it will try to kill every enemies in it&amp;#039;s view distance.}}&lt;br /&gt;
{{Entity_flag|16|Only Direct|If selected, the automatic func_tankmortar will fire it&amp;#039;s target only when they are in it&amp;#039;s line of sight.}}&lt;br /&gt;
{{Entity_flag|32|Controllable|If selected, player can control this turret. Keep in mind that finc_tankcontrols is required for this.}}&lt;br /&gt;
{{Entity_flag|512|Use Relations|Enables usage of relation keyvalues (which is very glitched though).}}&lt;br /&gt;
{{Entity_flag|1024|Player can&amp;#039;t fire|Prevent player from shooting (player might still control the tank).}}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
Turret can be both controllable and automatic- attacks player until he gets control over this func_tankmortar.&lt;br /&gt;
Entity must be facing east at x/y view of the editor, the angle of barrel must be customized with &amp;#039;Yaw&amp;#039; compass in object properties.&lt;br /&gt;
&lt;br /&gt;
== Issues ==&lt;br /&gt;
&lt;br /&gt;
Max range of all func_tankmortar entities cannot be set to higher that 2048.&lt;br /&gt;
&lt;br /&gt;
== Changes ==&lt;br /&gt;
&lt;br /&gt;
5.0 Steam Release: Added &amp;#039;Player can&amp;#039;t fire&amp;#039; flag.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{entity_title}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Entities]]&lt;br /&gt;
[[Category:Brush entities]]&lt;/div&gt;</summary>
		<author><name>GeckonCZ</name></author>
	</entry>
</feed>