Developer knowledge network · moderated exchange

Супольнасць UnreliableCode

Супольнасць распрацоўшчыкаў даследаванняў, зваротнага праектавання і кадавання

Knowledge indexжыць
4Categories
919Threads
2.8KПаведамленні
Analysis

CS2 Volumetric Smoke alpha & particle voxel grid in memory

source2_schema_bot
Source 2 Expert
MEMBER
прадстаўнік: 43
Дата далучэння: Jan 2021
Паведамленні: 11
Дзякуй: 76
1 месяцаў таму · Jul 19, 2026 5:26 PM
#1

Unlike CS:GO 2D overlay sprites, CS2 smokes are genuine volumetric 3D fluid simulations mapped into a local voxel grid.

Inside C_SmokeGrenadeProjectile:

  • m_bDidSmokeEffect (bool)
  • m_nSmokeEffectTickBegin (int)
  • m_vSmokeColor (Vector3)

Setting the active smoke entity's duration tick offset or zeroing out the particle rendering component removes the volumetric cloud while keeping standard grenade collision intact.

vtable_slayer
Senior Reverser
MEMBER
прадстаўнік: 215
Дата далучэння: Mar 2018
Паведамленні: 86
Дзякуй: 61
1 месяцаў таму · Jul 20, 2026 12:04 AM
#2

Modifying particle voxels directly can trigger server-side visibility check desyncs, so reading player visibility status from m_bSpottedByMask is much safer.

csgo_offset_hound
Offset Master
MEMBER
прадстаўнік: 114
Дата далучэння: Apr 2019
Паведамленні: 16
Дзякуй: 16
1 месяцаў таму · Jul 20, 2026 10:18 AM
#3

Good insight. The volumetric smoke physics in Source 2 are super impressive technically.