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

[TF2] Fix broken NoWeaponDrops (shavit-misc) #1160

Merged
merged 2 commits into from
Jul 25, 2022

Conversation

jedso
Copy link
Contributor

@jedso jedso commented Jul 24, 2022

Fixes #1159 by using the built-in TF2 ConVar tf_dropped_weapon_lifetime and killing all tf_dropped_weapon entities when shavit_misc_noweapondrops is changed to 1.

The TF2_KillDroppedWeapons function is necessary because existing dropped weapons continue to live out their lifetime even after tf_dropped_weapon_lifetime is changed to 0.

@rtldg
Copy link
Collaborator

rtldg commented Jul 25, 2022

Thank you for the pr :)

@rtldg rtldg merged commit 578636d into shavitush:master Jul 25, 2022
@jedso jedso deleted the tf2-weapondrop-fix branch July 25, 2022 17:54
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.

[TF2] shavit-misc's NoWeaponDrops is broken
2 participants