Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with the Prop Menu
#5
Did someone say overly technical explanation?

This doesn't have anything to do with the prop menu, you're just crouched. You can always tell if you're crouched  when you look at the horizon and the crosshair points to your body instead of above your head.
Code:
if pl:Team() == TEAM_PROPS && pl:IsOnGround() && !pl:Crouching() && table.HasValue(USABLE_PROP_ENTITIES, ent:GetClass()) && ent:GetModel() then
Here's the code PH uses to check if the player can turn into a prop. The player has to:
  • Be on team props
  • Be contacting the floor
  • Not be in a crouched state
  • The prop must listed as usable (Not in the illegal props list)
  • The prop must have a model
The reason you're actually crouched in that spot is because the map has an invincible ceiling to prevent players from going out of bounds, and you can't actually be in a standing state while in that tree. Looking at the map's collision shapes reveals this.

Additionally, the prop menu we use checks if the user can move before transforming you. It would be nice that it didn't count as a "use" when it fails to change you, though. Actually, why does it even count uses? Being able to change into dumb shit when people aren't looking is fun!


Messages In This Thread
Problem with the Prop Menu - by ChokeMeGrandpa - 01-17-2020, 08:25 PM
RE: Problem with the Prop Menu - by TheUltraFish - 01-17-2020, 09:19 PM
RE: Problem with the Prop Menu - by RussEfarmer - 01-17-2020, 11:58 PM
RE: Problem with the Prop Menu - by leftjupiter18 - 01-18-2020, 02:47 AM
RE: Problem with the Prop Menu - by RussEfarmer - 01-18-2020, 03:09 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)

About Us
    This is Dinkleberg's GMod, a gaming community based in Garry's Mod. We have a Trouble in Terrorist Town, Prop Hunt, Murder, and Deathrun Server. Come check them out sometime.