Quote:
Originally Posted by pheadxdll
I would instead recommend looking at the m_hMyWearables netprop
|
(ignoring the other part as it should work)
m_hMyWearables is a CUtlVector datatable, which SourceMod can't (yet?) read.
There's a reason for this: CUtlVector datatables are totally fake. Their datatable is just a clever wrapper that contains information about the CUtlVector, such as the pointer to it, the number of elements in it, and the size of each element. The base pointer needs to be obtained via a method call from there, which all the numbered entries are offset from.
I've done some research on this, but this is only one of the uses of CUtlVector netprops... the other is for nested netprops which would require a significant restructuring of the netprops system in order to work.
If I ever get off my butt working on the alternative way of reading netprops (i.e. needing the entire "path" for a netprop), the ability to read CUtlVectors will show up in it.
Quote:
Originally Posted by boynedmaster
But that activates once for every hat.
|
Yes, it does.
It's also the best way to block a player from wearing / equipping an item.
Granted, it doesn't work for removing them later on.
__________________