ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
646 stars 74 forks source link

[TF2] Carts on Helltower can't destroy buildings + a way to fix it #6010

Open KimmyTF2 opened 5 months ago

KimmyTF2 commented 5 months ago

Due to how filter_activator_class was set up on Helltower, both carts are unable to destroy Engineer's buildings placed on their tracks. This allows for potential griefing, where an invisible Spy can get stuck on a building and be pushed inside the cart, then become visible again. Inside, he can't be damaged, resulting in a never-ending match. https://github.com/ValveSoftware/Source-1-Games/assets/127680179/e6ad1dfd-5be3-4342-a484-aafe1c5f403d

Whoever was working on Helltower instead of using standart filter_activator_class with filter classname 'player', decided to use filter_multi and added additional filter for tf_zombie.

multi skelly

Hovemer this doesn't work, as NPCs coliding with the moving cart are killed instantly when they touch it. https://github.com/ValveSoftware/Source-1-Games/assets/127680179/d5c33e8c-1528-4924-b5e8-758dd87846b2

To fix the problem change filter name of trigger_hurt on both carts from plr_filter_cart_multi to plr_filter_players, and remove notfuncioning plr_filter_cart_multi and plr_filter_zombie.

fixed

Now the carts correctly destroy Engineer's buildings.

KimmyTF2 commented 5 months ago

GitHub failed to load one video. Here's how it looks fixed. https://github.com/ValveSoftware/Source-1-Games/assets/127680179/0e4ea942-4178-44fc-8945-07f175c11655