Thread
:
[CS:GO] Team Logo Manager 1.4.2 [2016.04.09]
View Single Post
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
02-14-2015 , 21:37 Re: [CS:GO] Random Team Icons 1.0
#
2
You should use PLATFORM_MAX_PATH rather than picking arbitrary sizes for path buffers.
filename[strlen(filename) - 3] = '\0'
is a slightly quicker hack than copying to a new buffer.
While it doesn't really matter, might want to cache the mp_teamlogo_* handles in OnPluginStart().
Not hardcoding the default logos would be better (SM's filesystem functions can read inside the VPK).
__________________
Spider - A Replacement Webcompiler
Accelerator - Crash Reporting That Doesn't Suck
VTable.js - In-browser Virtual Function Table Dumper
TF2Items
|
SteamTools
|
VPhysics
|
RocketBounce
|
Free2BeKicked
|
Connect
|
Webcon & Conplex
asherkin
View Public Profile
Send a private message to asherkin
Visit asherkin's homepage!
Find More Posts by asherkin