Quote:
Originally Posted by rauros
Well, this seems to be the better way to do a multisource godmode. I don't know why there is not a function already implemented on SourcePawn...
|
To keep the API clean.
There's many other functions that
could be added, but Sourcemod is made to give the building blocks and let plugins put them together and/or add more blocks.
With just SM, you can already do it simple like:
PHP Code:
SetEntProp(client, "m_fFlags", GetEntityFlags(client)|FL_GODMODE);
The only other thing I foresee being added that would make sense to be added is a SetEntityFlags stock that, like GetEntityFlags, looks at the gamedata to see what the current game's flag prop is called (I don't believe it is "m_fFlags" in all, else there would be no need for it in the gamedata).