Followers #
Some ally monsters can follow the player when they’re called by a player. In original Half-Life only scientists and security guards (barneys) could do that. Opposing Force expanded the list with cleansuit scientist, Otis and ally soldiers. Featureful SDK adds more monsters to the list: now almost any land monster can follow the player if they’re set to be a player ally.
HUD #
Featureful SDK allows to show the list of the allies who follow the player in HUD interface. This is similar to Half-Life 2, but with an addition of displaying the current monster’s health - this is depicted as the “filled” part of the HUD sprite, much like the player’s suit armor amount.

The follower HUD can be configured in sprites/hud_followers.json.
Example #
{
"default": {
"sprite_full": "follower_full",
"sprite_empty": "follower_empty",
},
"followers": {
"monster_barney": {
"color": [95, 95, 255]
},
"monster_scientist": {
"color": [240, 240, 240]
},
"monster_human_grunt_ally": {
"color": [0, 160, 0]
},
"monster_human_medic_ally": {
"color": [0, 160, 0],
"sprite_full": "medic_full",
"sprite_empty": "medic_empty"
},
"monster_human_torch_ally": {
"color": [0, 160, 0],
"sprite_full": "torch_full",
"sprite_empty": "torch_empty"
},
"female_civ": {
"color": [255, 85, 255]
}
}
}
In this example we defined:
follower_fullandfollower_emptyHUD sprite entries to use by default when showing a following ally icon in HUD.- Bluish color for barneys.
- Whitish color for scientists.
- Greenish color for opfor human grunts.
- Custom sprite entries for medic and torch.
- Pinkish color for npcs who belong to the
female_civentity template.
Properties #
"default"- definition of default HUD specification used when displaying a following ally."followers"- the object where each property is a definition of HUD specification for a specific ally type. The property keys are either classnames or entity template names - they’re used to pick the HUD specification depending on the monster type. Picking the specification for entity template name has higher preference over classnames.
The properties of "default" object and "followers" sub-objects:
"sprite_full"and"sprite_empty"- the names of sprite entries in sprites/hud.txt (not the paths to sprite files!). The"sprite_full"is used to show the fraction of monster’s health. The"sprite_empty"is used as a background for fraction of health the monster has lost. If either of the properties is defined the other one must be defined as well."color"- the color used to draw the sprites.
If the property is missing in the "followers" subobject, the properties from "default" are used.
If the "color" is not defined the player’s HUD color is used. When the monster’s health is low the sprite is always shown in red color.
hud.txt #
As mentioned, adding the sprite entries in sprites/hud.txt is required for displaying the icons in HUD.
Example:
follower_full 640 squad 0 0 32 48
follower_empty 640 squad 32 0 32 48
medic_full 640 squad 0 48 32 48
medic_empty 640 squad 32 48 32 48
torch_full 640 squad 0 96 32 48
torch_empty 640 squad 32 96 32 48
We recommend keeping the icons the same size (or at least the same height).
When adding new entries to the sprites/hud.txt don’t forget to increase the number at the beginning of the file by the number of added entries (6 in this example).
Fast recruiting #
When the mod utilizes a lot of allies on one map it becomes difficult to control them for a player. Featureful SDK implements some user commands to make it easier.
recruit_followers- make nearby allies follow the player.disband_followers- call off all following allies.
By default these commands don’t affect any monsters. You need to configure the list of affected monsters in features/followers.json. The sample mod provides the example:
{
"fast_recruit_monsters": [
"monster_human_grunt_ally",
"monster_human_torch_ally",
"monster_human_medic_ally"
],
"fast_recruit_range": 500
}
The fast_recruit_monsters is the list of monster names (should be full entity names) affected by the commands. fast_recruit_range is a radius (in units) around the player to search allies in.
As fast recruiting allows to call ally monsters from distance, it may potentially affect the map flow intended by the mapper if they don’t keep this fact in mind.
See also: User commands.