About EngFunc_PrecacheSound
EngFunc_PrecacheSound
This function is very useful for me because of the cvars I have for the sounds. Well do I still need to use this in plugin_precache then? http://forums.alliedmods.net/showpos...1&postcount=15 |
Re: About EngFunc_PrecacheSound
Quote:
|
Re: About EngFunc_PrecacheSound
Still wonder how this works. :)
Cause the cvars are in plugin_init. Precache is in plugin_precache. And that will be called first. |
Re: About EngFunc_PrecacheSound
1. plugin_native()
2. plugin_precache() 3. plugin_init() 4. plugin_cfg() |
Re: About EngFunc_PrecacheSound
So how does it exactly work then with EngFunc_PrecacheSound?
|
Re: About EngFunc_PrecacheSound
Whatever EngFunc_PrecacheSound or precache_sound, both call the engine call pfnPrecacheSound.
Difference is precache_sound has to be used in plugin_precache() forward. Such natives are forced to be used into this forward. Forward called at the very spawn of the server. plugin_init/cfg is called when server is activated, much more later after the precache, but it doesn't mean you can't precache there. At this time, you sill can precache things, server just being activated. Since, EngFunc_PrecacheSound is not forced to be used in plugin_precache(), that's why you can use it in either plugin_init or plugin_cfg. |
Re: About EngFunc_PrecacheSound
Wow, thanks for this. :up:
|
Re: About EngFunc_PrecacheSound
Quote:
|
Re: About EngFunc_PrecacheSound
EngFunc_* constants are wrappers to engine calls. There is no real control/check on them before being executing.
|
Re: About EngFunc_PrecacheSound
Can I make something like this?
PHP Code:
|
| All times are GMT -4. The time now is 20:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.