Search found 1318 matches

by Ayuto
Fri Jun 26, 2020 10:05 pm
Forum: Plugin Development Support
Topic: [TF2] Hooking Server Log
Replies: 5
Views: 225

Re: [TF2] Hooking Server Log

Or simply type "sp dump class_info class_info".
by Ayuto
Fri Jun 26, 2020 9:34 am
Forum: Plugin Development Support
Topic: [TF2] Suppress mp_tournament_whitelist output
Replies: 2
Views: 691

Re: [TF2] Suppress mp_tournament_whitelist output

The cleanest way would be to find the correct memory address and fill the part that calls the function Msg with NOP instructions. The easiest and most stable way would be to hook the server output like shown here:
viewtopic.php?f=20&p=14278#p14278
by Ayuto
Fri Jun 26, 2020 9:04 am
Forum: Plugin Development Support
Topic: [TF2] Hooking Server Log
Replies: 5
Views: 225

Re: [TF2] Hooking Server Log

If you want to to hook the complete server output, you can use the OnServerOutput listener: http://wiki.sourcepython.com/developing/module_tutorials/listeners.html#onserveroutput If you want to get the server output at a specific time (e. g. when executing a command), you can use context manager ser...
by Ayuto
Wed Jun 24, 2020 10:11 am
Forum: Whatever
Topic: [Warning] Signature bug!
Replies: 8
Views: 1182

Re: [Warning] Signature bug!

I was hoping the admin setting I changed would do the job, but apperently it didn't. I guess I will pass this on to Muerte.
by Ayuto
Mon Jun 22, 2020 1:36 pm
Forum: Whatever
Topic: [Warning] Signature bug!
Replies: 8
Views: 1182

Re: [Warning] Signature bug!

Changed it, thank you!
by Ayuto
Sat Jun 20, 2020 9:47 am
Forum: API Design
Topic: Repeats and Delays based on ticks
Replies: 15
Views: 3787

Re: Repeats and Delays based on ticks

I don't think it's so import but it is good to have this: open_menu(index, menu, force_active=False) for unexpected menus (vote, questions) and general be open_menu(index, menu, force_active=True) by default. I would actually do it vice-versa. The programmer should explicitly set force_active to Tr...
by Ayuto
Fri Jun 19, 2020 9:01 am
Forum: API Design
Topic: Repeats and Delays based on ticks
Replies: 15
Views: 3787

Re: Repeats and Delays based on ticks

Also you initially showed a good idea to have backroungd menus. I mean if you open new menu while another is active, old menu is added to background menus and can be reopened early, but you implemented it in weird way: when a new menu is opened it does not overlap the old, it is immediately added t...
by Ayuto
Thu Jun 18, 2020 7:39 pm
Forum: General Discussion
Topic: [Q] More... MORE!
Replies: 10
Views: 1456

Re: [Q] More... MORE!

its a great idea to centralize the Q&A and the forums should be used for that. but i wonder: that is exactly where you have so often missed the point..?? beginners waste less time in an informal conversation. a beginner can't use the same language or perfect questioning you seem to want him to ...
by Ayuto
Thu Jun 18, 2020 6:58 pm
Forum: Plugin Requests
Topic: (HL2DM) zombies
Replies: 14
Views: 1451

Re: (HL2DM) zombies

Unfortunately, my time is currently too limited to take a deeper look into this. Sorry! I just wanted to help with the exception.
by Ayuto
Thu Jun 18, 2020 6:56 pm
Forum: API Design
Topic: Repeats and Delays based on ticks
Replies: 15
Views: 3787

Re: Repeats and Delays based on ticks

Good idea to use the return value of the delay callback to extend/reuse the delay. I like that! However, I was asking/hoping for a pull request (PR) for Source.Python. That would save us a little bit time. To do that, just fork SP, create a branch, make your changes and commit/publish them. Then go ...
by Ayuto
Tue Jun 16, 2020 4:01 pm
Forum: Plugin Releases
Topic: [CSGO] Curving Flash
Replies: 7
Views: 1162

Re: [CSGO] Curving Flash

