Skip to content
View in the app

A better way to browse. Learn more.

Learn more

CT Safe Buttons

Featured Replies

  • Administrator

Prevents counter-terrorists from pressing trap buttons in deathrun.

CT Safe Buttons 1.0.0 (olds.ro) - Deathrun

Counter-terrorists (the runners) cannot set off trap buttons: pressing one (+use) or shooting a shootable one does nothing for them, with a chat line and the stock click sound/buttons/button10.wav. The terrorist (the trap master) uses them as normal. Buttons fired by other entities (relays, triggers) are not touched. Buttons listed in configs/olds_ctsafe.ini work for everyone on that map (doors to the end, teleports, secret rooms...).

Requirements

  • AMX Mod X 1.10.0.5490 or newer, with ReAPI (ReGameDLL_CS); fakemeta, hamsandwich

Install

  • Compile scripting/olds_ctsafe.sma and copy olds_ctsafe.amxx to addons/amxmodx/plugins/.
  • Copy configs/olds_ctsafe.ini to addons/amxmodx/configs/ and data/lang/olds_ctsafe.txt to addons/amxmodx/data/lang/. No downloads.

Settings (addons/amxmodx/configs/plugins/olds_ctsafe.cfg, made on first run)

  olds_ctsafe_enable 1     CTs cannot use trap buttons
  olds_ctsafe_msg 1        the chat line and click for the CT
  olds_ctsafe_classes "func_button,func_rot_button"
                           button classes guarded, read at map start; the
                           plugin knows func_button, func_rot_button,
                           momentary_rot_button and button_target

olds_ctsafe.ini "<map> <button>" per line: the button's targetname, or its brush model (*12); the map * means every map.

How it works

  • Ham_Use on the button classes: when the activator is a CT player the use is superseded, so the button neither moves nor fires its target.
  • Ham_TraceAttack and Ham_TakeDamage on the same classes: a CT's shot is superseded, so a shootable button is not triggered.
  • The chat line is sent at most every 1.5 s per player.

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_ctsafe.sma, test/ct_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-0809).

CT Safe Buttons
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads3.7 KBUpdated 2 hours ago
Sign in to download
Pawn (AMX Mod X) · 174 lines
/*
 * CT Safe Buttons (olds.ro workshop card LIB-0809) - Deathrun
 *
 * Counter-terrorists (the runners) cannot set off trap buttons: pressing one (+use) and
 * shooting a shootable one do nothing for them, with a chat line and a click. The
 * terrorist (the trap master) uses them as normal. Buttons fired by other entities
 * (relays, triggers) are not touched. Buttons named in configs/olds_ctsafe.ini work for
Show all 174 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.