Weapon alyxgun: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 7: Line 7:
[[Image:hammeralyxgun.jpg|frame|right|Alyx's Gun]]
[[Image:hammeralyxgun.jpg|frame|right|Alyx's Gun]]


[[Npc alyx|Alyx]]'s gun. It is not intended to be used; however, it can be used in HL2 single player. It is apparently a burst-fire pistol,capable of switching to single shot mode, with considerable strength, and no player model. When used by the player, the weapon is capable of firing in a fully automatic mode, which leads to the conclusion that NPCs only fire the weapon in short bursts. The model the player sees when wielding it is the worldmodel of the gun, hovering eerily in front of them. The Alyxgun has its own unique ammo type. It can be wielded both by Alyx, and by npc_citizens. According the animations of its model, it also has the potential to be folded out into a submachine gun and a rifle. Do not use without altering the code to repair it.
[[Npc alyx|Alyx]]'s gun. It is not intended to be used; however, it can be used in HL2 single player. It is apparently a burst-fire pistol,capable of switching to single shot mode, with considerable strength, and no player model. When used by the player, the weapon is capable of firing in a fully automatic mode, which leads to the conclusion that NPCs only fire the weapon in short bursts. The model the player sees when wielding it is the worldmodel of the gun, hovering eerily in front of them. Other instances result in a giant ERROR hovering in front of the player, or the gun appearing in a vertical position next to the player's 'head'. The Alyxgun has its own unique ammo type. It can be wielded both by Alyx, and by npc_citizens. According the animations of its model, it also has the potential to be folded out into a submachine gun and a rifle. Do not use without altering the code to repair it.


==Dedicated Console Variables==
==Dedicated Console Variables==

Revision as of 22:05, 13 December 2009

Template:Wrongtitle

Entity Description

Alyx's Gun

Alyx's gun. It is not intended to be used; however, it can be used in HL2 single player. It is apparently a burst-fire pistol,capable of switching to single shot mode, with considerable strength, and no player model. When used by the player, the weapon is capable of firing in a fully automatic mode, which leads to the conclusion that NPCs only fire the weapon in short bursts. The model the player sees when wielding it is the worldmodel of the gun, hovering eerily in front of them. Other instances result in a giant ERROR hovering in front of the player, or the gun appearing in a vertical position next to the player's 'head'. The Alyxgun has its own unique ammo type. It can be wielded both by Alyx, and by npc_citizens. According the animations of its model, it also has the potential to be folded out into a submachine gun and a rifle. Do not use without altering the code to repair it.

Dedicated Console Variables

  • sk_plr_dmg_alyxgun
<integer> Damage done to players
  • sk_npc_dmg_alyxgun
<integer> Damage done to NPCs
  • sk_max_alyxgun
<integer> Size of clip. By default in the game this is 30 rounds.

Flags

Start Constrained : [1]
Prevents the model from moving.
Deny player pickup (reserve for NPC) : [2]
Not puntable by Gravity Gun : [4]

Inputs

HideWeapon  !FGD
If this weapon is being held, hide the worldmodel and/or viewmodel via EF_NODRAW. Weapon will still be useable. The weapon will become visible again if the holder is to switch between weapons in their inventory.

Outputs

OnNPCPickup
Fires when an NPC picks up this weapon. (!activator is the NPC.)
OnPlayerUse
Fires when the player +uses this weapon. (!activator is the player.)
OnPlayerPickup
Fires when a player picks up this weapon. (!activator is the player.)
OnCacheInteraction
Fires when the player 'proves' they've found this weapon. Fires on: Player Touch, +USE pickup, Physcannon pickup, Physcannon punt.