Search found 880 matches

by L'In20Cible
Sun Jun 16, 2019 2:24 am
Forum: Plugin Development Support
Topic: Loading plugin fails (built-in module name)
Replies: 6
Views: 167

Re: Loading plugin fails (built-in module name)

You must have an ../udm/udm.py file into a search paths (../Python3/, ../packages/custom/, ../packages/site-packages/, etc.) that is imported before it is found as a plugin and is considered a built-in module.
by L'In20Cible
Wed May 29, 2019 7:09 am
Forum: Plugin Requests
Topic: [HL2:DM] Headshot Help
Replies: 64
Views: 9416

Re: [HL2:DM] Headshot Help

2019-05-29 00:26:48 - sp - MESSAGE [SP] Loading plugin 'country_tag'... 2019-05-29 00:26:48 - sp - MESSAGE [SP] Successfully loaded plugin 'country_tag'. 2019-05-29 00:26:48 - sp - MESSAGE [SP] Loading plugin 'killmessage'... 2019-05-29 00:26:48 - sp - MESSAGE [SP] Successfu...
by L'In20Cible
Wed May 29, 2019 2:23 am
Forum: Plugin Requests
Topic: [HL2:DM] Headshot Help
Replies: 64
Views: 9416

Re: [HL2:DM] Headshot Help

Do i add that to the script? No, use the code Satoon gave you above: from contextlib import suppress from engines.precache import Model from engines.sound import Sound from entities import TakeDamageInfo from entities.entity import Entity from entities.hooks import EntityCondition, EntityPreHook fr...
by L'In20Cible
Wed May 29, 2019 2:10 am
Forum: Plugin Requests
Topic: [HL2:DM] Headshot Help
Replies: 64
Views: 9416

Re: [HL2:DM] Headshot Help

That Traceback does match the script in the linked post. I'm not sure in what situation the attacker equals the inflictor and it is not a player. It's either a weird HL2:DM issue or I believe you mentioned you have custom weapons on your server, which could be causing this. This can also happens wh...
by L'In20Cible
Wed Apr 24, 2019 3:24 am
Forum: General Discussion
Topic: sourcepython installation broken
Replies: 5
Views: 329

Re: sourcepython installation broken

An idea could be to allow the use of the constants available in the paths.py module via keywords and default them to: [[[flatfile]]] player_config_path = {AUTH_CFG_PATH}\players.json parent_config_path = {AUTH_CFG_PATH}\parents.json simple_config_path = {AUTH_CFG_PATH}\simple.txt [[[sql]]] uri = sql...
by L'In20Cible
Sun Apr 07, 2019 1:44 am
Forum: General Discussion
Topic: Sourcepython python support
Replies: 7
Views: 372

Re: Sourcepython python support

I don't recommend switching to 3.7 anytime soon, probably 80% of pythons library won't work in 3.7 if I'm wrong, then np, but I'm pretty sure they are going to be compatibility issues with a lot of py libs. It shouldn't be updated before the "python community" catches up. There wasn't any...
by L'In20Cible
Sun Mar 31, 2019 12:05 am
Forum: Plugin Requests
Topic: Last Man Standing
Replies: 13
Views: 769

Re: Last Man Standing

Painkiller wrote:Please fix your syntaxerror please

This seems to be an issue with the encoding of your file you created.
by L'In20Cible
Sun Mar 31, 2019 12:04 am
Forum: Plugin Development Support
Topic: [HL2:DM] string_tables.downloadables
Replies: 2
Views: 175

Re: [HL2:DM] string_tables.downloadables

Please show your entire code. I guess your plugin is trying to iterate on the table before it has been created (on plugin loaded via autoexec.cfg, for example).
by L'In20Cible
Mon Mar 25, 2019 3:56 am
Forum: General Discussion
Topic: CSGO: Calculate a distance from one player/entity to another
Replies: 2
Views: 243

Re: CSGO: Calculate a distance from one player/entity to another

khaimovmr wrote:Hy guys!
Does someone knows - is there a way in the source-python of calculating the distance from one player/entity to another?

Syntax: Select all

distance = player.origin.get_distance(entity.origin)
by L'In20Cible
Fri Mar 08, 2019 11:09 am
Forum: General Discussion
Topic: Error installing Python on a Linux Server
Replies: 12
Views: 703

Re: Error installing Python on a Linux Server

