Welcome Guest, Not a member yet? Create Account  
Shop (VIP/ADMIN/S.ADMIN/XP)


Charger v2.2

#1

Charger

Description
This plugin adds a fully dynamic charger system to Counter-Strike 1.6.
Chargers can be placed, managed and configured during gameplay with full runtime control over visibility, team access, spawn behavior and activation states.
Custom setups are saved per map and automatically loaded on every map start.
  • Create and remove chargers during gameplay via an in-game menu
  • Multiple charger types: Health, HEV, and Civilian with individual models and sounds
  • Configurable per charger: capacity, rate, cooldown, refill, team, flags and spawn mode
  • Delayed and cyclic activation with random ranges and permanent activation support
  • Breakable and explosive chargers with overload mechanics and break thresholds
  • Toggle charger visibility and status individually or all at once
  • Team access configurable for Terrorists, CTs, both or disabled
  • Chargers can respawn after a delay or at round start with a configurable spawn chance
  • Noclip support for easier placement
  • Requires AMX Mod X 1.9.0+

Commands
  • say /charger -- Opens the charger menu.
  • say_team /charger -- Opens the charger menu.
  • charger_reload -- Reloads the configuration file.

Configuration
Code:
# [Main Settings]
# SETTING_DEFAULT_MODEL          = Default charger model path
# SETTING_DEFAULT_CLASS          = Default class (0 - Health, 1 - HEV, 2 - Civilian)
# SETTING_DEFAULT_FLAGS          = Default flags (a - Breakable, b - Explosive, c - Wear, d - Refill, e - Active Delay)
# SETTING_DEFAULT_TEAM            = Default team (0 - None, 1 - T, 2 - CT, 3 - Both)
# SETTING_DEFAULT_SOUND          = Default sound set (0 - Health, 1 - HEV)
# SETTING_DEFAULT_MODE            = Default mode (0 - Health, 1 - Armor)
# SETTING_DEFAULT_CAPACITY        = Default charger capacity
# SETTING_DEFAULT_LIMIT          = Default player usage limit
# SETTING_DEFAULT_RATE            = Default amount given per use (min - max)
# SETTING_DEFAULT_COOLDOWN        = Default delay between uses (min - max)
# SETTING_DEFAULT_REFILL          = Default refill delay (min - max)
# SETTING_DEFAULT_SPAWN_MODE      = Default spawn mode (0 - Never, 1 - Delayed, 2 - Round Start)
# SETTING_DEFAULT_SPAWN          = Default spawn time range (min - max)
# SETTING_DEFAULT_SPAWN_CHANCE    = Default spawn chance (0.0 - 1.0)
# SETTING_DEFAULT_ACTIVE_DELAY    = Delay before charger becomes active (min - max)
# SETTING_DEFAULT_ACTIVE_DURATION = How long the charger stays active (min - max)
# SETTING_DEFAULT_ACTIVE_COOLDOWN = Cooldown before reactivation (min - max)
# SETTING_DEFAULT_HEALTH          = Charger health
# SETTING_DEFAULT_BREAK_RATIO    = Overload added per use
# SETTING_DEFAULT_BREAK_THRESHOLD = Overload threshold before break check
# SETTING_DEFAULT_BREAK_CHANCE    = Chance to break once threshold is reached
# SETTING_DEFAULT_EXPLODE_DAMAGE  = Explosion damage
# SETTING_DEFAULT_EXPLODE_RADIUS  = Explosion radius

# Per-charger settings (defined under each [Charger Name] section):
# CHARGER_FLAGS        = a - Breakable    b - Explosive    c - Wear    d - Refill    e - Active Delay    f - Active Permanent
# CHARGER_CLASS        = 0 - Health      1 - HEV          2 - Civilian
# CHARGER_TEAM        = 0 - None        1 - Terrorist    2 - Counter-Terrorist    3 - Both
# CHARGER_SPAWN_MODE  = 0 - Never        1 - Delayed      2 - Round Start

Changelog
Code:
* v1.0: Initial release.
* v1.1: Simplified BBox.
* v1.2: Manual rotation (no floor placement), improved readability.
* v1.3: Refills after a set duration, single-player usage lock, all sounds emitted from charger entities.
* v1.4: Bug fixes, chargers can be placed against any surface, added ROLL rotation support.
* v1.5: Optimized code, added activation delay after round start, chargers can break or explode from damage and overload.
* v1.6: Improved placement logic for natural alignment with ground and walls.
* v2.0: Redesigned charger architecture for full dynamic control, runtime management of visibility, team and spawn settings.
* v2.1: Bug fixes and config improvements.
* v2.2: Added FLAG_ACTIVE_PERMANENT, improved round-start logic, various bug fixes.



Download
Charger v2.2
Reply




Users browsing this thread:
1 Guest(s)