Awesome idea and great implementation! I really like the way you program :)
by Ayuto
Mon Jun 15, 2020 12:59 pm
Forum: Plugin Requests
Topic: (HL2DM) zombies
Replies: 14
Views: 1451

Re: (HL2DM) zombies

Oh, sorry. That reply was actually directed to cssbestrpg. If you simply want to get the plugin (possibility - there might be more issues) just delete this line:
https://github.com/KirillMysnik/SP-HL2D ... ves.py#L14
by Ayuto
Fri Jun 12, 2020 11:44 am
Forum: Plugin Requests
Topic: (HL2DM) zombies
Replies: 14
Views: 1451

Re: (HL2DM) zombies

Actually, PluginInfo isn't supposed to be instantiated by plugins. It was in the past, but today it's generated in the background by SP: http://wiki.sourcepython.com/developing/module_tutorials/plugins.html#plugininfo This allows other plugins to retrieve the plugin information (even for plugins tha...
by Ayuto
Wed Jun 10, 2020 2:35 pm
Forum: Development Status Updates
Topic: Development status update (May 2020)
Replies: 0
Views: 850

Development status update (May 2020)

It's time for another development status update! ⋅ Fixes: ⋅  Fixed owner_handle ambiguity/issues. ⋅  Fixed issue #331. ⋅ Additions: ⋅  Added missing weapon data for CS:GO. ⋅  Added the ability to disable hooks. ⋅  Added Simplified...
by Ayuto
Tue Jun 09, 2020 8:12 am
Forum: API Design
Topic: Export ITempEntsSystem
Replies: 2
Views: 524

Re: Export ITempEntsSystem

A few years ago we already had exposed that class: https://github.com/Source-Python-Dev-Team/Source.Python/commit/a44d072d7aa5c7b20e9bff1d37e2354cb603e626#diff-211f8fc87cc69fee73c5e7703719ee9dL132-L171 I'm not fully sure anymore why we replaced it with the new system, but IIRC ITempEntsSystem doesn'...
by Ayuto
Mon Jun 08, 2020 6:54 am
Forum: General Discussion
Topic: [Q] More... MORE!
Replies: 10
Views: 1456

Re: [Q] More... MORE!

Screenshot_81.png Sooo... ( ͡° ͜ʖ ͡° ) This will be a good advertisement for those who are not on the Discord server for Source.Python? No, this is not good advertisment for Source.Python. You are distributing illegally leaked code and that's not what Source.Python stands for. You should better kee...
by Ayuto
Fri May 29, 2020 9:35 am
Forum: Plugin Releases
Topic: Quakesounds
Replies: 16
Views: 994

Re: Quakesounds

I guess I worked too much with another language lately (I also used the pipe (|) as a comment...) :rolleyes:
by Ayuto
Thu May 28, 2020 10:38 am
Forum: Plugin Releases
Topic: Quakesounds
Replies: 16
Views: 994

Re: Quakesounds

Can he test now? i made possible fix for headshot This won't really fix the issue in HL2DM. It now just uses a default value (0) if the key "headshot" wasn't found (HL2DM doesn't provide a headshot key in the event player_death). You need to check the player's last hitgroup: from events i...
by Ayuto
Thu May 14, 2020 8:36 pm
Forum: Plugin Development Support
Topic: [Q] Custom structures
Replies: 7
Views: 562

Re: [Q] Custom structures

Your PlayerInfoType class should be a subclass of CustomType and use the manager as the metaclass. If you also provide the size, you can then instantiate your PlayerInfoType class and internally memory is allocated automatically. I never had any stability issues with CustomType. Today I would have i...
by Ayuto
Thu May 14, 2020 9:26 am
Forum: Plugin Development Support
Topic: [Q] Custom structures
Replies: 7
Views: 562

Re: [Q] Custom structures

Try searching for CustomType here on the forums. There are a few examples. CustomType provides a few more features like automatically registering it as a return type, so you can easily use it with virtual functions and normal functions. Moreover, make_object and get_object_pointer will work on insta...

Go to advanced search