Search found 1413 matches

by Ayuto
Wed May 27, 2015 7:49 pm
Forum: Plugin Development Support
Topic: point_hurt: cs go
Replies: 28
Views: 17820

Oh, you right. I just checked the code. Well, in that case it would be quite easy to get rid of this problem. We could also update our take_damage() method so that it takes an additional keyword. E.g. try_trampoline=True. Our take_damage() method would then look like this. def take_damage( self,...
by Ayuto
Wed May 27, 2015 7:06 pm
Forum: Plugin Development Support
Topic: point_hurt: cs go
Replies: 28
Views: 17820

To call the original function within a hook, we have added a call_trampoline() method. Though, that will probably not help in this particular case, because we are hooking OnTakeDamage, but calling TakeDamage. : /
by Ayuto
Wed May 27, 2015 3:32 pm
Forum: Plugin Development Support
Topic: Get Attackerweapon from TakeDamageInfo
Replies: 21
Views: 11914

Yeah, but they are not included in the latest release.
satoon101 wrote:Those 2 classes are not included in the latest release.
by Ayuto
Wed May 27, 2015 3:11 pm
Forum: Plugin Development Support
Topic: Get Attackerweapon from TakeDamageInfo
Replies: 21
Views: 11914

If you are getting the ImportError, you probably didn't update your Python files.
by Ayuto
Tue May 26, 2015 7:23 pm
Forum: Plugin Development Support
Topic: Changing player speed
Replies: 3
Views: 2961

Actually it's working fine for me. On which game did you test that and did you update your SP files? from players.entity import PlayerEntity from players.helpers import index_from_userid from events import Event @Event def player_jump(event): userid = event.get_int('userid') ...
by Ayuto
Tue May 26, 2015 5:40 am
Forum: Plugin Development Support
Topic: Class attributes as Dictionary keys and values
Replies: 4
Views: 3318

That's not the full traceback. However, you have to call super().__init__().
by Ayuto
Sun May 24, 2015 6:10 pm
Forum: Plugin Development Support
Topic: Property 'm_Effects' not found for entity type 'player'
Replies: 8
Views: 5186

Do you perhaps mean "m_fEffects"? Though, that is accessible through <Entity object>.effects.
by Ayuto
Sat May 23, 2015 4:57 pm
Forum: Plugin Development Support
Topic: How to check if warmup is running?
Replies: 5
Views: 3821

You could write another plugin that unloads your plugin when warmup has started and loads it again if warmup is over.
by Ayuto
Sat May 23, 2015 2:00 pm
Forum: Plugin Development Support
Topic: How to check if warmup is running?
Replies: 5
Views: 3821

I guess this event gets fired if the warmup starts. http://wiki.sourcepython.com/pages/Event-csgo:round_announce_warmup And this event is probably called when the warmup ends and the actual match starts. http://wiki.sourcepython.com/pages/Event-csgo:round_announce_match_start
by Ayuto
Sat May 23, 2015 10:52 am
Forum: Plugin Development Support
Topic: How to reset the player's sound to normal on player_blind?
Replies: 55
Views: 29070

Yep, it does. :)
by Ayuto
Sat May 23, 2015 7:07 am
Forum: Plugin Development Support
Topic: How to reset the player's sound to normal on player_blind?
Replies: 55
Views: 29070

BackRaw wrote:I guess that's a Windows signature, my Linux server can't find it. :(

Yes, this extra work is only required for CS:GO on Windows (if you want to access the argument).
by Ayuto
Fri May 22, 2015 6:50 pm
Forum: Plugin Development Support
Topic: [BMS] r_screenoverlay not working
Replies: 7
Views: 5841

Yep, that's correct!
by Ayuto
Fri May 22, 2015 6:29 pm
Forum: Plugin Development Support
Topic: [BMS] r_screenoverlay not working
Replies: 7
Views: 5841

r_screenoverlay is a client variable/command. That's why you don't find it via cvar.find_var().

For now I would also just enable sv_cheats and then disable it.
by Ayuto
Fri May 22, 2015 5:48 pm
Forum: Plugin Development Support
Topic: How to reset the player's sound to normal on player_blind?
Replies: 55
Views: 29070

In that case the hook will be initialized everytime deafen.set_player() will be called. PreHook should only be used at the global scope, because it's a sublcass of AutoUnload and all objects of this class only get properly unloaded if they are at the global scope. However, we haven't changed hooking...
by Ayuto
Fri May 22, 2015 5:00 pm
Forum: News & Announcements
Topic: A new release! (May 19, 2015)
Replies: 23
Views: 52617

Try updating your server. There was an update, which didn't cause an update message.
by Ayuto
Thu May 21, 2015 3:00 pm
Forum: Plugin Releases
Topic: EZSP - Libary to easily access SP modules & functions
Replies: 11
Views: 12029

I have re-read this thread and I don't have the impression that this conversation was impolite. Suggestions on how to improve his wrapper have been made, but it was also said that it might not be a good coding practice. Wrapper usually simplify complex functions/classes, but writing wrappers, which ...
by Ayuto
Wed May 20, 2015 3:56 pm
Forum: News & Announcements
Topic: A new release! (May 19, 2015)
Replies: 23
Views: 52617

You have to call the __init__ method of the base class at the top of your __init__ method. Otherwise it's not initialized at that point.
by Ayuto
Wed May 20, 2015 6:44 am
Forum: News & Announcements
Topic: A new release! (May 19, 2015)
Replies: 23
Views: 52617

Try running it on a server and make sure it is up-to-date.

Go to advanced search