Search found 1057 matches

by Ayuto
Sun May 20, 2018 6:18 am
Forum: Plugin Development Support
Topic: SP's update changes
Replies: 8
Views: 67

Re: SP's update changes

No, there is no issue. Everything works as intended. Even in C++ it would lead to an error when compiling your code if you pass a Vector instance to a function that requires a QAngle instance. You would need to type cast the Vector instance to QAngle before doing that.
by Ayuto
Sat May 19, 2018 4:45 am
Forum: Plugin Development Support
Topic: Some help with CustomType
Replies: 3
Views: 41

Re: Some help with CustomType

Yes, that's the proper way. For m_iMapHasVIPSafetyZone you can also use manager.instance_attribute.

Edit: The calling convenient is wrong. It's a THISCALL. Right now it will only work on Linux, because THISCALL and CDECL are the same on Linux.
by Ayuto
Thu May 17, 2018 7:23 pm
Forum: General Discussion
Topic: Cyrillic characters(Eventscripts Emulator)
Replies: 1
Views: 87

Re: Cyrillic characters(Eventscripts Emulator)

Should be fixed now: https://github.com/Ayuto/EventScripts-Emulator/commit/e8275f4c6dd9ebd6ee11d5bc10cfc7bbee5bf091 Next time please search for an existing issue at first: https://github.com/Ayuto/EventScripts-Emulator/issues After you created a new issue for that, I linked it to the original report...
by Ayuto
Thu May 17, 2018 6:28 pm
Forum: Plugin Development Support
Topic: How to block money award?
Replies: 6
Views: 66

Re: How to block money award?

Before doing that I would also try setting these two variables to 0:
  • mp_playercashawards
  • mp_teamcashawards
by Ayuto
Tue May 15, 2018 5:25 pm
Forum: Whatever
Topic: This is fantastic
Replies: 1
Views: 53

Re: This is fantastic

Thank you for that great feedback! Our documentation is indeed far away from being perfect/complete. If you are interested you can easily help us. :tongue:
http://wiki.sourcepython.com/contributi ... o-the-wiki
by Ayuto
Tue May 15, 2018 5:04 pm
Forum: General Discussion
Topic: SourceMod interop
Replies: 16
Views: 672

Re: SourceMod interop

You only need to declare your functions with extern "C". Then you can retrieve them with the memory module using their actual names. This might help you:
viewtopic.php?f=20&t=1206&p=7848#p7848
by Ayuto
Mon May 14, 2018 1:57 pm
Forum: Plugin Development Support
Topic: Restart match. Interaction with websockets.
Replies: 1
Views: 47

Re: Restart match. Interaction with websockets.

You need to create a new thread for that. Ideally, you use our GameThread class. It's a subclass of threading.Thread with a little addition that prints a warning if your plugin is unloaded while the thread is still running.
by Ayuto
Wed May 09, 2018 8:30 pm
Forum: General Discussion
Topic: Request IP from Server
Replies: 2
Views: 82

Re: Request IP from Server

Steam has nothing to do with that. Are you sure the IPv4 address isn't the same like the IPv6 address?
by Ayuto
Thu May 03, 2018 2:53 pm
Forum: Plugin Development Support
Topic: PagedMenu append but do not increment number
Replies: 6
Views: 136

Re: PagedMenu append but do not increment number

Well, then you just need to add a single line: class PagedMenuHdr(PagedRadioMenu): def _format_header(self, player_index, page, slots): buffer = super()._format_header(player_index, page, slots) if page.index == 0: buffer += 'Some info\nMoreInfo\n' return buff...
by Ayuto
Thu May 03, 2018 2:04 pm
Forum: Plugin Development Support
Topic: PagedMenu append but do not increment number
Replies: 6
Views: 136

Re: PagedMenu append but do not increment number

You need to implement that on your own by subclassing PagedRadioMenu. This is how you would do that: from menus.radio import PagedRadioMenu from menus.radio import PagedRadioOption as PagedOption from commands.typed import TypedSayCommand class PagedMenuHdr(PagedRadioMenu): def _format_heade...
by Ayuto
Thu May 03, 2018 7:54 am
Forum: Plugin Development Support
Topic: PagedMenu append but do not increment number
Replies: 6
Views: 136

Re: PagedMenu append but do not increment number

There is the description attribute. It will display a text between the menu title and the first separator.
by Ayuto
Wed May 02, 2018 5:33 pm
Forum: Development Status Updates
Topic: Development status update (April 2018)
Replies: 0
Views: 66

Development status update (April 2018)

It's time for another development status update! :smile: ⋅ Fixes: ⋅  Fixed issue #245. ⋅ Additions: ⋅ Removals: ⋅ Changes: ⋅  Source.Python will now stop loading if update stage 2 fails. ⋅  Reorganized update functions (plus fixes...
by Ayuto
Sun Apr 29, 2018 8:15 pm
Forum: Plugin Development Support
Topic: How to get map info
Replies: 6
Views: 140

Re: How to get map info

No, it's a class and by doing Entity(<index>) you call the constructor of the Entity class to create an instance of it.
by Ayuto
Sun Apr 29, 2018 2:35 pm
Forum: Plugin Development Support
Topic: Disabling game specific sounds
Replies: 13
Views: 696

Re: Disabling game specific sounds

Sorry, for the delay. Unfortunately, I'm unable to disable these sounds by hooking the sound sending function. I also just saw that L'In20Cible already said that most sounds are predicted by the client. That's why blocking it from the server doesn't help.
by Ayuto
Fri Apr 27, 2018 2:38 pm
Forum: General Discussion
Topic: installation problem-Encountered a Warning:
Replies: 4
Views: 146

Re: installation problem-Encountered a Warning:

It was also working fine with that warning (which only appears once). The errors you get aren't caused by SP, but the server itself.
by Ayuto
Thu Apr 26, 2018 3:57 pm
Forum: Whatever
Topic: Synergy
Replies: 5
Views: 838

Re: Synergy

It certainly could be supported if there is enough demand.
by Ayuto
Tue Apr 24, 2018 4:16 pm
Forum: Plugin Development Support
Topic: Fading TempEntity
Replies: 6
Views: 196

Re: Fading TempEntity

I would still try to reduce the beam duration. Just to test it.
by Ayuto
Tue Apr 24, 2018 3:28 pm
Forum: Plugin Development Support
Topic: Fading TempEntity
Replies: 6
Views: 196

Re: Fading TempEntity

To me it looks like the beam duration takes longer than the animation duration. So, after the animation finished, it's restarted.
by Ayuto
Tue Apr 24, 2018 5:35 am
Forum: Plugin Development Support
Topic: [CS:GO] Prevent team switch event
Replies: 3
Views: 105

Re: [CS:GO] Prevent team switch event

Well, the event is blocked, but that doesn't change the actual team change. To do so you need to block the client commands jointeam and joinclass.
by Ayuto
Mon Apr 23, 2018 7:23 pm
Forum: Plugin Development Support
Topic: trigger creation
Replies: 4
Views: 234

Re: trigger creation

No, it's not a bug in SP and I think it makes completely makes sense to spawn it after everything of the entity has been initialized. SM's ActivateEntity is calling a virtual function, which requires additional data, which I would like to avoid. You might be able to achieve the same by calling the i...

Go to advanced search