Search found 822 matches

by Ayuto
Sun Mar 12, 2017 10:33 am
Forum: Plugin Development Support
Topic: [CSGO] Problem with clan tag
Replies: 8
Views: 83

Re: [CSGO] Problem with clan tag

The clan tag issue will be fixed with the next version: https://github.com/Source-Python-Dev-Team/Source.Python/commit/63803b68a2d99b5ca9cc813e0e2142e87288cb60 Regarding the cookie question: i think you are looking for our settings module: http://wiki.sourcepython.com/developing/modules/settings.htm...
by Ayuto
Fri Mar 10, 2017 6:08 pm
Forum: Plugin Development Support
Topic: [TF2] Retrieving the amount of ammo in a gun
Replies: 6
Views: 104

Re: [TF2] Retrieving the amount of ammo in a gun

Could you please post the exception you get? Also, which weapon did you test?
by Ayuto
Tue Mar 07, 2017 6:39 pm
Forum: Development Status Updates
Topic: Development status update (February 2017)
Replies: 0
Views: 52

Development status update (February 2017)

It's time for another development status update! :smile: ⋅ Fixes: ⋅  Fixed issue #181. ⋅  Fixed weapon restriction. ⋅  Fixed a crash when passing the ConVar name as a keyword argument. ⋅  Fixed error when trying to build docs for a plugin. ⋅&nbs...
by Ayuto
Tue Feb 28, 2017 7:22 pm
Forum: Plugin Development Support
Topic: closing menus
Replies: 3
Views: 74

Re: closing menus

We don't use names for our menus, because that was quite annoying in ES and is actually redundant and not OOP. There are multiple ways to solve your issue: ⋅ Use a build callback instead of creating a new menu everytime in your function. ⋅ Use the caching you mentioned. That shou...
by Ayuto
Mon Feb 27, 2017 9:17 pm
Forum: Plugin Development Support
Topic: Error on take_damage
Replies: 10
Views: 122

Re: Error on take_damage

Oh yes my bad. If I precise attacker_index and weapon_index it should work ? But i don't understand the problem of index. Your "index" variable stores the index of a weapon of the attacker. Then you create a delay to deal damage to the victim using that index. But when the delay is execut...
by Ayuto
Mon Feb 27, 2017 8:17 pm
Forum: Plugin Development Support
Topic: Error on take_damage
Replies: 10
Views: 122

Re: Error on take_damage

