SuperiorServers / dash

Collection of libraries, utilities, and core Garry's Mod changes intended to improve development of addons and gamemodes
Other
70 stars 20 forks source link

Added clientside entities created by ClientsideModel to valid entity metatables #12

Closed Mista-Tea closed 4 years ago

Mista-Tea commented 4 years ago

While running down an issue when creating clientside entities via StarfallEx, I discovered that Dash's overriding of isentity/IsEntity was causing the issue.

Clientside entities (C_BaseFlex, CSEnt) are valid entities on a vanilla server as tested by

lua_run_cl local ent = ClientsideModel('error.mdl') print(ent, isentity(ent))

But with Dash they are considered invalid because their metatable wasn't included in entmts.