Skip to content

Fixed guns not applying themselves as their damage inflictor for FireBullets #1819

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

Merged
merged 1 commit into from
Jun 19, 2025

Conversation

TW1STaL1CKY
Copy link
Contributor

I've noticed that guns in TTT2 don't set their Inflictor as themselves for FireBullets (which is a new-ish addition), so I've fixed that.

I'd like to note it seems util.WeaponFromDamage was partially used as a workaround for FireBullets not setting an Inflictor, do people think it's still needed?

@wgetJane
Copy link
Contributor

wgetJane commented Jun 19, 2025

I'd like to note it seems util.WeaponFromDamage was partially used as a workaround for FireBullets not setting an Inflictor, do people think it's still needed?

removing this function is definitely not a good idea, many existing addons still use it

Copy link
Member

@saibotk saibotk left a comment

Choose a reason for hiding this comment

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

Nice addition!

And yes we should keep the util function for now. Thx!

@saibotk saibotk merged commit 4475d44 into TTT-2:master Jun 19, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants