Source.Python
Source.Python copied to clipboard
This plugin aims to use boost::python and create an easily accessible wrapper around the Source Engine API for scripter use.
Hey, I was just checking my logs and found this in here: ``` Client "🖤🇺🇦МÐШÐ🇺🇦ðŸ–" connected (X.XXX.XXX.XXX:27005). [Source.Python] [SP] Caught an Exception: Traceback (most recent call last): File "../addons/source-python/packages/source-python/messages/hooks.py", line...
Adds at wiki a tutorial how to make menu. Paged, Simple and List menu
Changed Downloadables to accept iterable on initialization. Fixed Downloadables.update to correctly add downloadables to stringtable. Added add_from_file/remove_from_file functions to Downloadables. Examples: ```python from stringtables.downloads import Downloadables downloadables = Downloadables(("downloadable_path_1.vtf", "downloadable_path_2.vtf"))...
The function ConVar_Unregister unregisters all ConVar/ConCommand and should not be used. Output: ``` plugin_print Loaded plugins: --------------------- 0: "Source.Python, (C) 2012-2021, Source.Python Team." 1: "Metamod:Source 1.11.0-dev+1145" --------------------- meta version Metamod:Source...
There is already `OnConVarChanged`, but it is wasteful if you only want to know the changes of a specific ConVar. This was made to match SourceMod's AddChangeHook feature. https://wiki.alliedmods.net/ConVars_(SourceMod_Scripting)#Change_Callbacks Code:...
This draft is derived from #332 & https://github.com/Source-Python-Dev-Team/Source.Python/issues/332#issuecomment-674310749 & https://github.com/Source-Python-Dev-Team/Source.Python/commit/14a38d4c5f19cf5f31e4b7c6477a5f7ed8595c28 Currently, there are ongoing discussions on how to implement the feature. I've made a pull request as a draft for...
Would it be possible to create this hook on the C++ side of SP, similar to the way [OnPlayerRunCommand](https://github.com/Source-Python-Dev-Team/Source.Python/blob/972547be070e74a3f785284cefef53d98fab83c8/src/core/sp_hooks.cpp#L170) was made? I feel like SetTransmit is one of the most...
PassServerEntityFilter is a VERY demanding function similar to SetTransmit. I think it would be very beneficial for this function to be handled on C++ side. Further performance discussion https://sourcepython.com/viewtopic.php?f=20&p=15917&sid=9edefcd1561ace64fcaa48264bc459d3#p15917 Code:...
[`Guest groups in auth`](https://github.com/Source-Python-Dev-Team/Source.Python/blob/972547be070e74a3f785284cefef53d98fab83c8/addons/source-python/docs/source-python/source/general/config-auth.rst#assigning-permissions-to-guests) are very useful, however it is very difficult to strip certain permissions/parents from the guest group. The guest group is expected to set permissions over features...
Hey, I was trying to use the Player.settings module and thought, if it would be easier to use it than via the menu. How about if we just simply could...