Hello all, I have defined a whole slew of new functions on the entity and the player metatables using the _R.Entity and _R.Player syntax in my custom addon, and they appear to be affecting other addons, such as the Wire Expression 2 editor and Player Appearance Customiser. Here is an example of some of those functions that have been defined as an example.
function _R.Entity:isRagdoll() if (self:GetClass() == "prop_ragdoll") then return true else return false end end function _R.Entity:isPhysProp() if (string.match(self:GetClass(), "^prop.*") && self:GetClass() != "prop_ragdoll") then return true else return false end end
It is causing Player Appearance Customiser to sometimes spew the following error:
[pac\menu\property_setup.lua:1137] attempt to index field ‘modelbones’ (a nil value)
It is also causing the Wire Expression 2 to somehow malfunction. http://imgur.com/a/jugUG
I would not normally get those messages in the red bar at the bottom of the editor.
These problems do not occur when I relocate my addon folder to outside of the main addons directory and re-test with SRCDS. Does any body have an inkling as to what might be going wrong?