Delete your ../addons/source-python.vdf file. Source.Python is clearly trying to load while it is already loaded which causes the interpreter to shut down.
by L'In20Cible
Thu Mar 07, 2019 7:40 am
Forum: Plugin Development Support
Topic: [CS:GO] How to get userid by SteamID ?
Replies: 4
Views: 225

Re: [CS:GO] How to get userid by SteamID ?

Syntax: Select all

from players.helpers import index_from_steamid, userid_from_index

userid = userid_from_index(index_from_steamid('STEAM_1:2:3456789'))
by L'In20Cible
Tue Mar 05, 2019 1:48 am
Forum: Plugin Development Support
Topic: [CSGO] TempEntityPreHook not working
Replies: 6
Views: 483

Re: [CSGO] TempEntityPreHook not working

The hooks should be fixed in the next build.
by L'In20Cible
Mon Mar 04, 2019 7:07 pm
Forum: Whatever
Topic: C++: How can I do *this*?
Replies: 2
Views: 266

Re: C++: How can I do *this*?

You need to explicitly declare it as a type: #include <iostream> class Base { }; class Class : Base { public: // within T type using type = int; }; template <class T> T* do_stuff(const char* key, typename T::type default_value, bool required = false) { std::cout << key << " Our default ...
by L'In20Cible
Fri Mar 01, 2019 6:58 pm
Forum: Plugin Development Support
Topic: [CSGO] TempEntityPreHook not working
Replies: 6
Views: 483

Re: [CSGO] TempEntityPreHook not working

Okay, after further investigation; seems like they removed an extra layer call in their temp entities creation macro for CS:GO. The way it works on other games, is that they call CBaseTempEntity::Create : void CBaseTempEntity::Create( IRecipientFilter& filter, float delay ) { // temp ent...
by L'In20Cible
Fri Mar 01, 2019 6:10 pm
Forum: Plugin Development Support
Topic: [CSGO] TempEntityPreHook not working
Replies: 6
Views: 483

Re: [CSGO] TempEntityPreHook not working

That's odd. There are no TempEntities being created but the hook does get called in SourceMod. Only when other players are firing their weapons though. The plugin I linked does work. I even added a debug print line to make sure the TempEntHook gets called. Hm, Interesting. I will make some more tes...
by L'In20Cible
Fri Mar 01, 2019 4:05 pm
Forum: Plugin Development Support
Topic: [CSGO] TempEntityPreHook not working
Replies: 6
Views: 483

Re: [CSGO] TempEntityPreHook not working

I'm trying to hook the TempEntity (Shotgun Shot) used for weapon tracers and sounds, but it doesn't seem to work. # ../temp_ent_hook_test/temp_ent_hook_test.py # Source.Python from core import echo_console from effects.hooks import TempEntityPreHook @TempEntityPreHook('Shotgun Shot')...
by L'In20Cible
Thu Feb 28, 2019 2:42 am
Forum: General Discussion
Topic: Installing Source.Python on CentOS 64-bit
Replies: 1
Views: 215

Re: Installing Source.Python on CentOS 64-bit

The error just slightly concerns me. Is this something I need to worry about? As you can see in the error: Unable to load plugin "addons/metamod/bin/linux64/server" Basically you either have a .vdf file in your addons folder or a plugin_load command somewhere in your .cfg files that refer...
by L'In20Cible
Wed Feb 13, 2019 2:43 am
Forum: General Discussion
Topic: DL Link Source.Python
Replies: 4
Views: 439

Re: DL Link Source.Python

He was unknown to me. So is it advisable to run via "sp update" to update Source.Python? Have now entered the command in the autoexec.cfg. So after every server restart to a new version is checked. Yes, if you add that command to your autoexec.cfg file your Source.Python installation will...
by L'In20Cible
Wed Feb 13, 2019 12:30 am
Forum: General Discussion
Topic: DL Link Source.Python
Replies: 4
Views: 439

Re: DL Link Source.Python

What's wrong with the builtin updater?
by L'In20Cible
Mon Feb 11, 2019 3:27 pm
Forum: Plugin Requests
Topic: Command: Weapon Speed modifier
Replies: 7
Views: 1133

Re: Command: Weapon Speed modifier

VinciT wrote:Got it. I've replaced the hook with the listener in the post above. Thanks for your input guys!

Noticed a typo there:

Syntax: Select all

if player.get_datamap_property_bool('pl_deadflag'):

Go to advanced search