View Single Post
Author Message
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 04-15-2012 , 06:02   [DEV] *DEAD* TF2ItemsInfo v1.8.17.7 (21 Nov 2013)
Reply With Quote #1

Announcement!
Since I have no free time, also due to lack of interest, I cannot support this plugin anymore. I hope someone would make a mem-hacking version.

MEMORY LEAK FIX
https://forums.alliedmods.net/showpost.php?p=2177564


============================================= =============================================

What is it?
List of natives that could be useful for plugin devs.
What uses this?
* [TF2Items] Bot Weapon Randomizer
* [TF2Items] Give Weapon
* Many private plugins
Who is credit to team?
* Mecha The Slag - original idea;
* FlaminSarge - bug fixes,
* 11530 - bug reports.
How to install?
* Download files from Links section (below)
* Put tf2itemsinfo.smx in /addons/sourcemod/plugins/
* Put tf2itemsinfo.txt in /addons/sourcemod/data/
* Put tf2itemsinfo.sp in /addons/sourcemod/scripting/
* Put tf2itemsinfo.inc in /addons/sourcemod/scripting/includes/
Optional:
Updater plugin.
How to configure?
Is not possible.
Known issues?
1/ Memory leak error. Temporary fix - manually load plugin back. Fixed!
2/ High memory usage (22MiB). Fixed (?).
ToDo list:
* Add function that returns a KeyValues per item;
* Add function that returns item model;
* Add function that returns item styles.
CVars & CMDs:
PHP Code:
// variables
sm_tf2ii_version // version
sm_tf2ii_logs 1 // Enable/disable logs
sm_tf2ii_db "" // DB name (from databases.cfg)
sm_tf2ii_fix01 0 // Fix items with 'string' attributes
sm_tf2ii_updater 1 // enable/disable autoupdate
// commands
sm_tf2ii_refresh // rescan items_game.txt
sm_tf2ii_reload // same as above
sm_si <name> [pagenum// find items ids by name
sm_fi <name> [pagenum// same as above
sm_sic <classname> [pagenum// find items ids by classname
sm_fic <classname> [pagenum// same as above
sm_ii <id> [extra// print item info (extra value - anything except 0)
sm_pi [id] [extra// print item info (extra value - anything except 0)
sm_sa <id|name> [pagenum// find attributes ids by id or name
sm_fa <id|name> [pagenum// same as above
sm_sac <classname> [pagenum// find attributes ids by classname
sm_fac <classname> [pagenum// same as above 
Natives, functions, etc:
Basic data getting functions
Validating functions
Getting item data
Getting attribute data
Additional functions
Other stuff
Raw item/attribute data
Getting lists
Fowrards (events)
Stock functions


Changelogs:
Spoiler
Attached Files
File Type: zip tf2itemsinfo.zip (60.1 KB, 3862 views)
File Type: sp Get Plugin or Get Source (tf2itemsinfo.sp - 1256 views - 94.7 KB)
File Type: inc tf2itemsinfo.inc (25.4 KB, 1652 views)
File Type: txt tf2itemsinfo.txt (22.3 KB, 1705 views)
__________________

Last edited by Leonardo; 05-05-2019 at 01:51. Reason: removed dead links
Leonardo is offline