Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Addition to the prop menu
#3
(12-12-2019, 10:28 PM)RussEfarmer Wrote: While it would be sick, it's not as easy as just adding another prop to the menu, since with that, you can easily utilize the code already built into the gamemode for changing into a prop:
Code:
if pl:Team() == TEAM_PROPS && pl:IsOnGround() && !pl:Crouching() && table.HasValue(USABLE_PROP_ENTITIES, ent:GetClass()) && ent:GetModel() then
        if table.HasValue(BANNED_PROP_MODELS, ent:GetModel()) then
            pl:ChatPrint("That prop has been banned by the server.")
        elseif ent:GetPhysicsObject():IsValid() && pl.ph_prop:GetModel() != ent:GetModel() then
            (do a bunch of shit)
       end

However, there's no way to reverse that, as in there's no built in function you can just call to turn you back into a tpose, and you would have to write your own. This isn't impossible of course, but lua kinda sucks and software development takes time and effort.

The closest alternative I can come up with is to add the corpse model that's on awesomebuilding, albeit that is significantly lamer.

There's a new prop menu on the server where it just has a list of props, not like before where it was based on what map and where you were. It might be possible with now to just add the kleiner prop to it if it's just a list of models.


Messages In This Thread
Addition to the prop menu - by ChokeMeGrandpa - 12-12-2019, 10:03 PM
RE: Addition to the prop menu - by RussEfarmer - 12-12-2019, 10:28 PM
RE: Addition to the prop menu - by Yeezy Jeezy - 12-13-2019, 12:00 AM
RE: Addition to the prop menu - by RussEfarmer - 12-13-2019, 12:11 AM
RE: Addition to the prop menu - by Meeemo - 12-13-2019, 01:36 AM
RE: Addition to the prop menu - by Smurfmin - 12-13-2019, 07:32 PM

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.