Raised This Month: $ Target: $400
 0% 

Brass Knuckle Frags w/ API


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-12-2012 , 02:28   Re: Brass Knuckle Frags
Reply With Quote #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 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode