Skip to content

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

Merged
rtldg merged 2 commits intoshavitush:masterfrom
jedso:tf2-weapondrop-fix
Jul 25, 2022
Merged

[TF2] Fix broken NoWeaponDrops (shavit-misc)#1160
rtldg merged 2 commits intoshavitush:masterfrom
jedso:tf2-weapondrop-fix

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