This module allows you to perform some actions on a player or his weapon (get/set cash, change weapon firemode, etc.) from AMXX scripts in The Specialists 3.0.
The module was written to replace the module tsfun, because the tsfun developers abandoned supporting of their module and ~90% of the functionality in tsfun does not work in TS 3.0.
Also, I plan to add new functionality to the module and fix discovered module bugs.
If you can help me to add new functionality, or have ideas, or found a bug, please write in this thread.
Getting/setting player free slots/cash/stamina/physics speed/effects physics speed/status (text near nick in scoreboard)/powerup type/powerup duration/active powerup/etc.
Getting/setting weapon shooting params (accuracy, recoil, etc.)/firing mode/attachments/bullets count in clip/total bullets count/readiness status (pump-action weapons).
Giving weapons/powerups for player.
Spawning weapons/powerups in a certain position on the map.
More information about natives you can look in the file tse.inc in archive.
Latest version: 1.2.8
AMX Mod X Development Team
+ Added tse_getuserkevlar function (works mechanics describing in tse.inc)
+ Improved debug-mode - now displays type of message: broadcast, PVS, etc.
+ Added parameter "ALL" for 'tse incmsg' and 'tse excmsg' commands, that includes/excludes all messages from hooking list.
+ Added interface for calling game .dll function (example function contains in dllfuncs.cpp)
Address of any game dll function can be obtained using signature scanning (as in example) or by using these formula: game .dll base address + function offset (can be obtained in IDA/OllyDbg) = function address.
After we got the address of the function, we can call it by pointer (see example).
+ Improved message hooking system
+ Added 'tse version' console command
+ Added tse_getweapfiremode function (see description in tse.inc)
+ Added debug-mode support
What is debug-mode?
Debug-mode allows you to intercept game messages, to watch arguments of message and who the message was sent.
To enable/disable the debug mode, use 'tse debugmode'. All information about messages will be written to server console.
To tell the module about messages you want to intercept, use the console command 'tse incmsg MSG_NAME'. If you want to stop intercept message, use 'tse excmsg MSG_NAME'.
View a list of all available messages you can in output from the command 'meta game'.
tse incmsg TSHealth
Result (from server console):
TSHealth -> %username%
BYTE | %intercepted value%
- for simple and effective modding API.
- for tsfun module.
- for ava_ts include.
- for supporting.
Download & Source codes:
Archive (.zip) with module attached to this post.
P.S: Can anyone compile and test module on Linux?