Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Enhanced Hostage Behavior

Featured Replies

  • Administrator

Improves hostage AI: they follow closer, avoid walking into hazards and stop idling when the leader is blocked, so rescues feel less random.

Enhanced Hostage Behavior 1.0.0 (olds.ro)

Makes following hostages less random: they halt at a set distance instead of pushing you, and when one has not moved for over 2 seconds it is nudged around what blocks it, hops across small gaps and waits at deep drops or lava/slime.

Requirements

  • AMX Mod X 1.10.0.5490 or newer (fakemeta, hamsandwich)
  • Counter-Strike 1.6 hostages (ReGameDLL_CS 5.30.0.814 tested)

Install

  • Compile scripting/olds_hostai.sma and copy olds_hostai.amxx to addons/amxmodx/plugins/.
  • Copy data/lang/olds_hostai.txt to addons/amxmodx/data/lang/.

Settings (addons/amxmodx/configs/plugins/olds_hostai.cfg, created on first run)

  olds_hostai_followdist 80   distance (units) at which a hostage halts
  olds_hostai_jumpgap 1       1 = hop across gaps up to 256 units deep
  olds_hostai_retarget 0.5    seconds between checks of each hostage (0.1-5)
  olds_hostai_enabled 1       set by amx_hostai

How it works After each hostage think (Ham_Think post on hostage_entity) the hostage is checked every olds_hostai_retarget seconds. Its leader is the CBaseMonster m_hTargetEnt the game sets on +use. Line traces (EngFunc_TraceLine) look 48 units ahead towards the leader and down for ground; the nudge is a short pev_velocity push. Dead hostages are skipped, and nothing is scheduled, so a hostage killed mid-nudge leaves nothing behind.

The card names a ReAPI RG_CHostage_Think hook; ReAPI has no hostage hook chain, so the same post-think point is taken with Ham_Think.

Admin (ADMIN_MAP)

  amx_hostai 0|1   switch the help off (vanilla at once) or on
  amx_hostai       show the state and list the hostages

No downloads.

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/olds_hostai.sma, test/hs_stub.sma

Idea: olds.ro workshop library · Plugin: daemon · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (LIB-0861).

Enhanced Hostage Behavior
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine HLDS, ReHLDSNeeds ReAPI NoMetamod Metamod-R0 downloads4.7 KBUpdated 9 hours ago
Sign in to download
Pawn (AMX Mod X) · 314 lines
/*
 * Enhanced Hostage Behavior (olds.ro)
 * Copyright (C) 2026 daemon (olds.ro), written by daemon's plugin agent
 *
 * This program is free software: you can redistribute it and/or modify it under the terms
 * of the GNU General Public License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
Show all 314 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.