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

Binoculars cause an error #1625

Open
mexikoedi opened this issue Sep 22, 2024 · 3 comments
Open

Binoculars cause an error #1625

mexikoedi opened this issue Sep 22, 2024 · 3 comments
Milestone

Comments

@mexikoedi
Copy link
Contributor

mexikoedi commented Sep 22, 2024

Your version of TTT2 (mandatory)

  • TTT2 v0.14.0b Workshop version from Steam

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)

[TTT2 (Base) - v0.14.0b] gamemodes/terrortown/entities/weapons/weapon_ttt_binoculars.lua:126: attempt to call method 'SetFOV' (a nil value)
  1. SetZoomLevel - gamemodes/terrortown/entities/weapons/weapon_ttt_binoculars.lua:126
   2. unknown - gamemodes/terrortown/entities/weapons/weapon_ttt_binoculars.lua:174
@TimGoll
Copy link
Member

TimGoll commented Sep 22, 2024

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

@TimGoll TimGoll added the type/bug Something isn't working label Sep 22, 2024
@TimGoll TimGoll added this to the v0.14.1b milestone Sep 22, 2024
@NickCloudAT
Copy link
Contributor

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

@TimGoll
Copy link
Member

TimGoll commented Sep 22, 2024

It is maybe related to the one necro issue: TTT-2/ttt2-role_necro#34

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

@Histalek Histalek removed the type/bug Something isn't working label Oct 2, 2024
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

No branches or pull requests

4 participants