The error is probably caused by these lines: Delay(1, victim.take_damage, (self._poison_damage, attacker.index, index)) Delay(2, victim.take_damage, (self._poison_damage, attacker.index, index)) Delay(3, victim.take_damage, (self._poison_damage, attacker.index...
by Ayuto
Mon Feb 27, 2017 7:41 pm
Forum: Plugin Development Support
Topic: closing menus
Replies: 3
Views: 74

Re: closing menus

This closes the active menu (if there is one) of a specific player. user_queue = PagedMenu.get_user_queue(<index>) if user_queue.active_menu is not None: user_queue.active_menu.close(<index>) Though, closing the active menu doesn't ensure that only one menu is opened/queued. There co...
by Ayuto
Sun Feb 26, 2017 1:17 pm
Forum: API Design
Topic: menu package
Replies: 1
Views: 77

Re: menu package

The reason why Back and Next are always shown is that it provides a constant appearance. If you whish to customize this behaviour, you can subclass PagedRadioMenu and implement your own _format_footer method: https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/addons/source-python/pa...
by Ayuto
Wed Feb 22, 2017 6:01 am
Forum: Plugin Requests
Topic: [HL2:DM] es_blood to sp blood
Replies: 39
Views: 791

Re: [HL2:DM] es_blood to sp blood

The error might occur, because he didn't follow the update guide.
by Ayuto
Tue Feb 21, 2017 8:26 pm
Forum: Plugin Development Support
Topic: Apply skin cause csgo game crash
Replies: 16
Views: 274

Re: Apply skin cause csgo game crash

Alright, just tested it and noticed that the client crashes. I thought you were talking about the server.
I will take a closer look at it tomorrow.

Since the server doesn't crash, it's correct that no debug.log is generated.
by Ayuto
Tue Feb 21, 2017 7:07 pm
Forum: Plugin Development Support
Topic: Apply skin cause csgo game crash
Replies: 16
Views: 274

Re: Apply skin cause csgo game crash

Could you please also disable MM, add -debug to your command line and test again? If that still crashes, please post the resulting debug.log. I will then do some tests on my own and get back to you.
by Ayuto
Tue Feb 21, 2017 7:03 pm
Forum: Plugin Development Support
Topic: [CSS] Get current round
Replies: 1
Views: 68

Re: [CSS] Get current round

Currently, there is no such function available, but you can simply sum the wins of all teams, which usually reflects the round count. from players.teams import team_managers from filters.entities import EntityIter def get_round_count(): return sum(entity.score for entity in EntityIter...
by Ayuto
Tue Feb 21, 2017 6:50 pm
Forum: Plugin Development Support
Topic: Apply skin cause csgo game crash
Replies: 16
Views: 274

Re: Apply skin cause csgo game crash

existenz wrote:Sp Info :
Date : 2017-02-21 18:25:36.446163
OS : Linux-3.16.0-4-amd64-x86_64-with-debian-8.7
Game : csgo
SP version : 552

What about the server plugins and SP plugins part?
by Ayuto
Tue Feb 21, 2017 5:36 pm
Forum: Plugin Development Support
Topic: Apply skin cause csgo game crash
Replies: 16
Views: 274

Re: Apply skin cause csgo game crash

Does your server crash if you use Mahi's code?
viewtopic.php?p=9856#p9856

Also, please post the output of "sp info".
by Ayuto
Mon Feb 20, 2017 9:03 pm
Forum: Plugin Requests
Topic: [ANY] Game Desc Override
Replies: 13
Views: 390

Re: [ANY] Game Desc Override

Ayuto wrote:Though, I just did a few tests and noticed that the description for the server browser is only retrieved once.

With a GetGameDescription hook, you can only set it once via autoexec.cfg.
by Ayuto
Mon Feb 20, 2017 6:47 pm
Forum: Plugin Development Support
Topic: Chat colors
Replies: 6
Views: 145

Re: Chat colors

You can send the colored message using SayText2 and then send the uncolored message via core.echo_console().
by Ayuto
Mon Feb 20, 2017 6:44 pm
Forum: Plugin Development Support
Topic: Modifying chat with sayfilter but SayCommand doesnt "register"
Replies: 73
Views: 2863

Re: Modifying chat with sayfilter but SayCommand doesnt "register"

viewtopic.php?p=7944#p7944

I have changed RecipientFilter to BaseRecipientFilter. That will probably fix the issue with SM.
by Ayuto
Sun Feb 19, 2017 1:42 pm
Forum: Plugin Development Support
Topic: Check buttons and boost
Replies: 3
Views: 115

Re: Check buttons and boost

The problem is that the bhop plugin removes the PlayerButtons.JUMP flag, so cmd.buttons & PlayerButtons.JUMP will never evaluate to True. If you want to update your plugin, just update the main post and (if you want) add a new reply to the thread to notify that your plugin has been updated. Also...
by Ayuto
Sat Feb 18, 2017 10:46 pm
Forum: Plugin Development Support
Topic: Check buttons and boost
Replies: 3
Views: 115

Re: Check buttons and boost

To check whether the player is holding down the jump button, you can use this snippet: if cmd.buttons & PlayerButtons.JUMP: # Player holds down +jump To push a player, you can use Player.push : # Push the player upwards player.push(0, 300, True) Edit a small Python hint: Instead of doing...
by Ayuto
Sat Feb 18, 2017 10:14 pm
Forum: Plugin Development Support
Topic: Disabling game specific sounds
Replies: 1
Views: 113

Re: Disabling game specific sounds

I think you can hook and prevent playing certain sounds by hooking the virtual functions EmitSound, EmitSentenceByIndex and EmitAmbientSound. They are part of the IEngineSound class.

Go to advanced search