Search found 827 matches

by L'In20Cible
Sat Oct 13, 2018 3:46 pm
Forum: General Discussion
Topic: Performance issue!!!
Replies: 30
Views: 1119

Re: Performance issue!!!

Sure you can do it in 1000 ways, or the initial problem can be solved. It shouldn't be lagging by receiving the origin/dead/get_distance etc.. every tick or evey 2nd tick etc.. It doesn't matter when more players join. It does matter. In the code you linked, your function is executed every 0.1 seco...
by L'In20Cible
Sat Oct 13, 2018 2:51 pm
Forum: Plugin Requests
Topic: A little es help
Replies: 6
Views: 378

Re: A little es help

Replace:

Syntax: Select all

es.remove(loc)

With:

Syntax: Select all

es.server.queuecmd('es_xremove %i' % loc)
by L'In20Cible
Mon Oct 08, 2018 6:08 am
Forum: General Discussion
Topic: Sourcepython on Linux (seems very unstable)
Replies: 9
Views: 475

Re: Sourcepython on Linux (seems very unstable)

1. What do I do, if I actually need to modify the arguments before the original execution? This could be important because I use a lot of pre-hooks. This would need to be dealt with on a case-by-case basis. For example, you could block the original call to reproduce what it is doing yourself in som...
by L'In20Cible
Mon Oct 08, 2018 5:43 am
Forum: General Discussion
Topic: engine messaging
Replies: 1
Views: 165

Re: engine messaging

If I remember correctly...

Syntax: Select all

from cvars import ConVar
from cvars.flags import ConVarFlags

ConVar('bot_quota').flags &= ~ConVarFlags.NOTIFY
by L'In20Cible
Sat Oct 06, 2018 12:45 pm
Forum: General Discussion
Topic: Sourcepython on Linux (seems very unstable)
Replies: 9
Views: 475

Re: Sourcepython on Linux (seems very unstable)

@L'In20Cible That would be much appreciated :) I really don't know when I will get to test that since I'm quite busy lately and my linux environment is far from being up-to-date but, when I do, I really don't plan to dig further than updating the library which honestly, I don't think will fixes it....
by L'In20Cible
Thu Oct 04, 2018 10:13 am
Forum: General Discussion
Topic: Sourcepython on Linux (seems very unstable)
Replies: 9
Views: 475

Re: Sourcepython on Linux (seems very unstable)

Alright, but why is there a difference on linux compared to windows? In windows I dont need to add an 1 tick delay? Because they are different platforms. There is an issue on Linux when you call a function within a hook (mostly a conflict between DynamicHooks and dyncall or something). That issue i...
by L'In20Cible
Mon Oct 01, 2018 2:45 am
Forum: General Discussion
Topic: Permmissions question
Replies: 2
Views: 253

Re: Permmissions question

I don't think immunity should be implemented for the core packages. This doesn't seem to be their responsibility and might cause issues/break game-play of certain plugins...
by L'In20Cible
Mon Oct 01, 2018 2:41 am
Forum: General Discussion
Topic: Failed to load addons/source-python
Replies: 23
Views: 3228

Re: Failed to load addons/source-python

Sorry to revive a slightly old thread but after terminating the conversion of my engine (running on my local machine) I realized that my hosting company would not support SP at all for a CSS game and looking through different forums it looks like finding a hosting company capable of running SP for ...
by L'In20Cible
Fri Sep 14, 2018 12:03 am
Forum: Plugin Development Support
Topic: Encoding problem with configs
Replies: 5
Views: 413

Re: Encoding problem with configs

Yes, this is what I meant. Did you test? I'm pretty sure this is the cause of the issue.
by L'In20Cible
Thu Sep 13, 2018 9:56 am
Forum: Plugin Development Support
Topic: Encoding problem with configs
Replies: 5
Views: 413

Re: Encoding problem with configs

I cannot test right now but I guess this is caused by the default value translation and that lines 266 , 332 and 388 of the file ../config/manager.py should pass encoding='utf8' to the open() calls. Ideally add an encoding property to the class itself instead of hard-coding an encoding for consisten...
by L'In20Cible
Tue Sep 04, 2018 4:27 pm
Forum: Plugin Development Support
Topic: TF2 - Getting weapon names from event byte
Replies: 10
Views: 451

