Re: Some pev_body information
Does this mean we can precache less files for more models?
|
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). |
Re: Some pev_body information
Quote:
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. |
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. |
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 |
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.
|
Re: Some pev_body information
they are bomb drop games in some maps ....
|
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.
|
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)
|
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.