Thread
:
Brass Knuckle Frags w/ API
View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
06-12-2012 , 02:28 Re: Brass Knuckle Frags
#
11
Please alloc model strings and set models using pev_viewmodel and pev_weaponmodel with cached allocated values, this way you don't alloc and alloc again strings using memory for nothing ( allocated strings are kept in memory after map change !! )
g_iAllocDummy = engfunc(EngFunc_AllocString, "model/dummy.mdl")
set_pev(id, pev_viewmodel, g_iAllocDummy)
or :
set_pev_string(id, pev_viewmodel2, g_iAllocDummy) // that one is not required in that case because pev_viewmodel and pev_viewmodel2 are particular
instead of
set_pev(id, pev_viewmodel, "model/dummy.mdl")
__________________
- tired and retired -
- my plugins -
Last edited by ConnorMcLeod; 06-12-2012 at
02:31
.
ConnorMcLeod
View Public Profile
Send a private message to ConnorMcLeod
Find More Posts by ConnorMcLeod