Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fixed] Bombs couldn't damage same team wires (TDM) #2260

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mugg91
Copy link
Contributor

@mugg91 mugg91 commented Dec 21, 2024

Status

  • READY: this PR is (to the best of your knowledge) ready to be incorporated into the game.

Description

Fixes #2106

Components are given the tag "is component" and TDM gamemode checks for the tag in onBlobCreated() to change components' team to neutral team (255).

I made it so the sprite is reloaded in the previous team color, so we could use any team color we want. Some existing TDM maps use blue wires and I didn't want to change that to grey.

By setting team to 255, wires and components are now always damaged by bombs.
Previously, bombs wouldn't hurt wires of the same team.

I think this is much better than having to edit any map png files directly.

Tested in offline, works.

Rules/TDM/Scripts/TDM.as Outdated Show resolved Hide resolved
Copy link
Member

@asumagic asumagic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This approach doesn't work for changing the component color online, whether on joining the server or loading a new map. I don't know if this specific approach can work due to that.

@Vam-Jam Vam-Jam added the TDM PR that is focused towards TDM label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TDM PR that is focused towards TDM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bombs aren't damaging same team wires
3 participants