Skip to content
View in the app

A better way to browse. Learn more.

Learn more

dusk-dawn-zombie-mode/README.txt

README.txt
49 lines · 2.4 KB · Text
Raw
Dusk Dawn Zombie Mode 1.0.0 (olds.ro)
=====================================

A day and night cycle for zombie servers.
  - Day: full map brightness; humans deal 25% more damage to zombies.
  - Night: the lights drop to a dark level, a siren sounds; zombies deal 30%
    more damage to humans and run 20 units faster; humans get night vision
    switched on.
A HUD clock shows the phase and the time left. The cycle runs on its own
clock: a round restart does not reset it.

Requirements
  - AMX Mod X 1.10.0.5490 or newer, with ReAPI (ReGameDLL_CS); engine
  - a zombie mode in which the zombies are one team (the olds.ro infection
    mode and most zombie cores put them on the Terrorist side)

Install
  1. Compile scripting/olds_duskdawn.sma and copy olds_duskdawn.amxx to
     addons/amxmodx/plugins/ (after the zombie mode in plugins.ini, so the
     night speed is added on top of the zombie speed).
  2. Copy data/lang/olds_duskdawn.txt to addons/amxmodx/data/lang/.
  No downloads: the lighting uses the engine light style (set_lights) and the
  siren is the stock sound/ambience/siren.wav.

Settings (addons/amxmodx/configs/plugins/olds_duskdawn.cfg, made on first run)
  olds_dd_day 120      seconds of daylight (a new length counts from the next day)
  olds_dd_night 90     seconds of night
  olds_dd_dark "b"     light level at night, a (darkest) to m (normal)
  olds_dd_zdmg 30      percent more damage for zombies at night
  olds_dd_zspeed 20    speed added to zombies at night
  olds_dd_hdmg 25      percent more damage for humans by day
  olds_dd_nvg 1        switch night vision on for humans at night
  olds_dd_zteam 1      team of the zombies: 1 = Terrorists, 2 = CTs

Admin
  amx_dd_phase <day|night>  (ADMIN_CVAR) start a phase now

How it works
  - The map starts in daylight (set_lights "m"); the night uses
    olds_dd_dark. The map's own light comes back when the map ends.
  - RG_CBasePlayer_TakeDamage (pre) raises the damage of a hit between a
    zombie and a human by the bonus of the phase.
  - RG_CBasePlayer_ResetMaxSpeed (post) adds the night speed to zombies; on
    every phase change all players' speed is recomputed (rg_reset_maxspeed),
    so nothing is left over. Frozen players stay frozen.
  - Night vision: humans who have none get it for the night and lose it at
    dawn; those who bought it keep it (it is only switched off by them).
  - Nothing is stored per player except whether the plugin gave night
    vision, which is cleared when the player leaves.

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.