Server bewerben
csb-c4-timer / README.md
1 lines 1.5 KiB Markdown Source Rendered Raw Permalink History
<p><strong>CSB C4 Timer</strong> shows a live countdown of the seconds left on a planted bomb, computed from <code>mp_c4timer</code> and the exact plant time. The fuse colour ramps from green to amber to red, an intensity bar fills as the explosion nears, and each living CT is told whether they can still defuse in time given their defuse kit.</p><h2>How it works</h2><p>The plant is detected through the <code>Planted_The_Bomb</code> log event; a fast HUD task then draws the countdown to everyone. For each CT the plugin compares the time left against the stock defuse timings (10 s without a kit, 5 s with one, read via <code>cs_get_user_defuse</code>) and prints either &quot;Defusable&quot; or &quot;TOO LATE to defuse&quot;. The timer stops on defuse, on explosion, or when a new round starts.</p><h2>Features</h2><ul><li>Exact seconds-left countdown based on the real plant time.</li><li>Green &rarr; amber &rarr; red colour ramp plus a fill bar for urgency.</li><li>Per-CT defusable / too-late notice using the player's defuse kit.</li><li>Cleans up correctly on defuse, explosion and round restart.</li></ul><p>Inspired by the classic <em>C4 Timer</em> plugins for AMX Mod X; this is an independent GPL re-implementation.</p><h2>Installation</h2><ol><li>Compile and copy <code>csb_c4_timer.amxx</code> into <code>addons/amxmodx/plugins/</code>.</li><li>Make sure the <code>cstrike</code> module is enabled (it is by default).</li><li>Add it to <code>plugins.ini</code> and change the map.</li></ol>