Search found 894 matches

by L'In20Cible
Sun Oct 20, 2019 4:24 am
Forum: Plugin Development Support
Topic: [HL2DM] GetPlayerMaxSpeed crashing
Replies: 1
Views: 82

Re: [HL2DM] GetPlayerMaxSpeed crashing

Seems like you found a bug. After some testing, seems like calling an hooked function that return a float or a double through the ST0 register is causing an access violation which causes a crash when the game itself is calling said function. I've tested multiple functions on different games and alwa...
by L'In20Cible
Wed Oct 02, 2019 8:56 am
Forum: Plugin Development Support
Topic: [C-Strike:Source] Change Weapon Model
Replies: 11
Views: 886

Re: [C-Strike:Source] Change Weapon Model

And as you did, I question it and only continue on a 0, still after firing a few bullets (one round max.) the AK47 model will mirror meaning, revert back to the old model on the oppsite hand. Test after typing the following in your client console: cl_predictweapons 0 If the issue goes away, then th...
by L'In20Cible
Tue Oct 01, 2019 8:02 am
Forum: Plugin Development Support
Topic: [C-Strike:Source] Change Weapon Model
Replies: 11
Views: 886

Re: [C-Strike:Source] Change Weapon Model

# This is where you change the 'worldmodel' of the weapon. weapon.set_property_short('m_iWorldModelIndex', beast_worldmodel.index) Could be: weapon.world_model_index = beast_worldmodel.index # And this is where you change the 'viewmodel' of the weapon. viewmodel.set_...
by L'In20Cible
Tue Sep 10, 2019 1:13 am
Forum: General Discussion
Topic: What is the most reasonable way to install a pypi package to source.python?
Replies: 15
Views: 1146

Re: What is the most reasonable way to install a pypi package to source.python?

That's actually for an older version, they don't package it with binaries by default anymore so that command is the same as pip install psycopg2 on the current version, at least that's how i understand it. And i have tried that. Correct me if I'm wrong, I'm at a Dr appointment atm so i will try whe...
by L'In20Cible
Mon Sep 09, 2019 5:58 pm
Forum: General Discussion
Topic: What is the most reasonable way to install a pypi package to source.python?
Replies: 15
Views: 1146

Re: What is the most reasonable way to install a pypi package to source.python?

The issue about the warning you referenced mention to use:

Code: Select all

pip install --no-binary psycopg2

Tried with that option already?
by L'In20Cible
Mon Sep 09, 2019 5:06 pm
Forum: General Discussion
Topic: What is the most reasonable way to install a pypi package to source.python?
Replies: 15
Views: 1146

Re: What is the most reasonable way to install a pypi package to source.python?

From their documentation, you need to install psycopg2-binary if you want a stand alone package which is what you need for Source.Python since the interpreter is embedded.
by L'In20Cible
Mon Sep 02, 2019 7:32 pm
Forum: Plugin Requests
Topic: [HL2:DM] Mapconfig Plugin no longer work :(
Replies: 13
Views: 1329

Re: [HL2:DM] Mapconfig Plugin no longer work :(

I tested it. It's not working. this code is current on my server. If you have a moment I would show it to you. Try to replace the following line: Delay(0, execute_config, [global_vars.map_name]) To: Delay(1, execute_config, [global_vars.map_name]) I believe on some system the execut...
by L'In20Cible
Mon Sep 02, 2019 2:58 pm
Forum: Plugin Requests
Topic: [HL2:DM] Mapconfig Plugin no longer work :(
Replies: 13
Views: 1329

Re: [HL2:DM] Mapconfig Plugin no longer work :(

I've tested Ayuto's code posted there and it is working fine for me: Try this quick and dirty edit: import os from cvars import cvar from listeners.tick import Delay from paths import BASE_PATH, GAME_PATH from commands.server import ServerCommand from listeners.tick import Delay from engines.server ...
by L'In20Cible
Mon Sep 02, 2019 1:29 pm
Forum: Plugin Development Support
Topic: [HL2:DM] Auto DJ
Replies: 8
Views: 687

Re: [HL2:DM] Auto DJ

I've loaded your code and found the issue. The following line: music_repeat.start(cfg.music_interval.get_int(), 0) Should be: music_repeat.start(cfg.music_interval.get_int()) The second arguments defines how many time the loop should repeat so by having it set to 0, i...
by L'In20Cible
Mon Sep 02, 2019 1:12 pm
Forum: Plugin Development Support
Topic: [HL2:DM] Auto DJ
Replies: 8
Views: 687

Re: [HL2:DM] Auto DJ

Painkiller wrote:Supermod is the entire plugin and music.py a part of it.

Where can I find all the files?
by L'In20Cible
Mon Sep 02, 2019 12:28 pm
Forum: Plugin Development Support
Topic: [HL2:DM] Auto DJ
Replies: 8
Views: 687

Re: [HL2:DM] Auto DJ

Painkiller wrote:Is there a solution why the music does not play automatically after X time?

What is supermod? Are the messages printed but no sounds are played or is there no messages as well?
by L'In20Cible
Sat Aug 03, 2019 10:18 pm
Forum: Plugin Development Support
Topic: [HL2:DM] effects.py
Replies: 2
Views: 526

Re: [HL2:DM] effects.py

To get access to data other than UserID, it is necessary that the player be loaded. Also, a player’s exit from the server may be a mistake, and in the meantime, the script considers that it is still on the server. (My english is bad) This could have been fixed by replacing the following: def dissol...
by L'In20Cible
Fri Jun 28, 2019 8:32 pm
Forum: Plugin Development Support
Topic: [CS:GO] Prevent team switch event
Replies: 8
Views: 1614

Re: [CS:GO] Prevent team switch event

Is that a snippet for others to use or a question? And what exactly do you want to do? Block the player_team event or really block team changes? If it's the latter, you can use a ClientCommandFilter . Why do you recommend using ClientCommandFilter instead ClientCommand decorator? Both should works,...
by L'In20Cible
Fri Jun 28, 2019 8:30 pm
Forum: General Discussion
Topic: Can't run Source Python
Replies: 3
Views: 403

Re: Can't run Source Python

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

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

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

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

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

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

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...

Go to advanced search