Items - FreeSlave/halflife-featureful GitHub Wiki
GitHub pages!
Wiki is deprecated. Proceed toCommon features
- Items and ammo models can be configured in map editor.
KillTarget
andDelay before trigger
parameters now work.- images/svencoop.png New parameter
Gravity Setting
.
Changes to Half-Life items
Battery
- images/svencoop.png New parameter
Charge Supplied
.
Healthkit
- images/svencoop.png New parameter
Health Supplied
.
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.
- images/opfor.png images/svencoop.png item_generic - a static prop. See Other-entities#-item_generic.
- images/opfor.png item_nuclearbomb - a bomb used near the end of Opposing Force. Makes beeping sounds, can be turned off.
- images/decay.png item_eyescanner - a modelled eye scanner. See Other-entities#-item_eyescanner.
- images/decay.png item_healthcharger - a modelled health charger.
- images/decay.png item_recharge - a modelled armor charger.
New ammo items
- images/opfor.png images/svencoop.png ammo_556
- images/opfor.png images/svencoop.png ammo_762
- images/opfor.png images/svencoop.png ammo_spore
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_breakable
s support info_item_random
too.