Watch
1
0
Fork
You've already forked ReAPI
0
mirror of https://github.com/rehlds/ReAPI.git synced 2026-11-16 23:24:10 +00:00
AMXModX module providing APIs for ReHLDS, ReGameDLL, and Metamod plugins (e.g., ReUnion, ReVoice).
  • C++ 54.3%
  • C 25.9%
  • pawn 18.5%
  • Shell 0.5%
  • Batchfile 0.5%
  • Other 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nord1cWarr1or a9d1eab794
feat: support VoiceTranscoder API 3.1 (#396)
* feat: support VoiceTranscoder API 3.1 (block natives) and PlaySound broadcast

- sync vendored vtc_api.h with the real VTC module (2017RC5, API 3.1): MajorVersion/MinorVersion, BlockClient/UnblockClient/IsClientBlocked
- cache the real minor version at init; VTC 3.0 stays supported (the minor gate is a notice now, not fatal)
- new natives VTC_BlockClient/VTC_UnblockClient/VTC_IsClientBlocked with an API 3.1 guard (LogError + FALSE on older VTC)
- VTC_PlaySound: allow receiver = 0 (broadcast to all clients, natively supported by VTC); receivers above maxClients are still rejected

* docs: document VTC block natives, PlaySound broadcast and path format

- reapi_vtc.inc: declare VTC_BlockClient/VTC_UnblockClient/VTC_IsClientBlocked
- VTC_PlaySound: document receiver 0 = all clients, gamedir-relative path and the PCM WAV requirement

* refactor: drop the VTC minor version notice

Running an older VTC is the server owner's choice, so announcing the
minor version mismatch at startup is noise: the module works either way.
Only the block natives need API 3.1, and they already log the error when
a plugin actually calls them.
2026-11-06 10:38:23 +03:00
.github/workflows ci: fix Linux build after Debian 11 EOL (#398) 2026-09-17 11:29:36 +03:00
msvc Add workflows/build.yml (Migrate to Github CI) 2021-04-24 00:25:20 +07:00
reapi feat: support VoiceTranscoder API 3.1 (#396) 2026-11-06 10:38:23 +03:00
.gitattributes Add .gitattributes 2021-04-24 00:25:25 +07:00
.gitignore Remove gradle build system 2021-04-18 17:55:43 +07:00
build.sh Add workflows/build.yml (Migrate to Github CI) 2021-04-24 00:25:20 +07:00
CHANGELOG.md fixed date of latest release 2024-11-15 17:42:05 +03:00
CMakeLists.txt Add workflows/build.yml (Migrate to Github CI) 2021-04-24 00:25:20 +07:00
LICENSE Initial commit 2016-03-30 17:12:54 +06:00
README.md added changelog + updated readme 2024-11-15 17:39:05 +03:00
version_script.lds Enable RTTI 2020-12-16 19:37:01 +07:00

ReAPI Download Downloads Percentage of issues still open License: GPL v3

AMX Mod X module, using API regamedll & rehlds

Build instructions

Checking requirements

There are several software requirements for building ReAPI:

Windows

Visual Studio 2015 (C++14 standard) and later

Linux

git >= 1.8.5
cmake >= 3.10
GCC >= 4.9.2 (Optional)
ICC >= 15.0.1 20141023 (Optional)
LLVM (Clang) >= 6.0 (Optional)

Building

Windows

Use Visual Studio to build, open msvc/ReAPI.sln and just select from the solution configurations list Release or Debug

Linux

  • Optional options using build.sh --compiler=[gcc] --jobs=[N] -D[option]=[ON or OFF] (without square brackets)
-c=|--compiler=[icc|gcc|clang]  - Select preferred C/C++ compiler to build
-j=|--jobs=[N]                  - Specifies the number of jobs (commands) to run simultaneously (For faster building)

Definitions (-D)
DEBUG                           - Enables debugging mode
USE_STATIC_LIBSTDC              - Enables static linking library libstdc++
  • ICC
    ./build.sh --compiler=intel
  • LLVM (Clang)
    ./build.sh --compiler=clang
  • GCC
    ./build.sh --compiler=gcc
Checking build environment (Debian / Ubuntu)
Click to expand
  • Installing required packages
    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo apt-get install -y gcc-multilib g++-multilib
    sudo apt-get install -y build-essential
    sudo apt-get install -y libc6-dev libc6-dev-i386
    
  • Select the preferred C/C++ Compiler installation
    1) sudo apt-get install -y gcc g++
    2) sudo apt-get install -y clang
    

How can I help the project?

Just install it on your game server and report problems you faced.
Merge requests are also welcome :shipit: