Cleanup is going to take awhile, so the site is back up but editing has been disabled.
Func tankapcrocket
From HalfLife 2 Knowledge Base
Contents |
[edit]
func_tankapcrocket
Half-Life 2 Solid Entity
[edit]
description
APC Rocket Turret
[edit]
properties
- Control Volume control_volume(target_destination)
Name of a trigger the specifies the volume in which a player must be to control this tank. - (Team) Master master(string)
- Yaw rate yawrate(string) - default: 30
- Yaw range yawrange(string) - default: 180
- Yaw tolerance yawtolerance(string) - default: 15
- Pitch rate pitchrate(string) - default: 0
- Pitch range pitchrange(string) - default: 0
- Pitch tolerance pitchtolerance(string) - default: 5
- Barrel Length barrel(string) - default: 0
- Barrel Horizontal barrely(string) - default: 0
- Barrel Vertical barrelz(string) - default: 0
- Smoke Sprite spritesmoke(sprite)
- Flash Sprite spriteflash(sprite)
- Sprite scale spritescale(string) - default: 1
- Rotate Start Sound rotatestartsound(sound)
- Rotate Loop Sound rotatesound(sound)
- Rotate Stop Sound rotatestopsound(sound)
- Rate of Fire firerate(string) - default: 1
- Damage Per Bullet bullet_damage(string) - default: 0
If set to 0, it'll use the base weapon bullet's damage. - Damage Per Bullet Vs Player bullet_damage_vs_player(string) - default: 0
If set to 0, it'll use the Damage Per Bullet value. - Firing persistence persistence(string) - default: 1
(Seconds) How long to keep firing at last known position after lose sight of target - Firing persistence2 persistence2(string) - default: 0
(Seconds) After lost enemy and persistence time has passed, how long to occasionally fire at enemy's last known position - Bullet accuracy firespread(choices)
- 0 - Perfect Shot
- 1 - Small cone
- 2 - Medium cone
- 3 - Large cone
- 4 - Extra-large cone
- Minmum target range minRange(string) - default: 0
- Maximum target range maxRange(string) - default: 0
- Minimum light level _minlight(string)
- 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 + the Gun Pitch Pose Param is specified, then the gun itself will be invisible and the func_tank will steer a gun on the parent using the pose parameters. - Gun Yaw Pose Center gun_yaw_pose_center(float) - default: 0
The center yaw pose parameter of the gun on the parent - Gun Pitch Pose Param gun_pitch_pose_param(string)
If Parent + the Gun Yaw Pose Param is specified, then the gun itself will be invisible and the func_tank will steer a gun on the parent using the pose parameters. - Gun Pitch Pose Center gun_pitch_pose_center(float) - default: 0
The center pitch pose parameter of the gun on the parent - Ammunition Count ammo_count(integer) - default: -1
Only applies to player use. -1 = unlimited ammo. - Lead Target LeadTarget(choices)
No- 0 - No
- 1 - Yes
- NPC Man Point npc_man_point(target_destination)
Point where NPC must stand to man this func_tank. - Post-NPC Attack Grace Period playergraceperiod(float) - default: 0
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) - default: 768
The player grace period is ignored if the player's under this distance from the func_tank. - Player Lock Time playerlocktimebeforefire(float) - default: 0
The tank must have the player as a target for this amount of time before it's allowed to fire. - Effect Handling effecthandling(choices)
- 0 - Use Individual Settings.
- 1 - AR2
- Projectile speed rocketspeed(float) - default: 800
Speed the rocket will travel at. - Burst shot count burstcount(integer) - default: 10
Number of missiles to shoot in a burst
[edit]
spawn flags
- 1: Active - default: OFF
- 16: Only Direct - default: OFF
- 32: Controllable - default: OFF
- 64: Damage Kick - default: OFF
- 1024: NPC Controllable - default: OFF
- 2048: NPC Set Controller - default: OFF
- 4096: Allow friendlies to hit player - default: OFF
- 32768: Non-solid. - default: OFF
[edit]
inputs
- Kill(void)
Removes this entity from the world. - KillHierarchy(void)
Removes this entity and all its children from the world. - AddOutput(string)
Adds an entity I/O connection to this entity. Format - FireUser1(void)
Causes this entity's OnUser1 output to be fired. - FireUser2(void)
Causes this entity's OnUser2 output to be fired. - FireUser3(void)
Causes this entity's OnUser3 output to be fired. - FireUser4(void)
Causes this entity's OnUser4 output to be fired. - SetParent(string)
Changes the entity's parent in the movement hierarchy. - SetParentAttachment(string)
Change this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. - ClearParent(void)
Removes this entity from the the movement hierarchy, leaving it free to move independently. - DisableShadow(void)
Turn shadow off. - EnableShadow(void)
Turn shadow on. - Activate(void)
Turn the tank on. - Deactivate(void)
Turn the tank off (go dormant) - SetFireRate(string)
How fast to fire (0 = don't fire) - SetDamage(string)
Set the Damage Per Bullet. - SetTargetPosition(string)
World position that I should aim at. - SetTargetDir(vector)
Direction to aim at. - SetTargetEntityName(string)
Name of entity I should follow/attack. - SetTargetEntity(string)
Entity I should follow/attack (output from other entity only). - ClearTargetEntity(void)
Clear the entity I should be attacking. - FindNPCToManTank(string)
Find a nearby NPC to man this func_tank. - StartFindingNPCs(void)
Start searching for NPCs to man this func_tank. - StopFindingNPCs(void)
Stop searching for NPCs to man this func_tank. - ForceNPCOff(void)
Force the NPC manning this func_tank (if any) to leave. - SetMaxRange(float)
Set the max range of the func_tank.
[edit]
outputs
- OnUser1(void)
Fired in response to FireUser1 input. - OnUser2(void)
Fired in response to FireUser2 input. - OnUser3(void)
Fired in response to FireUser3 input. - OnUser4(void)
Fired in response to FireUser4 input. - OnFire(void)
Fires when the tank fires its bullets. - OnAquireTarget(void)
Fires when target is newly in range and can be shot. - OnLoseTarget(void)
Fires when when target goes out of range. - OnAmmoDepleted(void)
Fires when tank runs out of ammo. - OnGotController(void)
Fires when an NPC starts to control this tank. Players do NOT fire this input. - OnLostController(void)
Fires when the NPC controller of the tank stops controlling it. Players do NOT fire this input. - OnGotPlayerController(void)
Fires when a Player starts to control this tank. NPCs do NOT fire this input. - OnLostPlayerController(void)
Fires when the Player controller of the tank stops controlling it. NPCs do NOT fire this input. - OnReadyToFire(void)
Fires once when the tank is done waiting to fire between rounds.
[edit]
related tutorials
Submit your tutorial for func_tankapcrocket

