Skip to content
View in the app

A better way to browse. Learn more.

Learn more

armor-loan/README.txt

README.txt
40 lines · 1.7 KB · Text
Raw
Armor Loan 1.0.0 (olds.ro)
==========================

Biohazard: a human offers some of their own armor to a nearby human; the
other player accepts or declines in a menu. Armor only moves between the
two: the combined total never changes.

Requirements
  - ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  - AMX Mod X 1.10.0.5490 or newer (cstrike module)
  - Biohazard (library "biohazardf", is_user_zombie())

Install
  1. Compile scripting/olds_armorloan.sma and copy olds_armorloan.amxx to
     addons/amxmodx/plugins/, below biohazard.amxx. The compiler needs
     ReAPI's include files.
  2. Copy data/lang/olds_armorloan.txt to addons/amxmodx/data/lang/.

Use
  say /armorloan <name> <amount>   offer armor (1 to olds_armorloan_max)

Settings (addons/amxmodx/configs/plugins/olds_armorloan.cfg, created on first run)
  olds_armorloan_range 200   most distance between the two players (50-1000)
  olds_armorloan_max 50      most armor in one offer (1-100)

Details
  - The recipient gets a menu: Accept or Decline. An offer lasts 15 seconds;
    a new offer, a decline, either player leaving or a round restart cancels
    it.
  - On Accept everything is checked again: both connected, alive and human,
    still within range, and the donor still has armor.
  - The amount moved is the smallest of the offer, the donor's armor and the
    room the recipient has left (armor holds at most 100): donor 80 and
    recipient 70 with an offer of 50 moves 30, and the total stays 150.
    If nothing fits, nothing moves.
  - A recipient without armor gets a plain vest; armor is read and written
    with cs_get_user_armor / cs_set_user_armor in one step.
  - Both hear the stock items/ammopickup2.wav, and the loan is logged.

No downloads: a menu, chat and a stock sound.

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.