Items - FreeSlave/halflife-featureful GitHub Wiki

Wiki is deprecated. Proceed to GitHub pages!

Common features

  • Items and ammo models can be configured in map editor.
  • KillTarget and Delay before trigger parameters now work.
  • images/svencoop.png New parameter Gravity Setting.

Changes to Half-Life items

Battery

Healthkit

Security card (item_security)

  • New parameter Message - show message from titles.txt on pickup.
  • New parameter Pickup sound - sound played on pickup.

Soda can (item_sodacan)

  • New skill value sk_soda to configure the amount of provided health.

Weapon box (weaponbox)

  • Weaponbox dropped by a player has a model of contained weapon.
  • Weaponbox has a 'Target' parameter to fire a target when picked up.
  • If weaponbox provides ammo for an exhaustible weapon (e.g. handgrenades), then it will also provide the weapon entity in case the player doesn't have the appropriate weapon.

New pickable items

  • images/bshift.png item_armorvest
  • images/bshift.png item_helmet
  • item_pickup - generic item that can be picked by a player. Can also give inventory item if specified. See Player inventory.
  • item_flashlight - alternative way to acquire flashlight without acquiring a suit.
  • item_nvgs - acquire Night-vision goggles. This is an auxiliary entity that can be spawned via give cheat. It doesn't have its own model.

New world objects

While these are not pickable entities, they share the item_ prefix in their names.

New ammo items

Randomizing items

Set of entities used to spawn a random item, weapon or ammo:

  • item_random - spawns a random item and removes itself. Configuring probablities for each item_random is a tedious work, so it's better to use info_item_random in combination with item_random_proxy to avoid repeating yourself.
  • info_item_random - acts as a template for item_random_proxy.
  • item_random_proxy - spawns random item using the list from specified info_item_random.

func_breakables support info_item_random too.