Alyx Gun
wpn_pic01_t.jpg
Sharing the love.
Weapon Type Pistol
Ammo Type Pistol
Damage 5
Damage Type BULLET
First Found… d1_canals_08
Model v_/w_alyxgun.mdl

Description Convars Keyvalues Flags Other Weapons

Description

weapon_alyxgun is the entity name for Alyx's selective-fire machine pistol seen in Half-Life2. Now fixed up, debugged, and ready for use by Gordon in SMOD.

Primary Fire: Fires 9mm bullets with a moderate rate of fire and high recoil during sustained fire.

Secondary Fire: Cycles through the weapon's firing modes: single, 3-round burst, and automatic.

Convars

  • sk_max_pistol <integer> ( Default: 150 )
    Sets the amount of spare 9mm ammo the player can carry.
  • sk_npc_dmg_alyxgun <integer> ( Default: 3 )
    Sets how much damage NPCs deal with this weapon.
  • sk_plr_dmg_alyxgun <integer> ( Default: 5
    Sets how much damage the player deals with this weapon.
  • weapon_alyxgun_firerate <float> ( Default: 0.07 Min: 0.01 Max: 1 )
    Sets the firing rate of the Alyx gun. The formula is $1 / (RPM / 60)$ where $RPM$ is rounds/minute.
    For example, if you wanted a firing rate of 800 rounds per minute:
    $1 / (800 / 60)$$1 / (13.333333333333333333333333333333)$$0.075$ would be your value.

Keyvalues

  • targetname <string>
    Assigns the entity a targetname, used by other entities to refer to this entity. Can be shared by other entities.
  • origin <X Y Z>
    Sets the position of the entity within the world. See Coordinates.
  • angle <X Y Z>
    Sets the angular positioning (Pitch, Yaw, Roll) of the entity.
  • model <string>
    Sets the model of the entity.
  • fademindist <float>
    Sets the distance at which the entity model starts to fade. (0 : use fademaxdist)
  • fademaxdist <float>
    Sets the maximum distance at which the entity model is visible. (0 : don't fade out)
  • fadescale <float>
    The scale factor that gives some control over fading. Using 0 turns off the forced fade values.

Flags

Except where noted, flags are OFF by default.

  • 1 : Start constrained. (Prevents model movement)
  • 2 : Reserve for NPC.
  • 4 : Not throwable by the Gravity Gun.



Weapons & Tools

Hand Wpn. Crowbar   •   Golden Crowbar   •   Shovel   •   Soy Beans
Pistol/SMG .357 Magnum   •   Alyxgun   •   9mm Pistol   •   Flare Gun   •    Gauss Gun   •   Grease Gun (M3)   •   H&K MP5   •   H&K MP7 (SMG1)
Assault Wpn. Portable Airboat Gun   •   AK-47   •   Laser Gun   •   Overwatch Standard Issue (AR2)   •   Karabiner 98   •   SPAS-12 Shotgun   •   Dragunov (SVD)
Thrown ANM14 Incendiary   •   Banana Bomb   •   Bug Bait   •   Bug Spawner   •   Frag Grenade   •   Gravity Grenade   •   Vortex Hopwire   •   Trap Hopwire   •   Motion Sensor Bomb   •   Scissors
Ranged Explosive PSP   •   Rocket-Propelled Grenade (RPG)   •   Sticky Bomber   •   Portable Strider Cannon
Other Crossbow   •   Flamethrower   •   Gravity Gun   •   Magic Wand (lstick)   •   Node Maker   •   Physics Gun   •   Physics Launcher
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License