Re: TF2 - Getting weapon names from event byte

I suppose that works. I would've liked to see that be a bit more dynamic than that but if that's what sourcemod is doing then thats prob fine. Is there a clean namespace we could use to integrate this directly into the SourcePython? Theres a handful of other TF2 related data that would be helpful t...
by L'In20Cible
Tue Sep 04, 2018 1:08 am
Forum: Plugin Development Support
Topic: TF2 - Getting weapon names from event byte
Replies: 10
Views: 451

Re: TF2 - Getting weapon names from event byte

Seems like this is the enumerated type (untested): # ============================================================================ # >> IMPORTS # ============================================================================ # Python from enum import IntEnum # Source.Python Imports from events import E...
by L'In20Cible
Tue Sep 04, 2018 12:37 am
Forum: Plugin Development Support
Topic: Clan Tag in CS:GO
Replies: 7
Views: 468

Re: Clan Tag in CS:GO

Seems like the offsets are outdated. Just did extract them from the up-to-date binaries and they are now 2548h on Windows and 2560h on Linux. I updated them on GitHub but haven't tested so let me know if that did the trick for you.
by L'In20Cible
Mon Sep 03, 2018 2:30 pm
Forum: Plugin Development Support
Topic: TF2 - Getting weapon names from event byte
Replies: 10
Views: 451

Re: TF2 - Getting weapon names from event byte

The byte is probably the index of the entity:

Syntax: Select all

weapon = Weapon(ev['weapon'])
by L'In20Cible
Sun Aug 19, 2018 2:09 am
Forum: Plugin Development Support
Topic: Weapons
Replies: 2
Views: 652

Re: Weapons

satoon101 wrote:I think there is also a client command you can call in your plugin which will change their weapon based on the weapon string, but I don't remember it off hand.

If I remember correctly, that would be the following command:

Syntax: Select all

player.client_command('use weapon_knife', server_side=True)
by L'In20Cible
Fri Aug 17, 2018 6:06 am
Forum: Plugin Development Support
Topic: box
Replies: 17
Views: 1096

Re: Bounding box

When it comes to the model, isn't it irrelevant what the model itself is? The trigger_multiple is a brush entity, so the model shouldn't matter, right? I'm not 100% sure on this, which is why I took your advice and changed it to use the player model. It is more than important. The model is the shap...
by L'In20Cible
Thu Aug 16, 2018 11:23 pm
Forum: Plugin Development Support
Topic: box
Replies: 17
Views: 1096

Re: Bounding box

Nice! I have a few points though. First of all, the model: TRIGGER_MODEL = Model('models/props/cs_assault/money.mdl') I don't think using a random model is a good idea because depending of the angles it will parent, you may end with the parented trigger being slightly off the player....
by L'In20Cible
Wed Aug 15, 2018 11:21 pm
Forum: Plugin Development Support
Topic: Changing entity move collide
Replies: 3
Views: 289

Re: Changing entity move collide

velocity wrote:Server crash when I try to do Entity(index).get_property_int('m_MoveCollide').

Complete code? It is unlikely to crash cause of that line, so the crash must be somewhere else.
by L'In20Cible
Wed Aug 15, 2018 7:11 pm
Forum: Plugin Development Support
Topic: Changing entity move collide
Replies: 3
Views: 289

Re: Changing entity move collide

Run the following command:

Code: Select all

sp dump server_classes classes;sp dump datamaps datamaps

Then check the classes.txt and datamaps.txt files generated into the ../logs/source-python directory. A little hint, MoveCollide is an Enum so their values are integer.
by L'In20Cible
Mon Aug 13, 2018 3:03 pm
Forum: Plugin Development Support
Topic: Check if entity exists
Replies: 2
Views: 424

Re: Check if entity exists

You should not store Entity instances unless you use a container designed to keep them up-to-date such as EntityDictionary . To validate whether or not an instance is still valid, you would have to loop through all existing entities and compare their address which can get quite slow if you validate ...

Go to advanced search