Weapon physcannon: Difference between revisions
Jump to navigation
Jump to search
Tip:To upgrade the gravity gun to the blue super gravity gun, you will have to set up an env_global entity to look like this:
Tip:If you would prefer a subtle gravity gun to a super gravity gun, see Adnan's Rotational Grav Gun - a 4MB single-player demo mod that simply allows the player to rotate objects held by the Gravgun.
m (Robot: fixing template case.) |
m (Robot: fixing template case.) |
||
Line 63: | Line 63: | ||
== Keyvalues == | == Keyvalues == | ||
* {{kv targetname}} | * {{kv targetname}} | ||
* {{ | * {{KV Angles}} | ||
* {{kv newfade}} | * {{kv newfade}} | ||
Revision as of 19:41, 19 January 2009
Entity description
A gravity gun, used to manipulate physics objects in the game world.
The Zero-Point Energy Field Manipulator was designed for handling hazardous materials, but the people at Eli's lab mainly used it for heavy lifting and playing "catch".
- The weapon_physcannon does not require any ammunition or recharging. Special interactions between a physics prop and the gravity gun are defined by the physgun_interactions in the model's QC file.
- The weapon_physcannon has two attacks : punt and grab. The effective range of each attack depends largely on the mass of the prop or item model. Some NPCs (antlions and headcrabs) are pushed back by the impact of a punt at close range.
- When placed as an entity the weapon_physcannon's world model (
weapons/w_physics.mdl
) behaves like a prop_physics until 'picked-up' by a player. (In Half-Life 2: Deathmatch, the player spawns with a gravity gun by default. See also game_player_equip.)

Class: env_global | ||
Keyvalues | Comments | |
Initial State | On | This entity can either be triggered by a TurnOn signal, |
Global State to Set | Super phys gun is enabled | or start on by setting its Set Initial State flag. |

Dedicated console variables
- g_debug_physcannon (Default: 0)
- <boolean>
- physcannon_cone (Default: 0.97)
- <float>
- physcannon_ball_cone (Default: 0.997)
- <float>
- physcannon_punt_cone (Default: 0.997)
- <float>
- physcannon_minforce (Default: 700.0)
- <float>
- physcannon_maxforce (Default: 1500.0)
- <float>
- physcannon_maxmass (Default: 250.0)
- <float>
- physcannon_pullforce (Default: 4000.0)
- <float>
- physcannon_tracelength (Default: 250.0)
- <float>
- physcannon_mega_pullforce (Default: 8000.0)
- <float>
- physcannon_mega_tracelength (Default: 850.0)
- <float>
- player_throwforce (Default: 1000.0)
- <float>
Keyvalues
- Pitch Yaw Roll (Y Z X) (angles) <QAngle>
- This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Flags
- 1 : Start Constrained
- Prevents the model from moving. Off by default.
- 2 : Start without grab functionality. Obsolete (in all games since
)
- 2 : Deny player pickup (reserve for NPC) (in all games since
)
- 4 : Not puntable by Gravity Gun (in all games since
)
Inputs
- EnableGrab
- Enable the grab functionality. Obsolete (in all games since
)
Outputs
- Weapon:
- OnNPCPickup
- !activator = NPC
!caller = this entity
Fires when an NPC picks up this weapon.
- OnPlayerUse
- !activator = player
!caller = this entity
Fires when the player +uses this weapon.
- OnPlayerPickup
- !activator = player
!caller = this entity
Fires when a player picks up this weapon.
- OnCacheInteraction
- Fires when the player 'proves' they've found this weapon. Fires on: Player Touch, +USE pickup, Physcannon pickup, Physcannon punt.
- OnNPCPickup
- Fires when an NPC picks up this weapon.