Counter-Strike Not Planned make the heli secret on jb_clouds not do damage to terrorists

Status
Not open for further replies.

Rick Astley

Internet famous :)
Joined
Aug 1, 2021
Messages
285
Many people have been banned for griefing when they accidently kill terrorists with the heli secret when they are trying to kill cts with it so i suggest that you make it not do damage to Terrorists.
 
Upvote 0
Sadly that is a lot more difficult than simply enforcing the no team-kill rule. Considering how many things you can accidentally kill with in JB, the best option as the player is to reframe from buttons in general, unless told to by the warden, or make sure you're certain it won't cause any kind of disruption. And the best option for the community is to have a rule in place to deter these actions on a broad scale with minimal use of resources, if that makes any sense.
 
Last edited:
+1

Preventing the helicopter secret in jb_clouds from doing damage to T's would be a good implementation if possible.

I like to link this clip I took in 2018 whenever the jb_clouds helicopter secret is mentioned:
 
If this can be done in stripper +1, otherwise it's not worth recompiling the map

also this should happen for the legobels secret as well instead of just disabling it
 
If anyone would like to PM or contact Jacko with a stripper config we can consider looking into it :)
 
If anyone would like to PM or contact Jacko with a stripper config we can consider looking into it :)
Jacko 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:
  1. (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
  2. (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.
  3. (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.

EDIT: As a 4th method, you should be able to use the ignoredEntity KV on env_explosion, but this also requires anything else that uses a filter_activator_name to be changed to a filter_activator_context. I tried to do this in this stripper, however I couldn't get the ignoredEntity KV to work (terrorists still died), despite having the the values set correctly (as far as I could tell). Don't care to debug more than this for a gamemode I don't even play, so good luck debugging this method yourself if you want to try it.
 
Last edited:
Jacko 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:
  1. (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
  2. (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.
  3. (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.
Wow Ice, I seriously appreciate the detailed response to this thread. Thank you for looking into this.

MS MS Looks like there isn't really a way to go about this that won't also cause unintended issues. Griefing with the Heli secret in jb_clouds happens, but from my understanding it isn't a constant issue where updating it is a high priority. (although it would be nice)
 
Last edited:
Status
Not open for further replies.

Latest posts

Back
Top