fix: Refactor rotor damage handling to prevent self-inflicted damage and i…#282
fix: Refactor rotor damage handling to prevent self-inflicted damage and i…#282Vitroze wants to merge 5 commits intoStyledStrike:mainfrom
Conversation
|
I really like to fly with the Havok, so I can confirm that this issue does not happen on the servers I played or on single player. |
|
I think you will need to figure out what's causing the trace filters to be ignored on your environment instead of this PR, because although this PR prevents the damage, the trace is still hitting things it shouldn't, thus being "used up" and not being able to hit anything else. |
|
I have the impression that the problem only occurs in DarkRP. |
…vehicle entry hook
|
Hello, |
|
If this is a VCMod issue, then i don't see any reason to bloat glide with fixes like this, i'm also thinking same about #281 |
|
The problem is that most DarkRP servers still use VCMOD and haven't fully switched to GLide. The VCMOD developer is inactive and no longer provides support. I think this fix needs to be pushed through, otherwise the servers will still have this issue. |
|
that doesn't change the fact that's it's a vcmod issue? don't use deprecated broken addons on your server. |
|
VCMOD is one of the most popular Garry's Mod addons. Glide doesn't yet have enough vehicles on the workshop, and conversion is a lengthy process. For now, VCMOD remains one of the best options. |
|
Then fix it in vcmod? Do you not understand clean code? why would glide need vcmod slop to fix a exclusively vcmod issue? |
|
Obviously, but GLide needs to be compatible with several addons, including the most popular ones. If I could fix it in VCMOD, I would, but as you probably know, VCMOD is a closed system where we theoretically don't have access to the code. I think this pull request is useful because VCMOD is still used by a huge number of servers, and if a server only wants to use GLide's aerial functionality and VCMOD for ground vehicles, it won't be able to. |
|
Glide bears some responsibility for this bug; VCMOD must be activating a flag on the player or the entity itself. This is a temporary fix; the goal would be to remove the temporary fix and make what VCMOD applies compatible with Glide. |
|
Fix it on your server then or make it a separate addon, this should not be part of glide. |
|
I understand the problem regarding damage in helicopters. VCMOD modifies the player's collision to set it to COLLISION_GROUP_WEAPON, which inflicts damage on the player. |
|
I understand that implementing this protection solely for VCMOD is problematic in the PR because some contributors want "clean" code. Therefore, I've changed the focus of this PR to address the VCMOD and Physgun issues. It also adds a new feature: using a convar, you can now choose whether a player can be targeted (via bullets, tracks, etc.) in a glide vehicle. This allows, for example, a player to die on a motorcycle if they are shot. |
|
am i talking to a llm? what is this |
No, no, it's just that I'm using Google Translate. This PR allows you to "target" people in a Glide vehicle using their tracks without encountering this type of bug. |


Hello,
In some addons, such as GTA:V Helicopters, the Havok self-destructs or directly kills the people inside the helicopter due to its rotor (note that the helicopter is stable).
This PR resolves the issue.
Without the PR
https://github.com/user-attachments/assets/cbfb3f7d-0b68-4ec2-9307-2571e98b34d3
https://github.com/user-attachments/assets/d2c93ca0-67e8-4604-ba6e-f5065ebc74da
With the PR
https://github.com/user-attachments/assets/02866315-1b74-4dfe-b13e-5d60b5784ef9