orpheu precache counter
Can anyone write a small orpheu plugin that prints the exact amount of precached models/sounds/generics on server startup to the console? If it's possible, please make it the way I'm saying instead of counting the models in FM_PrecacheModel and FM_PrecacheSound because as far as I remember they're not very accurate.
I think this would have plenty of use and would be worth releasing as a standalone plugin. Thanks in advance. |
Re: orpheu precache counter
I think ConnorMcLeod made one, search in his threads / posts.
|
Re: orpheu precache counter
Quote:
|
Re: orpheu precache counter
Quote:
|
Re: orpheu precache counter
1 Attachment(s)
Something like this?
Code:
|
Re: orpheu precache counter
It told me 615 models. The problem is most likely that a file can be precached from more places (map, plugins) more than once and the function will always catch that. I tried changing PrecacheModel to PrecacheModel( const szModel[ ] ) and check if the model has already been precached but it now doesn't work at all, so I'm unsure whether the function parameter is supported.
Also, does this count in brush models? These are map entities with models such as *78, etc. (func_door, func_button, ...) |
Re: orpheu precache counter
Quote:
|
Re: orpheu precache counter
Quote:
Brush entities are entities which have a model generated in VHE, for example rotating doors. These models have an asterisk in front of them (as I noted). Quote:
Quote:
|
Re: orpheu precache counter
Hornet, this makes my server crash. No errors in logs. When i disable the plugin server runs fine. Orpheu also seems to be loading fine and finds the functions correctly.
|
Re: orpheu precache counter
Only for testing purpose. The info is not correct. Instead of that, there are two commands implemented in ReHLDS https://github.com/dreamstalker/rehlds#commands
Code:
|
All times are GMT -4. The time now is 04:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.