Quote:
Originally Posted by Kellan123
|
So I would just do this on each weapon entity I give to a player?
Code:
SetEntProp(weapon, Prop_Send, PROPERTY, VAL)
Sounds good, where can I find a list of property names? I've been looking on the developers.valvesoftware wiki and googling but can't find anything relevant.
I also tried sm_dump_netprops but couldn't find relevant properties for anything but ammo reserves* (which don't even seem to work right but I'm probably just using them wrong).
*It's not that it _only_ dumps properties for ammo reserves, its that all the properties are things like
Code:
m_nSequence
m_hPrevOwner
m_bBurstMode
m_flPostponeFireReadyTime
m_bReloadVisuallyComplete
which are not really relevant.
I've found that the Source SDK uses some kind of
weapon script file to set weapon data in source games, and it appears there's a
weapon balance mod that uses this script type to modify weapon properties - looks really clean and promising but I haven't found a way to implement something like in an sm plugin (and I actually can't tell how this person's mod is implemented at all from the source repo which I gather is just a reupload of someone else's work).