This article relates to the game "Half-Life: Alyx". Click here for more information.
This article relates to the workshop tools for "Half-Life: Alyx". Click here for more information.
This article's documentation is for Source 2. Click here for more information.

Ammo Balancing in Half-Life : Alyx

From Valve Developer Community
< Half-Life: Alyx Workshop Tools‎ | Level Design
Revision as of 23:25, 30 June 2023 by Ihonnyboy (talk | contribs) (Adjusted title of page to be more descriptive)
Jump to navigation Jump to search
English (en)Translate (Translate)

Ammo Types

Ammo Balancing in Half-Life: Alyx

Todo: Page under construction


Ammo Removal

Point_Template can be used to spawn ammo items when needed
hlvr_player_ammobal_removeat_pistol			"60"
...
hlvr_player_ammobal_removeat_shotgun		"12"
...
hlvr_player_ammobal_removeat_rapidfire		"150"

Remove ammo setting.png

Point_template

Potential Visibility Set

(temporary text) "the syringe testing was more interesting than I thought (only tested in normal difficulty): If you have full health, no syringe in pocket, there is a 50/50 chance of dropping (not every second spawn) If you have less than full health, no syringe in pocket, guarantied drop If you have syringe in pocket (health does not matter), you will have the 8-counter "chance" shared with the rest of the ammo"

Ammo Drain

hlvr_player_ammobal_min_pistol				"20"
hlvr_player_ammobal_max_pistol				"60"
...
hlvr_player_ammobal_min_shotgun				"8"
hlvr_player_ammobal_max_shotgun				"12"
...
hlvr_player_ammobal_min_rapidfire			"90"
hlvr_player_ammobal_max_rapidfire			"150"
hlvr_player_ammobal_drain_pistol			"4"
...
hlvr_player_ammobal_drain_shotgun			"6"
...
hlvr_player_ammobal_drain_rapidfire			"4"
sk_zombie_max_additional_ammo_shots			"18"
sk_headcrab_max_additional_ammo_shots		"4"
sk_barnacle_max_additional_ammo_shots		"8"
sk_combine_max_additional_ammo_shots		"16"

Best Practices

The Combine Locker prefab is often used to efficiently spawn ammo
Pacing scavenging can help reduce fatigue
My Output Target Entity Target Input Parameter Delay
Ouput_OnHackSuccess [locker_template] ForceSpawn 0.00

See Also