Quote:
Originally Posted by hydrochloride
im gonna be honest, i have no clue how yo use sm_custattr_add, is there an example on how to use it? i put in the name of the file of the attribute, also even if i type in random letters and it accepts them as attributes, can you make it so it detects if the name put in matches the attribute name instead of accepting anything
|
What you're asking for is not possible - the Custom Attribute system is free form and doesn't have any concept of whether or not attributes actually exist; plugins just check that some entry is present when it needs to.
Can't give you any concrete instructions since I don't know what you have on hand, but assuming you installed the Starter Pack, you can refer to
the attribute list for descriptions of how to use every attribute available there - other attribute plugins likely provide their own instructions.
For example, if you wanted to apply
weapon always gibs on kill to your current weapon:
Code:
sm_custattr_add "weapon always gibs on kill" "1"
Note that the command is primarily intended for rapid development; use something like the built-in configuration for attributes to persist.
(These days I'd recommend using
Econ Dynamic so plugins can register real attributes that operate seamlessly with the game's attribute system. But that's something that would be up to the attribute plugin developers to implement and migrate to, so this doesn't do you any good as a server operator.)
__________________