Skip to content
View in the app

A better way to browse. Learn more.

Learn more

tower-upgrade-tiers/README.txt

README.txt
32 lines · 1.8 KB · Text
Raw
Tower Upgrade Tiers (olds.ro workshop idea IDEA-906B12E980D548F2)
Copyright (C) 2026 daemon (olds.ro). GPL-3.0-or-later.

An add-on for the olds.ro Tower Defence core (LIB-2275): a player can upgrade
a tower they own twice, or sell it.

  - Look at your tower (get_user_aiming, within 128 units) and say /tdup (or
    bind the command tdup). Only the tower's owner (var_owner) gets the
    menu; others are told so.
  - 1. Upgrade: tier 1 costs olds_tdup_cost1, tier 2 olds_tdup_cost2;
    refused without enough money. Tier 1 multiplies range and fire rate by
    1.25, tier 2 by 1.5. The tower glows blue at tier 1 and gold at tier 2
    (kRenderFxGlowShell, var_rendercolor), so teammates see strong towers.
  - 2. Sell: refunds olds_tdup_refund (half) of everything spent: the core's
    tower price (olds_td_towercost) plus the upgrades bought. The tower is
    removed. (The core still counts it among the owner's towers.)

How it works with the core: the core keeps its own tower mark in var_iuser4,
so the tier is kept in var_iuser3. The core fires every 0.5 s within 700
units; after each of its thinks this add-on shortens the next think by the
tier's multiplier (more shots) and fires the same beam and damage itself at
an NPC the core could not reach, between 700 units and the tier's range.
olds_tdup_base_rate / _base_range / _damage must match the core (0.5, 700,
20).

Cvars (configs/plugins/olds_tdup.cfg): olds_tdup_cost1 600, olds_tdup_cost2
1200, olds_tdup_refund 0.5, olds_tdup_base_rate 0.5, olds_tdup_base_range
700, olds_tdup_damage 20. Admin: amx_tdup_status (ADMIN_RCON).

Install: compile scripting/olds_tdup.sma with amxxpc 1.10, add olds_tdup.amxx
to plugins.ini after the Tower Defence core, copy data/lang/olds_tdup.txt.
Needs ReAPI, engine, fakemeta, hamsandwich. No downloads (the core's model).

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.