Half-Life Featureful SDK 2024-07-15
Pre-releaseThe mod sample is included in the archive, with the test map and assets
The provided FGD has an extended format used by J.A.C.K. and won't work with Valve Hammer Editor!
This release also includes the custom FGD provided by the community with assets like entity-specific icons and models that might help the level designer.
Note: zhlt entities are not included in the FGD. You must add zhlt.fgd to your game profile configuration in the map editor.
If you already have a mod in development based on Half-Life Featureful read this article to get the idea how to apply the new SDK version for your project.
Changelog
Fast recruiting
New commands recruit_followers
and disband_followers
allow players to recruit all nearby friendly NPCs or call off everyone who is following the player by pressing one button. This is similar to fast recruiting of ally soldiers in Field Intensity.
The list of monsters affected by these commands is controlled by features/followers.json file.
Feature changes
- New feature in featureful_server.cfg:
vortigaunt_armor_charge
. Enable to allow friendly vortigaunts to give armor to the player (similar to HL2, experimental feature). The amount of armor is configured bysk_vortigaunt_armor_charge
skill value. The vortigaunt must have the free energy to perform charging. hud_color
command is no longer available by default. Sethud_color.configurable
feature in featureful_client.cfg to true to enable the HUD color configuration by user.- Add
hud_scale.default
andhud_scale.configurable
features to featureful_client.cfg. - Removed
hud_autoscale_by_default
feature in featureful_client.cfg. Sethud_scale.default
to 0 to enable autoscale by default.
Entities
game_player_settings
game_player_settings
now can set the player's armor to 0 (set=0
as value), add and substruct armor by a provided value.game_player_settings
now can add and substruct the player's health.- Spawnflags of
game_player_settings
are deprecated now. Weapons are now configured via parameters instead. It allows to remove specific weapons as well. game_player_settings
can now remove the specified amount of ammo (use a negative value).
trigger_changevalue
- Added
Treat new value as
parameter fortrigger_changealue
which allows to tell how the new value is treated. - Added
Action
parameter fortrigger_changevalue
.
Calc entities
- Added
Scale factor
parameter forcalc_ratio
. - Added more transformations for
calc_ratio
(from later versions of SoHL). - Added
calc_numfromvec
- calculate a single numeric value from the vector. - Added
calc_vecfromnums
- calculate the vector from three numeric values. - Added
Max
andMin
parameters forcalc_eval_number
. - The result of
calc_eval_number
is now getting stored only if evaulation has succeeded.Trigger after operation
is now called only if evaulation has succeeded. AddedTrigger on calculation fail
parameter. - Added
Report as vector
parameter forcalc_eval_number
. - Added
Mod
,Find Max
andFind Min
operators forcalc_eval_number
. - Added
Third operand
parameter forcalc_eval_number
- it allows to do computations on 3 parameters using the same entity.
Other entities
- Added
Armor Damage
andDo Armor Damage
spawnflags fortrigger_hurt_remote
(compatibility with Sven Co-op). - Added
Player Invulnerable
spawnflag fortrigger_camera
(compatibility with Sven Co-op). - Added
Position
andDirection
parameters forparticle_shooter
. - Added
Direction
parameter forenv_smoker
. - Added
Landmark
parameter fortrigger_teleport
(compatibility with Spirit of Half-Life). - Added new entity
item_pickup
. It can give a specified inventory item to the player on pickup (as an alternative toplayer_inventory
). item_security
icon is no longer shown in history of picked up items on the security card pickup unless the HUD sprite is set explicitly in the entity parameters. In general it's advised to useitem_pickup
instead.- Added
Forward activator
fortrigger_timer
. - Added
Trigger on arrival
forinfo_teleport_destination
(compatibility with Sven Co-op).
Bugfixes
trigger_hurt_remote
doesn't push the player anymore (it was unintended effect).- Fixed
Entity to play from
parameter ofambient_generic
not working properly sometimes. - Fixed
env_smoker
not emitting the correct number of smokes after the repeated activation. - Inventory items HUD icons are no longer shown again when reloading the game.
Player inventory changes
- The name length of player inventory items is no longer limited by 23 characters.
- Inventory items are removed upon player's death.
Console commands
- Added
calc_position
andcalc_velocity
commands to get the position and velocity reported by the specified entity.
FGD changes
- Added ZHLT properties to brush model entities (like
func_wall
, etc.). Note that you still need to include zhlt.fgd in order to have access to compiler-specific entities likefunc_detail
. - Added
Glow Shell
as render fx option in fgd. - Improved descriptions of some
calc_
entities.
Changes to the demo map
- Added examples of relative teleport and seamless teleport.
- Added an elaborate example showing the usage of
trigger_changevalue
and somecalc_
entities.