View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-27-2009 , 16:15   Re: Spawn with Armor
Reply With Quote #26

Quote:
Originally Posted by joaquimandrade View Post
There is nothing wrong. You have to add the time taken by the functions called inside fm_set_user_armor. So you have to profile just one of "fm_set..." or "fm_cs_set..." and add the time taken by set_pev and set_pdata_int

Based in your profile results it would be approximately:

fm_set_user_armor + set_pev/2 + set_pdata_int/2 = 0.005802 + 0.003963/2 + 0.003909/2 = 0.005801 + 0.001982 + 0.001954 = 0.009737
I guess fm_set_user_armor already include set_pev + set_pdata.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline