garrysmod-issues icon indicating copy to clipboard operation
garrysmod-issues copied to clipboard

`SetFlexWeight` breaks blinking on players?

Open Zvbhrf opened this issue 1 year ago • 5 comments
trafficstars

Details

When I use SetFlexWeight on player it stops blinking

] version 
Protocol version 24
Exe version 2023.06.28 (garrysmod)
Exe build: 18:07:32 Feb 19 2024 (9235) (4000)
GMod version 2024.02.19, branch: x86-64, multicore: 1
Windows 64bit

https://github.com/Facepunch/garrysmod-issues/assets/79792873/b1be3204-155f-455e-b864-4319c370eaac

Steps to reproduce

  1. Select a valid player model
  2. Place camera in front of your face and enable it
  3. Your player model is blinking
  4. Run lua_run local me = Entity(1) for i = 0, me:GetFlexNum() do me:SetFlexWeight(i, 0) end
  5. Now it's not

Zvbhrf avatar Feb 24 '24 17:02 Zvbhrf

The flex manipulation functions override the default flex processing for players, so it makes perfect sense.

robotboy655 avatar Feb 24 '24 19:02 robotboy655

The flex manipulation functions override the default flex processing for players, so it makes perfect sense.

Why not add some function to bring back the usual flex processing? Like Entity:RestoreFlex() or check if all flexes are on default values and restore the default flex processing. That would be cool, because, to be honest, it's a shame that a pretty cool feature (blinking) making the characters "alive" just disappears. A lot of people complained to me on my servers that blinking did not work and this was due to some stools using this function.

Zvbhrf avatar Feb 24 '24 19:02 Zvbhrf

Its not exactly complicated or intensive to implement this yourself, although having a builtin for it would be nice

garryspins avatar Feb 25 '24 03:02 garryspins

This is normal for Garry's mod.

MSchedCOM avatar Feb 29 '24 23:02 MSchedCOM

@robotboy655 soo.... any news? It would be nice to have a RestoreFlex function or smth like that

Zvbhrf avatar Mar 02 '24 18:03 Zvbhrf