TTT-2 / TTT2

Trouble in Terrorist Town 2 for Garry's Mod (gmod)
https://steamcommunity.com/sharedfiles/filedetails/?id=1357204556
178 stars 74 forks source link

Binoculars cause an error #1625

Open mexikoedi opened 3 weeks ago

mexikoedi commented 3 weeks ago

Your version of TTT2 (mandatory)

Describe the bug (mandatory)

If you try using the binoculars they create an error.

To reproduce

Steps to reproduce the behaviour:

  1. Go into a round
  2. Equip binoculars
  3. Use them (zoom, ...)
  4. See error

Expected behaviour

This error shouldn't happen.

Context (please provide as much as you can)

TimGoll commented 3 weeks ago

That's such a strange error, why is this function non-existent? it is a base GMod function?

https://github.com/TTT-2/TTT2/blob/master/gamemodes/terrortown/entities/weapons/weapon_ttt_binoculars.lua#L117-L127

NickCloudAT commented 3 weeks ago

I can not reproduce this on my server right now. Zoom with Binoculars works just fine

TimGoll commented 3 weeks ago

It is maybe related to the one necro issue: https://github.com/TTT-2/ttt2-role_necro/issues/34

Because that also had a broken player entity. I wonder how that happens