is it possible to create particle_manifest with plugin?
I was thinking of creating a plugin which creates a map_particle.txt text file with KeyValues, to create I developed this:
PHP Code:
char sRequirePath[PLATFORM_MAX_PATH];
char sMap[64];
public void OnMapstart()
{
GetCurrentMap(sMap, sizeof sMap);
ParticleManifestMap();
}
void ParticleManifestMap()
{
BuildPath(Path_SM, sRequirePath, sizeof(sRequirePath), "maps/%s_particle.txt", sMap);
//function KeyValues to add particle directories ("file" "particles/particle.pcf")
Handle data = CreateKeyValues("particles_manifest");
FileToKeyValues(data, sRequirePath);
KvSetString(data, "file", " "); //between " "is where the particle file directories will be uploaded
KvRewind(data);
KeyValuesToFile(data, sRequirePath);
CloseHandle(data);
}
if anyone can help me with this i would be very grateful. We might be able to help others with custom particle difficulties with this.
__________________