Jacko
Since env_explosion entities cannot be filtered by default in CS:GO, it isn't a matter of simply replacing a
filtername KV on the entity. As such, I see 3 decent ways to go about it:
- (bad way): Globally change the terrorists' damage filter to ignore BLAST damage 1 tick before the explosion and remove the damage filter 1 tick after the explosion.
Downsides of this method: Other forms of BLAST damage (env_explosion damage, he grenades, etc.) are also stopped during these ticks as well
- (okay way): Find all terrorists in the area that the env_explosion for the heli would hurt, then apply damage filters like in method 1, but only to these specific terrorists.
Downsides of this method: Other forms of BLAST damage (env_explosion damage, he grenades, etc.) are also stopped during these ticks as well for players in this area. However, in default behavior these terrorists would have already died, so not too bad.
- (great way): Remove all damage from the env_explosion and deal the damage via VScript instead, checking to make sure the player is a counter-terrorist.
Downsides of this method: This is an absolute pain to implement, as you would need to simulate all the normal checks for explosions that CS:GO does, but in VScript (damage fall off, tracelines to make sure no obstacles block the explosion, etc.)
I went ahead and created the configs for method 2 if you want to merge them with your current configs (obviously test them first, since I don't play JB and thus wouldn't know if any JB plugins or current configs would mess with the fix). My fix uses a VScript file that is set to be installed as
/csgo/scripts/vscripts/ice/filtered_explosion.nut. If you want to put the script file somewhere else, make sure to edit the stripper cfg to reflect the new location.
Stripper cfg:
https://gist.github.com/Frozen-H2O/e657c15804078faba0e3f255d1639875
VScript file:
https://gist.github.com/Frozen-H2O/c99a2c0409fd471207aa7be1066b57c3
If there is anything wrong or undesired, the comments in both files should explain the mentality behind the change so that you can understand them to make edits to the fix on your own.