Raised This Month: $85 Target: $400
 21% 

Some pev_body information


Post New Thread Reply   
 
Thread Tools Display Modes
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 05-03-2013 , 06:36   Re: Some pev_body information
Reply With Quote #11

Does this mean we can precache less files for more models?
__________________
ehha is offline
Backstabnoob
AMX Mod X Plugin Approver
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-03-2013 , 14:08   Re: Some pev_body information
Reply With Quote #12

Yeah.

Also, the total size is greatly reduced (depending on the size of models, you can get to 5 megabytes for 10 models, from the 23 you would get if the models weren't merged).
__________________
Currently busy working on a very large scale anime database project.

Last edited by Backstabnoob; 05-03-2013 at 14:11.
Backstabnoob is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Old 05-10-2014 , 14:01   Re: Some pev_body information
Reply With Quote #13

Quote:
Originally Posted by Backstabnoob View Post
Yeah.

Also, the total size is greatly reduced (depending on the size of models, you can get to 5 megabytes for 10 models, from the 23 you would get if the models weren't merged).
I've tried this method on my server last time, 1 model has about 19 submodels.

1 model with 19 submodels = size is 9mb.

Hmm question is.. will this method make server/client lag? because if 32 players connected & use the 9mb player model, so 9x32=288mb totals.

If using normal method 1 default model = size is 1.3mb.

1.3x19=24.7mb total download.
if 32 players connected & use 1.3mb player model, 1.3x32=41.6mb totals.

So which method is the best? I don't feel any lag on client because my pc can handle this game very well. But not sure about PC that has low performance.
__________________
Hi, 7 years ago i run nosteam servers and i support nosteam community. So please ban me. Thank you legitmodders.

Last edited by yokomo; 05-10-2014 at 14:03.
yokomo is offline
Backstabnoob
AMX Mod X Plugin Approver
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-11-2014 , 16:17   Re: Some pev_body information
Reply With Quote #14

If you have 19 models on the server they are all precached to the memory on load, that's 1.3*19 which is as you said 24.7MB, but if you have only one 9MB model then only 9MB is precached to the memory so you actually save 15.7MB of memory.

The model is precached only once, so it's 1x9MB vs 19x1.3MB.

Not that it matters in this day and age though, I wouldn't concern myself too much about it.
__________________
Currently busy working on a very large scale anime database project.

Last edited by Backstabnoob; 05-11-2014 at 16:18.
Backstabnoob is offline
r0ck
Senior Member
Join Date: Jun 2011
Location: India
Old 05-16-2014 , 12:43   Re: Some pev_body information
Reply With Quote #15

I have this in a jailbreak model.. but the problem is when somebody picks up bomb or throws the model changes... i tried hooking event drop bomb and pickup and change reset their model to original ( before bomb ) and sometimes it works and sometimes it doesn't ..
Any other way to hook it properly or just block body change due to bomb ?
Thanks
__________________
Preparing to release my plugins..
r0ck is offline
Backstabnoob
AMX Mod X Plugin Approver
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-16-2014 , 12:53   Re: Some pev_body information
Reply With Quote #16

If you have this in jailbreak, why not just remove the bomb completely? It won't get spawned if you change the map objectives.
Backstabnoob is offline
r0ck
Senior Member
Join Date: Jun 2011
Location: India
Old 05-16-2014 , 12:55   Re: Some pev_body information
Reply With Quote #17

they are bomb drop games in some maps ....
__________________
Preparing to release my plugins..

Last edited by r0ck; 05-16-2014 at 15:14.
r0ck is offline
Backstabnoob
AMX Mod X Plugin Approver
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-16-2014 , 13:15   Re: Some pev_body information
Reply With Quote #18

You would have to include the bomb model in a new body group in the model and rewrite pev_body to that value.
Backstabnoob is offline
r0ck
Senior Member
Join Date: Jun 2011
Location: India
Old 05-16-2014 , 15:16   Re: Some pev_body information
Reply With Quote #19

but its the same thing no ? dropping bomb will result in body change to a particular body and not the one before dropping bomb .... every model after dropping bomb will result in same body ( one with the number matching the original cs models)
__________________
Preparing to release my plugins..
r0ck is offline
Backstabnoob
AMX Mod X Plugin Approver
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-16-2014 , 15:20   Re: Some pev_body information
Reply With Quote #20

Then show your code if it sometimes doesn't work. You might just need to delay it by 0.1 seconds or something.
Backstabnoob is offline
Reply


Thread Tools
Display Modes

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 09:24.


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