Jump to content
DarkLegions
Welcome to DarkLegions
Join the ultimate Counter-Strike 1.6 gaming experience! DarkLegions is where skilled players unite to dominate our servers. Whether you're a seasoned veteran or rising rookie, our community offers the perfect servers to showcase your skills and forge legendary moments.

Popular Servers:

KNIFE.DARKLEGIONS.RO Click for more info! connect
ZE.DARKLEGIONS.RO Click for more info! connect
CS.DARKLEGIONS.RO Click for more info! connect

Recommended Posts

Posted

Environmental Hazards v1.0

Description

This plugin lets you set up different hazards/traps that spawn randomly each round start, They only get to become active when they're spawned at the start of the round.
For now there's only Bear Traps, Lasermines and Oil Drums.

Each hazard entry uses HAZARD_SPAWN_CHANCE set between 0.0 (never spawns) and 1.0 (always spawns) defining the probability of spawning at round start.
Hazards are fully customizable with settings like:

  • Health
  • Damage
  • Damage Radius (for explosive hazards)  
  • Bleeding and Poisoning effects (if the hazard class supports them)

Commands

say /hazard            -- Opens the Environmental Hazards menu.
say_team /hazard -- Opens the Environmental Hazards menu.
say /eh                    -- Opens the Environmental Hazards menu.
say_team /eh         -- Opens the Environmental Hazards menu.
hazard_reload       -- Reloads the configuration file.

Adding Hazards

Hazards can be added in the config file configs/EnvironmentalHazards.ini by placing the hazard name in square brackets on a new line, Example: [BearTrap Hazard].

The order of properties matters, set the common ones first (like Health and Damage) then finish with HAZARD_CLASS.
After that you can add any specific-hazard properties such as BEARTRAP_DELAY.

To create a custom hazard, add a new entry in configs/EnvironmentalHazards.ini using the following format

# [Hazard Name]
# HAZARD_MODEL                  = Path to the hazard’s model.
# HAZARD_HEALTH                 = Base health.

### (BearTrap Only)
# HAZARD_BITE_DAMAGE_MIN        =  Min bite damage per tick.
# HAZARD_BITE_DAMAGE_MAX        =  Max bite damage per tick.
# HAZARD_BLEED_DAMAGE_MIN       =  Min bleed damage per tick.
# HAZARD_BLEED_DAMAGE_MAX       =  Max bleed damage per tick.
# HAZARD_BLEED_DURATION_MIN     =  Min seconds of bleeding.
# HAZARD_BLEED_DURATION_MAX     =  Max seconds of bleeding.
# HAZARD_BLEED_SPEED            =  Speed factor (1.0 = normal speed, 0.0 = immobilized).

### (Lasermine/Oildrum Only)
# HAZARD_EXPLOSION_DAMAGE       =  Explosion damage factor (1.0 = base damage).
# HAZARD_EXPLOSION_RADIUS       =  Explosion radius factor (1.0 = base radius).
# HAZARD_POISON_DAMAGE_MIN      =  Min poison damage per tick.
# HAZARD_POISON_DAMAGE_MAX      =  Max poison damage per tick.
# HAZARD_POISON_DURATION_MIN    =  Min seconds of poison.
# HAZARD_POISON_DURATION_MAX    =  Max seconds of poison.
# HAZARD_POISON_SPEED           =  Speed factor (1.0 = normal speed, 0.0 = immobilized).

# HAZARD_SPAWN_CHANCE           =  0.0 = never spawn, 1.0 = always spawn.
# HAZARD_FLAGS                  =  a -damageable, b -explodes, c -bleeds, d -poisons.
# HAZARD_CLASS                  =  0 -BearTrap, 1 -Lasermine, 2 -Oil Drum.
#
### (BearTrap-Extras)
# BEARTRAP_DELAY   =  Delay before the hazard reactivates.
# BEARTRAP_OPACITY =  (0 = invisible, 255 = fully visible).

### (Lasermine-Extras)
# LASERMINE_DELAY  = Seconds before laser beam activates.
# LASERMINE_COLOR  = 0 -Red, 1 -Green, 2 -Blue, 3 -Yellow, 4 -Magenta, 5 -Cyan, 6 -Orange, 7 -Purple, 8 -White, 9 -Gray.

### (Oildrum-Extras)
# For now there's no extra properties for OilDrum.

# To make a hazard available in the menu, you must defined at least it's name like this [BearTrap Hazard].
# hazard model and sound cannot be changed dynamically during gameplay.
#
# IMPORTANT: HAZARD_CLASS must the last common property,
#            before defining any custom specific-hazard properties,
#            since the class must be known first.

DOWNLOAD ENVIRONEMNTAL HAZARDS v1.0

Alliedmodders post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...