12-12-2019, 10:28 PM
(This post was last modified: 12-12-2019, 10:29 PM by RussEfarmer.)
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:
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.
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)
endHowever, 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.
![[Image: horizontal-design-element-3.png]](https://fg-a.com/lines/horizontal-design-element-3.png)
Waiting for a good forum thread these days
![[Image: Tk4pi.gif]](https://i.imgur.com/Tk4pi.gif)
find out more at https://russefarmer.com/
Garry's Mod Performance Tuning Guide
