thebigsleepjoe / TTT-Bots-2

Player bots for Garry's Mod TTT
Creative Commons Attribution Share Alike 4.0 International
11 stars 4 forks source link

[Bug]: Rendering issues when ttt_bot_playermodel is used. #63

Open ZeadenBeake opened 1 month ago

ZeadenBeake commented 1 month ago

Server hosting type

ALL

TTT Type

TTT2

Version of Bots

1.3

Describe the bug

Various weapons are seen around the screen, moving as the player moves or looks around, flashing rhythmically. If the player is Holstered, the playermodel's c_hands can be seen flashing in time at the bottom of the screen as well.

This issue only occurs while ttt_bot_playermodel is set to anything but an empty string, but occurs on all maps I've tested and occurs regardless of the playermodel of either the bots or the player themselves.

This has also been observed on a dedicated server.

Stack trace/error

No response

Reproducing the bug

  1. Set ttt_bot_playermodel to any non-empty string that points to a playermodel.
  2. Observe the above behavior.

Expected behavior

There shouldn't be any visual artifacts.

Screenshots

https://ibb.co/tHTTBkb https://ibb.co/R297Stx

Additional context

No response

GitHub Username Credit (NOT REQUIRED)

ZeadenBeake

thebigsleepjoe commented 1 month ago

Please specify a specific playermodel string you are using for this cvar, just in case I cannot reproduce it later

On Thu, Oct 10, 2024 at 8:02 PM, ZeadenBeake @.***(mailto:On Thu, Oct 10, 2024 at 8:02 PM, ZeadenBeake < wrote:

Server hosting type

ALL

TTT Type

TTT2

Version of Bots

1.3

Describe the bug

Various weapons are seen around the screen, moving as the player moves or looks around, flashing rhythmically. If the player is Holstered, the playermodel's c_hands can be seen flashing in time at the bottom of the screen as well.

This issue only occurs while ttt_bot_playermodel is set to anything but an empty string, but occurs on all maps I've tested and occurs regardless of the playermodel of either the bots or the player themselves.

This has also been observed on a dedicated server.

Stack trace/error

No response

Reproducing the bug

  • Set ttt_bot_playermodel to any non-empty string that points to a playermodel.
  • Observe the above behavior.

Expected behavior

There shouldn't be any visual artifacts.

Screenshots

https://ibb.co/tHTTBkb https://ibb.co/R297Stx

Additional context

No response

GitHub Username Credit (NOT REQUIRED)

ZeadenBeake

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

ZeadenBeake commented 1 month ago

model/player/kleiner.mdl produces the issue.

thebigsleepjoe commented 1 month ago

In your reply, you typed "model" instead of "models" -- perhaps that is the issue? I see this when using the model/player/kleiner.mdl

image


I'm able to use models/player/kleiner.mdl without any issue on v1.3.1:

image

I realize "works on my machine" isn't particularly helpful, but it would be a big help if you could share a collection or any missing steps.

ZeadenBeake commented 1 month ago

Aw yep, just a typo. The models of the others are fine, it's just the issues described above. My bad!

Here is the full collection. I've tried disabling a few suspect addons (Spectator deathmatch, EPMS), but the problem persisted.

https://steamcommunity.com/sharedfiles/filedetails/?id=3346142023

ZeadenBeake commented 1 month ago

So I fiddled around a bit with it and found 3 things:

  1. The floating weapons are the weapons the bots are holding (I.E. if I see an SSG floating around, a bot has an SSG, etc).
  2. This is not an addon conflict issue. This occurs with just TTT2, TTT Bots 2.0, and the TTT2 Bots Maps.
  3. This does not, however, occur in TTT1 with just TTT Bots 2.0 and TTT2 Bots Maps.