tf2classic / tf2classic-issue-tracker

For reporting bugs in Team Fortress 2 Classic.
10 stars 0 forks source link

AutoMaterialize keyvalue doesn't work on health and ammo packs in TF2C. Works fine in live TF2. #361

Open 111112oo opened 1 month ago

111112oo commented 1 month ago

AutoMaterialize is a keyvalue on item_healthkit_full, item_ammopack_full and so on. By default this keyvalue is on, but when turned off, the item it's set on will not respawn automatically & it will make the Enable input respawn the item. At least it should, because in TF2C this functionality is broken and it always acts as if it is on. This causes problems cause it breaks the way people make 1-time use & instantly respawning pickups in live TF2. I have used this in a map I worked on I want to run on my server. TF2C does add new parameters and i/o to these entities which allows you to make the aforementioned setups, but it's another case of having to manually fix up every instance of this with stripper on the server I run instead of working to begin with.

Here is a test map for this, rename to vmf format: test_tf2cpickups.txt You will also need to compile this with VVIS and VRAD off due to a different bug with health & ammo packs. In the centre of the map are 3 buttons, green fires Enable to all the pickups, red fires Disable to all the pickups, and blue fires the TF2C only RespawnNow to all the pickups. Also in the centre are marked trigger_hurts to take damage with. Side A has the following setups from left to right: -Column 1, AutoMaterialize on, no outputs. -Column 2, AutoMaterialize off, no outputs. -Column 3, AutoMaterialize on, !self Enable output. -Column 4, AutoMaterialize off, !self Enable output. -Column 5, AutoMaterialize off, no outputs, starts disabled. Side B is where I tested TF2C workarounds to the issue.