Clientside issue
PhysgunPickup is not reliable clientside:
-
lua_run_cl hook.Add(“PhysgunPickup”, “SeeIfItWorks”, print)
-
Bind a key to spawning a prop (ex. bind b “gm_spawn models/props_combine/breendesk.mdl”)
-
Hold left mouse while holding physgun at the floor
-
Press the button to spawn a prop
-
PhysgunPickup won’t register you picking up the prop (as the prop is not valid yet on the client?)
Nothing prints in consoleIf you release mouse button and then pick it up again it DOES output the LocalPlayer and the entity in the console.
I need another completely clientside way to find out if I’m holding a prop. One that IS reliable.
I couldn’t find any usermessages that are sent from the server to client when a prop is picked up.
I couldn’t find any special attributes to the entity when it’s being picked up.
So basically I need a way to find out whether the LocalPlayer is holding a prop with the physgun.