Search found 1663 matches

by satoon101
Tue Oct 16, 2018 2:19 am
Forum: General Discussion
Topic: Performance issue!!!
Replies: 30
Views: 499

Re: Performance issue!!!

We moved most (all?) of the CBaseEntity properties to C++. Perhaps we should do the same with some of the common CBasePlayer ones, which are found in all games we support.
by satoon101
Mon Oct 15, 2018 6:42 pm
Forum: Plugin Development Support
Topic: Block round end
Replies: 9
Views: 116

Re: Block round end

mp_ignore_round_win_conditions

If you want to stop the rounds from ending, set that to 1.
by satoon101
Mon Oct 15, 2018 3:01 pm
Forum: API Design
Topic: datamap dumps?
Replies: 2
Views: 33

Re: datamap dumps?

Pinsplash wrote:Also, santoon101's dropbox links on that page are now 404's.

Sorry, I had to clear out my Dropbox a few months ago to make room for something and I forgot to put everything back once I had finished. I will do that now, so thank you for the reminder.
by satoon101
Mon Oct 15, 2018 1:57 am
Forum: General Discussion
Topic: Performance issue!!!
Replies: 30
Views: 499

Re: Performance issue!!!

I apologize, I misread your post about using the emulator. So, you noticed this slowness while trying to run the ES code through the emulator. I will say, using SP natively will be faster than using the emulator. I'm fairly sure that the emulator was created so that people could still use old ES scr...
by satoon101
Sun Oct 14, 2018 1:57 am
Forum: General Discussion
Topic: Performance issue!!!
Replies: 30
Views: 499

Re: Performance issue!!!

I haven't read all of the replies, yet, but one thing really stood out in your tests reply. You stated you are using the ES Emulator to run the ES code. In case you are unaware, that literally wraps SourcePython functionality to emulate EventScripts. If you truly did a 1-to-1 conversion, which looki...
by satoon101
Sat Oct 13, 2018 7:41 pm
Forum: General Discussion
Topic: Performance issue!!!
Replies: 30
Views: 499

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 satoon101
Sat Oct 13, 2018 12:14 pm
Forum: General Discussion
Topic: Performance issue!!!
Replies: 30
Views: 499

Re: Performance issue!!!

I'd add that you are retrieving the player's index, dead, and origin every single time during that loop. I would recommend grabbing each of them once, prior to the loop, instead. Also, is there any reason you are using this in a run_command hook? Not knowing what you are using this for, it's difficu...
by satoon101
Wed Oct 10, 2018 10:06 pm
Forum: Plugin Requests
Topic: [HL2:DM] looneytrails
Replies: 1
Views: 40

Re: [HL2:DM] looneytrails

by satoon101
Thu Oct 04, 2018 1:02 am
Forum: General Discussion
Topic: Sourcepython on Linux (seems very unstable)
Replies: 9
Views: 232

Re: Sourcepython on Linux (seems very unstable)

The alpha issue is not a problem with SP itself. It's the nature of that functionality in CS:GO. Valve did add a cvar that enables setting the player alpha, iirc, but I don't remember what it is. If you are teleporting within a hooked function, you will have to use a 1 tick delay. I am not sure abou...
by satoon101
Wed Oct 03, 2018 2:37 am
Forum: General Discussion
Topic: Failed to load addons/source-python
Replies: 23
Views: 2748

Re: Failed to load addons/source-python

That's basically what they tried for me, twice, but it still gave me the same error. I hope you have better luck than I did.
by satoon101
Mon Oct 01, 2018 1:32 am
Forum: General Discussion
Topic: Failed to load addons/source-python
Replies: 23
Views: 2748

Re: Failed to load addons/source-python

I have had success with both https://eoreality.net and https://www.nfoservers.com for CS:S. I have not attempted to create a CS:GO server.
by satoon101
Sun Sep 23, 2018 6:35 pm
Forum: General Discussion
Topic: Downloadables
Replies: 5
Views: 67

Re: Downloadables

If I remember correctly, that can happen if you don't have the files setup correctly on your download server (when using sv_downloadurl).
by satoon101
Sun Sep 23, 2018 6:23 pm
Forum: General Discussion
Topic: Not display command in chat
Replies: 2
Views: 58

Re: Not display command in chat

Syntax: Select all

from commands import CommandReturn
from commands.say import SayCommand

@SayCommand('!test')
def _test_command(command, index, team_only):
# stop command from showing in chat
return CommandReturn.BLOCK
by satoon101
Fri Sep 14, 2018 12:11 am
Forum: Plugin Development Support
Topic: Encoding problem with configs
Replies: 5
Views: 206

Re: Encoding problem with configs

That looks good to me. If you would, create a pull request for that, please. There are only two very minor changes I would make, and that is adding a space between the comma and encoding in 2 places.
by satoon101
Sat Aug 18, 2018 10:38 pm
Forum: Plugin Development Support
Topic: Weapons
Replies: 2
Views: 532

Re: Weapons

The weapon class inherits from the Entity class. It requires an index, not a string. @SayCommand('!knife') def sayHintText(say, index, team_only=None): player = Player(index) weapon = player.get_weapon('weapon_knife') if weapon is not None: player.acti...
by satoon101
Sun Aug 12, 2018 4:03 pm
Forum: Plugin Development Support
Topic: Changing entity collision group?
Replies: 6
Views: 394

Re: Changing entity collision group?

Notice that the second line under a class declaration in the documentation lists the "Bases" (or inherited classes) of that class. http://wiki.sourcepython.com/developing/modules/entities.entity.html#entities.entity.Entity The documentation would grow exponentially if we listed all functio...
by satoon101
Sun Aug 12, 2018 3:53 pm
Forum: Plugin Development Support
Topic: Changing entity collision group?
Replies: 6
Views: 394

Re: Changing entity collision group?

NONE is from CollisionGroup.NONE: https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/src/core/modules/entities/entities_constants_wrap.cpp#L357 To set it, just use the CollisionGroup enum: from entities.constants import CollisionGroup Entity(index).collision_group = Collisio...
by satoon101
Sun Aug 12, 2018 2:02 pm
Forum: Plugin Development Support
Topic: BaseEntity?
Replies: 2
Views: 228

Re: BaseEntity?

No, it has not been removed. What exact issue are you having?
by satoon101
Sun Aug 12, 2018 2:06 am
Forum: Plugin Development Support
Topic: box
Replies: 17
Views: 832

Re: Bounding box

There are no attribute .position Sorry, I added that after having tested. KeyError '8' in y.group and other variables. I tested with default models on CS:S, so if there's a hitgroup 8, you're likely using another game and/or custom model. That line really isn't necessary, I only included it to show...
by satoon101
Sat Aug 11, 2018 11:57 pm
Forum: Plugin Development Support
Topic: box
Replies: 17
Views: 832

Re: Bounding box

I haven't tried, but you might check into using the bones/hitboxes: https://github.com/Source-Python-Dev-Team/Source.Python/blob/b6e6e7fe978d8a7a5d733a8b427236eaa2dae4e7/src/core/modules/studio/studio_wrap.cpp Example: from players.constants import HitGroup from players.entity import Player player =...

Go to advanced search