Search found 875 matches

by L'In20Cible
Sun Apr 07, 2019 1:44 am
Forum: General Discussion
Topic: Sourcepython python support
Replies: 7
Views: 178

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: 461

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: 75

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: 134

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: 396

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: 103

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: 308

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: 169

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: 308

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: 308

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: 308

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: 133

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: 307

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: 307

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: 923

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'):
by L'In20Cible
Mon Feb 11, 2019 12:48 am
Forum: Plugin Requests
Topic: Command: Weapon Speed modifier
Replies: 7
Views: 923

Re: Command: Weapon Speed modifier

Or would it be better to use a set() containing player indexes / userids to check if the player has their recoil disabled or not? I would personally leave it to what you posted over using a different container. Mainly because you will end having to lookup two of them in your weapon_fire_pre (one fo...
by L'In20Cible
Sat Feb 09, 2019 12:47 am
Forum: Plugin Development Support
Topic: [BM:S] Jet
Replies: 5
Views: 393

Re: [BM:S] Jet

You need to relog, restart your server, or change the map for the values to be assigned to your userid. Either that, or you could simply add the following to your code: from players import PlayerGenerator from players.helpers import userid_from_edict def load(): for edict in PlayerGenerator&...
by L'In20Cible
Wed Feb 06, 2019 2:12 pm
Forum: Plugin Development Support
Topic: [BM:S] Jet
Replies: 5
Views: 393

Re: [BM:S] Jet

I believe he is using the code given in this thread: viewtopic.php?f=37&t=1358
And since that code relies on the player_activate event, my guess here is that he loaded the code without changing the map/restart his server.
by L'In20Cible
Fri Feb 01, 2019 11:40 pm
Forum: Whatever
Topic: Free games!!
Replies: 40
Views: 17767

Re: Free games!!

by L'In20Cible
Mon Jan 28, 2019 1:36 am
Forum: Plugin Development Support
Topic: [CS:GO] solid_flags not working
Replies: 7
Views: 403

Re: [CS:GO] solid_flags not working

What map is this? Got a download link and a test code?

Go to advanced search