CSB Portal Gun

v1.0.0 0 downloads Daemon666 Last updated: Jul 15, 2026

Place a blue and an orange portal by aiming at a surface; walking into one teleports you to the other with your velocity kept.

CSB Portal Gun is a two-portal teleporter. Bind a key to +portalblue and one to +portalorange; each fires a trace from your aim and drops that colour portal on the surface it hits, nudged off the wall so you can step into it. When both of your portals exist, walking into one teleports you to the other and keeps your velocity, so you fly out of the far side. Portals are per-player, marked with a coloured sprite pillar, and cleared at round start.

Features

  • Independent blue and orange portals bound to keys.
  • Velocity is preserved through the teleport for momentum tricks.
  • Portals are drawn as coloured sprite pillars and refreshed on a task.
  • Per-player and reset every round; a short cooldown stops teleport loops.

Installation

  1. Enable the fakemeta module in modules.ini.
  2. Compile csb_portal_gun.sma, copy it to addons/amxmodx/plugins/ and add it to plugins.ini.
  3. Change the map, then bind mouse1 +portalblue and bind mouse2 +portalorange in your config.

Installation

1. Enable the fakemeta module in addons/amxmodx/configs/modules.ini
2. Put csb_portal_gun.amxx in addons/amxmodx/plugins/ and add it to plugins.ini
3. Change map
4. bind keys to +portalblue and +portalorange

CVARs

CVARDefaultDescription
csb_portal_enabled 1 Enable or disable the portal gun.
csb_portal_radius 48.0 Distance from a portal that triggers the teleport.

Commands

CommandAccessDescription
+portalblue Fire the blue portal at your aim point.
+portalorange Fire the orange portal at your aim point.

Changelog — v1.0.0

1.0.0 - Initial release.
Versions →
Contributors: Daemon666 ✦
License: GPL-3.0

Rating

No ratings yet.

Download v1.0.0

Compiled live from the source below — nothing pre-built.
Download source (.sma)
Files:
csb_portal_gun.sma main 5.6 KB

Requirements

AMX Mod X ≥ 1.9
Engine ReHLDS HLDS
ReGameDLL Not required
ReAPI Not required
Metamod Metamod / Metamod-r
Required modules fakemeta
Known conflicts On surf and bhop maps the velocity-preserving teleport can be very fast; tune the radius.
Back to Plugins