AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   Some pev_body information (https://forums.alliedmods.net/showthread.php?t=210789)

ehha 05-03-2013 05:36

Re: Some pev_body information
 
Does this mean we can precache less files for more models?

Backstabnoob 05-03-2013 13:08

Re: Some pev_body information
 
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).

yokomo 05-10-2014 13:01

Re: Some pev_body information
 
Quote:

Originally Posted by Backstabnoob (Post 1945092)
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.

Backstabnoob 05-11-2014 15:17

Re: Some pev_body information
 
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.

r0ck 05-16-2014 11:43

Re: Some pev_body information
 
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

Backstabnoob 05-16-2014 11:53

Re: Some pev_body information
 
If you have this in jailbreak, why not just remove the bomb completely? It won't get spawned if you change the map objectives.

r0ck 05-16-2014 11:55

Re: Some pev_body information
 
they are bomb drop games in some maps ....

Backstabnoob 05-16-2014 12:15

Re: Some pev_body information
 
You would have to include the bomb model in a new body group in the model and rewrite pev_body to that value.

r0ck 05-16-2014 14:16

Re: Some pev_body information
 
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)

Backstabnoob 05-16-2014 14:20

Re: Some pev_body information
 
Then show your code if it sometimes doesn't work. You might just need to delay it by 0.1 seconds or something.


All times are GMT -4. The time now is 19:45.

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