Skip to content

Half-Life Featureful SDK 2024-07-15

Pre-release
Pre-release
Compare
Choose a tag to compare
@FreeSlave FreeSlave released this 15 Jul 17:01
· 331 commits to featureful since this release

The 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 by sk_vortigaunt_armor_charge skill value. The vortigaunt must have the free energy to perform charging.
  • hud_color command is no longer available by default. Set hud_color.configurable feature in featureful_client.cfg to true to enable the HUD color configuration by user.
  • Add hud_scale.default and hud_scale.configurable features to featureful_client.cfg.
  • Removed hud_autoscale_by_default feature in featureful_client.cfg. Set hud_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 for trigger_changealue which allows to tell how the new value is treated.
  • Added Action parameter for trigger_changevalue.

Calc entities

  • Added Scale factor parameter for calc_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 and Min parameters for calc_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. Added Trigger on calculation fail parameter.
  • Added Report as vector parameter for calc_eval_number.
  • Added Mod, Find Max and Find Min operators for calc_eval_number.
  • Added Third operand parameter for calc_eval_number - it allows to do computations on 3 parameters using the same entity.

Other entities

  • Added Armor Damage and Do Armor Damage spawnflags for trigger_hurt_remote (compatibility with Sven Co-op).
  • Added Player Invulnerable spawnflag for trigger_camera (compatibility with Sven Co-op).
  • Added Position and Direction parameters for particle_shooter.
  • Added Direction parameter for env_smoker.
  • Added Landmark parameter for trigger_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 to player_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 use item_pickup instead.
  • Added Forward activator for trigger_timer.
  • Added Trigger on arrival for info_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 of ambient_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 and calc_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 like func_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 some calc_ entities.