Burning the players, visible flame effects around the CS2 players

GroSSoMineTTofr

Пользователь
Messages
4
Reaction score
0
Hi,

I'm testing a very simple CounterStrikeSharp plugin.

After 10 seconds, I create an info_particle_system on every alive player.

The code runs correctly:

  • IgnitePlayer() is called
  • CParticleSystem is created
  • EffectName is set to particles/explosions_fx/molotov_groundfire.vpcf
  • DispatchSpawn() is called
But no fire is visible in game.

Do I need to precache the particle first? If yes, what is the correct way to precache and attach a particle to a player in CS2?

Thanks.
 
You need to make a precache of the required particle, and you can just create it every tick for the sake of experimentation, because some particles run out too quickly
 
Small update:

I also tested particles/explosions_fx/molotov_groundfire.vpcf and it is invisible as well.

A previous reply suggested:

private void OnPrecacheResources(ResourceManifest manifest)
{
manifest.AddResource("particles/explosions_fx/molotov_groundfire.vpcf");
}

However, in my project (CounterStrikeSharp.API 1.0.368), ResourceManifest is not recognized and the plugin does not compile.

Is there another way to precache particles with CSS 1.0.368?
 
Here's how to properly cache resources
C#:
public override void Load(bool hotReload)
{
    RegisterListener<Listeners.OnServerPrecacheResources>(manifest =>
    {
        manifest.AddResource("particles/explosions_fx/molotov_groundfire.vpcf");
    });
}

If you need a separate method, here's what you should do: first, you need to register a listener:
C#:
public override void Load(bool hotReload)
{
    RegisterListener<Listeners.OnServerPrecacheResources>(OnPrecacheResources);
}

private void OnPrecacheResources(ResourceManifest manifest)
{
    manifest.AddResource("particles/explosions_fx/molotov_groundfire.vpcf");
}

If the particle isn't visible after precache, it may be that the particle requires certain conditions to be displayed: position, entity, etc.
 
Last edited:
Hello everyone,

I'm currently developing a CounterStrikeSharp plugin for CS2 called ChaosBurn and I'm trying to add official fire particle effects to players.

I can successfully create an <span>info_particle_system</span> entity and the particle entity is valid (<span>ParticleValid = true</span>), but no visual effect appears in-game.

I'm looking for information about:

  1. Where can I find the official CS2 particle effects list (<span>.vpcf</span>)?
  2. Is there a way to browse all available particle files included with CS2?
  3. Are there any official fire-related particle effects (molotov fire, burning player, flames, inferno, etc.) that are known to work with <span>info_particle_system</span>?
  4. Do CS2 particle effects require additional precaching or resource manifest registration before they become visible?
  5. Is there a recommended method for attaching fire effects to a player pawn in CounterStrikeSharp?
Examples I've already tested:

<span>particles/explosions_fx/molotov_groundfire.vpcf<br>particles/burning_fx/env_fire_small.vpcf</span>
The particle entity is created successfully and reports as valid, but nothing is rendered in-game.

If anyone knows where to find the official particle database or has working examples of fire effects in CS2, I would really appreciate the help.

Thanks!
 
Hello everyone,

I'm currently developing a CounterStrikeSharp plugin for CS2 called ChaosBurn and I'm trying to add official fire particle effects to players.

I can successfully create an <span>info_particle_system</span> entity and the particle entity is valid (<span>ParticleValid = true</span>), but no visual effect appears in-game.

I'm looking for information about:

  1. Where can I find the official CS2 particle effects list (<span>.vpcf</span>)?
  2. Is there a way to browse all available particle files included with CS2?
  3. Are there any official fire-related particle effects (molotov fire, burning player, flames, inferno, etc.) that are known to work with <span>info_particle_system</span>?
  4. Do CS2 particle effects require additional precaching or resource manifest registration before they become visible?
  5. Is there a recommended method for attaching fire effects to a player pawn in CounterStrikeSharp?
Examples I've already tested:

<span>particles/explosions_fx/molotov_groundfire.vpcf<br>particles/burning_fx/env_fire_small.vpcf</span>
The particle entity is created successfully and reports as valid, but nothing is rendered in-game.

If anyone knows where to find the official particle database or has working examples of fire effects in CS2, I would really appreciate the help.

Thanks!
1. You can use Source2Viewer and look in "CS2PATH/game/csgo/pak01_dir.vpk" where you can find all CS2 assets. Dont really know about any lists, maybe look here
2. Same as first.
3. You can use different particles on different models, its not related.
4. If map not using choosed particle then yes, you need to precache it.
5. IDK, not using CCSharp

<span>particles/explosions_fx/molotov_groundfire.vpcf<br>particles/burning_fx/env_fire_small.vpcf</span>
The particle entity is created successfully and reports as valid, but nothing is rendered in-game.
Maybe this particle require any activation before spawn, thats why you not seeing it.
 
Back
Top