Search found 1413 matches

by Ayuto
Fri Mar 25, 2016 9:05 pm
Forum: Plugin Development Support
Topic: choice_index == 0
Replies: 1
Views: 1986

Select callbacks don't get called when the close button was pressed. This behaviour is defined here: https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/addons/source-python/packages/source-python/menus/radio.py#L105 But you can easily extend and update the default behaviour by subcl...
by Ayuto
Fri Mar 25, 2016 12:39 pm
Forum: Plugin Development Support
Topic: KillerInfo
Replies: 4
Views: 3636

Actually, as far as the Delay calling close(), do we not have the ability to set that within the menu object itself? This line seems to indicate that that was at least planned at some point. Yes, it's planned, but that method just returns the data for ShowMenu which requires an integer that defines...
by Ayuto
Fri Mar 25, 2016 11:21 am
Forum: Plugin Development Support
Topic: KillerInfo
Replies: 4
Views: 3636

by Ayuto
Tue Mar 22, 2016 1:58 pm
Forum: General Discussion
Topic: Missing VCRUNTIME140.dll
Replies: 4
Views: 6184

Can you check if the directory of the installed DLL is on the PATH environment variable? I guess that's the new requirement for Python 3.5. Currently, we are shipping msvcr100.dll and msvcp100.dll with Source.Python, but they probably have been replaced with vcruntime140.dll and msvcp140.dll. I will...
by Ayuto
Thu Mar 17, 2016 12:48 pm
Forum: Plugin Development Support
Topic: Kill a player
Replies: 10
Views: 6892

I guess you are still passing player.name to PagedOption as the second parameter. That's why option.value contains a string.
by Ayuto
Thu Mar 17, 2016 10:29 am
Forum: Plugin Development Support
Topic: Kill a player
Replies: 10
Views: 6892

The problem is this line: engine.server.server_command('kill ' + option.value) It should look like this: engine_server.server_command('kill ' + option.value) However, since I'm not sure if there is a "kill" server command, I would simply use the built-in fun...
by Ayuto
Wed Mar 16, 2016 7:59 pm
Forum: Plugin Development Support
Topic: Spectator List
Replies: 2
Views: 2466

I have added a "spectators" property to the player class based on your implementation:
https://github.com/Source-Python-Dev-Team/Source.Python/commit/dee963986abb17d83c1d091c0e80fb448e842a12
by Ayuto
Sat Mar 12, 2016 9:55 pm
Forum: Plugin Development Support
Topic: Prevent Double Jump
Replies: 10
Views: 8321

Something like this? import memory from memory import Convention from memory import DataType from memory.hooks import PreHook from players.entity import Player server = memory.find_binary('server') CreateInterface = server['CreateInterface'].make_function( Convention.CDEC...
by Ayuto
Tue Mar 08, 2016 5:15 pm
Forum: Whatever
Topic: Spam attack?
Replies: 4
Views: 5964

Yeah, I noticed that as well. I'm going to ban them soon.
by Ayuto
Sun Mar 06, 2016 6:49 pm
Forum: Plugin Development Support
Topic: Players Entity
Replies: 2
Views: 2102

In Python you usually use "help(<object>)". from players.entity import Player help(Player) However, the Entity/Player class is a special one, because it adds in attributes dynamically depending on the entity type. You can use "dir(<object>)" to print these attributes. fro...
by Ayuto
Sat Mar 05, 2016 9:54 am
Forum: Plugin Development Support
Topic: Menu - more options on one page
Replies: 1
Views: 1959

You can use PagedMenu and PagedOption for that. from menus import PagedMenu from menus import PagedOption menu = PagedMenu() for x in range(100): menu.apppend(PagedOption('SteamID {}'.format(x), selectable=False)) But you can't display 10 items with mu...
by Ayuto
Wed Mar 02, 2016 8:47 pm
Forum: General Discussion
Topic: SP Lags?
Replies: 12
Views: 9952

I have implemented a few tweaks. With the new version (268 -- it's currently compiling) it should run much smoother.
by Ayuto
Wed Mar 02, 2016 6:32 pm
Forum: General Discussion
Topic: SP Lags?
Replies: 12
Views: 9952

Okay, I have narrowed down the issue. It is caused by one of our hooks. When standing on a weapon the entity output "OnCacheInteraction" is getting fired. So, if you are not using the OnEntityOutput listener, you can disable the hook for now by simply commenting out/removing this line: https://githu...
by Ayuto
Wed Mar 02, 2016 5:52 pm
Forum: General Discussion
Topic: SP Lags?
Replies: 12
Views: 9952

your problem has nothing to do with sp, its engine bound. calculating the player location causes lags, when its bounding box is touching too many collision faces. if you drop weapon entities under your player entity the calculation for vphysics will get slower with every addition. if you use a loca...
by Ayuto
Wed Mar 02, 2016 10:51 am
Forum: Plugin Releases
Topic: Dissolver v1.3
Replies: 23
Views: 23661

You can fix this error by removing the '1' in the string in line 117.
by Ayuto
Tue Mar 01, 2016 5:52 pm
Forum: Development Status Updates
Topic: Development status update (February 2016)
Replies: 0
Views: 3730

Development status update (February 2016)

It's time for another development status update! :) ⋅ Fixes: ⋅  Fixed a typo in Vector. ⋅  Fixed game name of dod for team data. ⋅  Fixed CS:GO user messages overflowing. ⋅  Fixed a few issues with RecipientFilter. ⋅ Additions: ⋅ ...
by Ayuto
Tue Mar 01, 2016 5:27 pm
Forum: General Discussion
Topic: SP Lags?
Replies: 12
Views: 9952

My first guess would be that a bump_weapon hook causes the lags. But you are saying no plugins are loaded and SP doesn't hook bump_weapon (currently).
Currently, SP only hooks 4 functions, but all of them don't get triggered by standing on a weapon.
by Ayuto
Tue Mar 01, 2016 10:25 am
Forum: Plugin Releases
Topic: BombSecurity v1.2.1
Replies: 8
Views: 9073

Nice! I guess it would also work if you set m_iTeam or m_iTeamNum (can't remember the name) to the T team. Then you don't need to hook player_team anymore, because that doesn't cause a message to be sent.

Next step would be giving the Ts the ability to pickup a planted bomb and run away. :D
by Ayuto
Mon Feb 29, 2016 8:27 pm
Forum: General Discussion
Topic: SP not loading on my Linux server
Replies: 8
Views: 6372

Might be a permission problem?

Go to advanced search