Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Base Builder Human Class Menu

Featured Replies

  • Administrator

After the build phase humans pick a class from a menu, each with its own weapons, health and a small perk.

Base Builder Human Class Menu 1.0.0 (olds.ro)

When the build phase ends every living human gets a class menu (also on say /class). Each class has its own weapons, health, armour, speed and a small perk. The choice is kept for the map and applied again on every human spawn, without the menu.

Requirements

  • AMX Mod X 1.10.0.5490 or newer, with ReAPI (ReGameDLL_CS); fun
  • the Base Builder Core Mode (library "olds_basebuilder", include/olds_basebuilder.inc, workshop card LIB-0009)

Install

  • Compile scripting/olds_bbclass.sma (scripting/include/olds_basebuilder.inc next to it) and copy olds_bbclass.amxx to addons/amxmodx/plugins/, after the core in plugins.ini.
  • Copy configs/olds_bb_classes.ini to addons/amxmodx/configs/ and data/lang/olds_bbclass.txt to addons/amxmodx/data/lang/. No downloads: stock weapons, a text menu.

Settings (addons/amxmodx/configs/plugins/olds_bbclass.cfg, made on first run)

  olds_bbc_change_once 1   once a class is applied in a round it cannot be
                           changed until the next round
  olds_bbc_default 0       class number (1 = first line) given on spawn to
                           humans who chose none; 0 = none

olds_bb_classes.ini (up to 12 classes, menu order) "Name" health armour speed "weapon_a weapon_b ..." [perk] health 1-255; armour 0-255 (kevlar and helmet); speed 0 = normal, else the run speed (up to 400); up to 6 stock weapon_* names, each with full backpack ammo; perk: regen (+3 HP every 2 s up to the class health), armor (+5 armour every 2 s up to the class armour) or none. Shipped: Soldier, Medic (regen), Engineer (armor), Scout.

Players

  say /class   the class menu (living humans only; zombies get a notice)

How it works

  • The menu opens for living humans on the core's phase change from build to preparation (or straight to the fight).
  • Picking a class: a held block is let go first (-bbgrab, which the core answers), then the loadout is applied at once: all items are removed, the knife and the class weapons are given (give_item), health is set (set_user_health), then armour and speed.
  • RG_CBasePlayer_Spawn (post): 0.1 s later (after the core) a human with a class gets it again. RG_CBasePlayer_ResetMaxSpeed keeps the class speed.
  • Choices are kept per player for the map and cleared when he leaves.

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/include/olds_basebuilder.inc, addons/amxmodx/scripting/olds_bbclass.sma, test/bb_stub.sma

Idea: olds.ro workshop library · Plugin: daemon · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (LIB-0011).

Base Builder Human Class Menu
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads6.5 KBUpdated 3 hours ago
Sign in to download
Pawn (AMX Mod X) · 315 lines
/*
 * Base Builder Human Class Menu (olds.ro workshop card LIB-0011)
 *
 * When the build phase ends every living human gets a class menu (also on say /class):
 * each class has its own weapons, health, armour, speed and a small perk. The choice is
 * kept for the map and applied again on every human spawn, without the menu.
 * Classes: configs/olds_bb_classes.ini.
Show all 315 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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.