Search found 863 matches

by L'In20Cible
Sat Oct 06, 2018 12:45 pm
Forum: General Discussion
Topic: Sourcepython on Linux (seems very unstable)
Replies: 9
Views: 2482

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 ...
by L'In20Cible
Sun Aug 12, 2018 3:57 pm
Forum: Plugin Development Support
Topic: Changing entity collision group?
Replies: 6
Views: 1094

Re: Changing entity collision group?

Entity inherits from BaseEntity: _base.py#L73. So yes, everything available in BaseEntity is available for Entity but not the other way around (see Entity as being an extended version of BaseEntity).
by L'In20Cible
Sun Aug 12, 2018 3:39 pm
Forum: Plugin Development Support
Topic: Changing entity collision group?
Replies: 6
Views: 1094

Re: Changing entity collision group?

This is not a float. That being said, that property is aliased: CBaseEntity.ini#L76

Syntax: Select all

Entity(index).collision_group
by L'In20Cible
Sat Aug 04, 2018 1:50 am
Forum: Plugin Development Support
Topic: How to use PlayerDictionary?
Replies: 2
Views: 401

Re: How to use PlayerDictionary?

You don't have to clear the dictionary yourself. As soon as the player entities are deleted, they are removed from the dictionary and all entities are freed on new map.
by L'In20Cible
Fri Aug 03, 2018 2:48 am
Forum: Plugin Development Support
Topic: hooking "prethink" only runs when ducking [TF2]
Replies: 7
Views: 1030

Re: hooking "prethink" only runs when ducking [TF2]

The offsets are outdated it seems. Should be 337 and 336: https://github.com/Source-Python-Dev-Team/Source.Python/blob/58cda0e4eb89ca8d9608e8cab1c64db34a971bdb/addons/source-python/data/source-python/entities/orangebox/tf/CBasePlayer.ini#L9-L12 Feel free to use this tool to update them and submit a ...

Go to advanced search