Raised This Month: $51 Target: $400
 12% 

[L4D2]Map Particles?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
King_OXO
Senior Member
Join Date: Dec 2020
Location: Brazil
Old 12-12-2022 , 20:12   [L4D2]Map Particles?
Reply With Quote #1

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(sMapsizeof sMap);
    
ParticleManifestMap();
}

void ParticleManifestMap()
{
    
BuildPath(Path_SMsRequirePathsizeof(sRequirePath), "maps/%s_particle.txt"sMap);
    
    
//function KeyValues to add particle directories ("file"        "particles/particle.pcf")

    
Handle data CreateKeyValues("particles_manifest");

    
FileToKeyValues(datasRequirePath);

    
KvSetString(data"file"" "); //between " "is where the particle file directories will be uploaded

    
KvRewind(data);
    
KeyValuesToFile(datasRequirePath);
    
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.
__________________
My Noob Plugins

Discord:WhiteFire#1301
Steam:WhiteFire
Youtube

Last edited by King_OXO; 12-12-2022 at 20:15.
King_OXO is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode