func_50cal
Jump to navigation
Jump to search
func_50cal
is a brush entity available in Black Mesa. This is
M2 Browning (or Browning .50 caliber machine gun) that was used by HECU soldiers during the operation on the territory of the Black Mesa Research Facility. Can be used by player and HECU soldiers. This machine gun is also used in dm_stalkyard.


FindNPCToManTank
input. Other will ignore this input.





|

Dedicated ConVars
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
sk_plr_dmg_50cal | 6 | arbitrary number | Player damage scale. Non-functional or deprecated. |
sk_npc_dmg_50cal | 6 | arbitrary number | NPC damage scale. Non-functional or deprecated. |
sk_max_50cal | 0 | arbitrary number | Todo: Turn out what it does (if it does anything). |

Flags
|
Keyvalues
- Control Volume (control_volume) <targetname>
- Name of a trigger the player must be inside to control the tank.
- (Team) Master (master) <string>
- Not used for Source. Provided for backwards compatibility with multisource or game_team_master.
- Yaw rate (yawrate) <string>
- How fast tank can look left or right.
- Yaw range (yawrange) <string>
- How far tank can turn left or right.
- 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.
- Pitch rate (pitchrate) <string>
- How fast tank can look up or down
- Pitch range (pitchrange) <string>
- How far tank can turn up or down
- 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.
- Barrel Length (barrel) <string>
- Solid length of the tank barrel. Any part of the barrel beyond this length may clip through objects.
- Barrel Horizontal (barrely) <string>
- How wide the barrel is, horizontally.}
- Barrel Vertical (barrelz) <string>
- How wide the barrel is, vertically.
- Smoke Sprite (spritesmoke) <sprite>
- Smoke sprite to emit when gun fires.
Bug:Transparency may not work. [todo tested in ?]
- Flash Sprite (spriteflash) <sprite>
- Flash sprite to emit when gun fires.
- Sprite scale (spritescale) <string>
- Sprite scale for both sprites above.
- Rotate Start Sound (rotatestartsound) <sound>
- Sound to play when tank starts to turn.
- Rotate Loop Sound (rotatesound) <sound>
- Sound to play when tank is turning.
- Rotate Stop Sound (rotatestopsound) <sound>
- Sound to play when tank stops turning.
- Rate of Fire (firerate) <string>
- Number of bullets to fire in a second.
- Damage Per Bullet (bullet_damage) <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) <string>
- How much a single bullet hurts the player only. If
0
, takes amount from the type of bullet/damage.
- Firing persistence (persistence) <string>
- How many seconds to keep firing at target's last known position after losing LOS (for NPCs).
- Firing persistence2 (persistence2) <string>
- After Firing persistence is over, how many seconds to periodically fire at target's last known position (for NPCs).
- Bullet accuracy (firespread) <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) <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) <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) <string>
- If Parent is specified, this is the attachment point on the parent to aim from.
- 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.
- 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.
- Gun Yaw Pose Center (gun_yaw_pose_center) <float>
- The center yaw pose parameter of the gun on the parent.
- 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.
- Gun Pitch Pose Center (gun_pitch_pose_center) <float>
- The center pitch pose parameter of the gun on the parent.
- Ammunition Count (ammo_count) <integer>
- Amount of ammo when player is using. -1 = unlimited ammo.
- Lead Target (LeadTarget) <boolean>
- Aim ahead to hit moving targets (for NPCs).
- NPC Man Point (npc_man_point) <targetname>
- Point where NPC must stand to use.
- 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.
- Ignore Grace Upto (ignoregraceupto) <float>
- The player grace period is ignored if the player is under this distance from the tank.
- 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.
- Effect Handling (effecthandling) <choices>
- Produce these sound and particle effects when firing.
- 0: Use Individual Settings.
- 1: AR2
Note:Changes the color of the fire light to blue.
- 2: Combine Cannon
Bug:Shooting will cause DispatchEffect: effect "ChopperMuzzleFlash" not found on client error message in the console. [todo tested in ?]

This template (and its redirect) is
Deprecated. Its use is not recommended and its functionality may be compromised.
Please use {{Brush rendering note}} instead.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Please use {{Brush rendering note}} instead.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.


Inputs
- StopFiring <void> !FGD
- Fires when stops firing. This input probably created for debugging. Doesn't affect anything.
|
- SetDamageFilter <targetname >
- Sets a filter for this entity for when it receives damage.
- EnableDamageForces
- Allows the entity to be pushed by damage done to it (usually force amount correlates with the damage done).
- DisableDamageForces
- Prevents the entity from being pushed by damage done to it.
Todo: move/mention at proper place
Outputs
|
See also
- func_tow - tow cannon.
- func_tow_mp - tow cannon (multiplayer version).
- env_mortar_controller - mortar controller.
- env_mortar_launcher - mortar launcher.
- func_tankmortar - combine mortar (remaining from
Half-Life 2).
- func_tank - main brush gun entity.
- func_tankphyscannister - it sets off a physics_cannister within a specified trigger volume.
- func_tankairboatgun - airboat gun (remaining from
Half-Life 2).
- func_tanklaser - laser cannon.
- func_tank_combine_cannon - combine cannon (remaining from
Half-Life 2).