my server happens to precache many files, and I want to cut back the number of precaches per connect:
you have to precache a model before you use it but is there any way to do something like this:
1st Scenario
Code:
on error resume next
entity_set_model(victim, "models/predator.mdl")
next
or can I do something like this
I hear file_exists only checks the server is this true?
2nd Scenario
Code:
if file_exists("models/predator.mdl")
{
entity_set_model(victim, "models/predator.mdl")
}
3rd Scenario
Code:
is_file_precached("models/predator.mdl")
entity_set_model(victim, "models/predator.mdl")
^^ I doubt there is even a function for scenario 3, but that is a great function to have, I think we should get that function if it doesnt exist.
__________________