tf2classic / tf2classic-issue-tracker

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

env_explosions subtract around 30 units from their set explosion radius. #348

Open 111112oo opened 2 months ago

111112oo commented 2 months ago

With env_explosion you can have its radius auto calculated from the damage/magnitude value or manually override the radius. However, regardless which option you go with, TF2C somehow will shrink that radius by around 30 units. This bug does not exist on live TF2.

I have made a test map to showcase this behaviour: test_tf2cexplosionradius.txt (Rename to .vmf cause they are plaintext) On the left side of the map (ignore the right side) is a bunch of env_explosions with various settings. The first 2 explosions use the magnitude value to determine their range, 100 & 1 magnitude respectively. 100 magnitude seems to equal 128 range extending in all directions from the centre. The rest of the explosions have a radius override, with said radius marked on the floor. As stated, these markings are accurate in live TF2 but not in TF2C by around 30 units.

I do not know if this affects any other types of explosions. The other side of the test map is for tf_point_weapon_mimic where their radius override is completely ignored (for another bug report).

I run a deathrun server on TF2C and this bug causes obvious issues where you can survive explosion traps and obstacles when you are not supposed to. env_explosion is naturally very common in deathrun.