Search found 542 matches

by BackRaw
Wed Dec 20, 2017 10:40 pm
Forum: Plugin Development Support
Topic: @staticmethod question
Replies: 3
Views: 3383

Re: @staticmethod question

I like your way of approaching this, thanks.
by BackRaw
Thu Dec 14, 2017 9:16 am
Forum: Plugin Development Support
Topic: @staticmethod question
Replies: 3
Views: 3383

@staticmethod question

Hi, I have the following example class: class MyClass(object): # ... some instance methods ... @staticmethod def my_static_method(value): return value * 5 # Global instance for the class my_class = MyClass() # ... # Since it's a static method, it should be called like thi...
by BackRaw
Wed Dec 13, 2017 6:36 am
Forum: Plugin Development Support
Topic: How to use PlayerAnimation.RELOAD?
Replies: 22
Views: 70109

Re: How to use PlayerAnimation.RELOAD?

Ayuto wrote:I just stumbled about our last discussion about infinite ammo:
viewtopic.php?p=7838#p7838

Why don't you use the RemoveAmmo hook?

Whoops I totally forgot about that post. I'll look into it, thanks for the reminder!

Edit: Sorry for double posting.
by BackRaw
Mon Dec 11, 2017 4:15 am
Forum: Plugin Releases
Topic: Ultimate Deathmatch v1.9.2
Replies: 26
Views: 53525

Re: Ultimate Deathmatch v1.8.3

UDM v1.8.3 released! Download link: https://github.com/backraw/udm/releases/tag/v1.8.3 Additions ⋅ Add attaching/detaching the silencer when the player is in random mode Removals ⋅ Remove team only noblock mode for performance reasons (CS:S) Fixes ⋅ Replace an unplease...
by BackRaw
Thu Dec 07, 2017 8:26 pm
Forum: Plugin Development Support
Topic: Submenus
Replies: 11
Views: 8540

Re: Submenus

Ayuto wrote:No, everything is fine. Since a few months we have to update it manually.

Good to know thanks.
by BackRaw
Thu Dec 07, 2017 4:50 am
Forum: Plugin Development Support
Topic: Submenus
Replies: 11
Views: 8540

Re: Submenus

I have noticed that the Wiki didn't get updated with the close_callback API documentation (http://wiki.sourcepython.com/developing ... radio.html). Is that my fault or is it compiled separately from the plugin builds (build bot)?
by BackRaw
Wed Dec 06, 2017 10:26 am
Forum: Plugin Development Support
Topic: Way to reverse the spawn?
Replies: 11
Views: 12919

Re: Way to reverse the spawn?

You can also look at the bump_weapon hook of my Ultimate Deathmatch plugin : https://github.com/backraw/udm/blob/master/addons/source-python/plugins/udm/udm.py#L282 It basically blocks bumping into a weapon if the player is using the admin menu or if the player didn't choose the weapon as an invento...
by BackRaw
Tue Dec 05, 2017 8:34 pm
Forum: Plugin Releases
Topic: Ultimate Deathmatch v1.9.2
Replies: 26
Views: 53525

Re: Ultimate Deathmatch v1.8.2

UDM v1.8.2 released!
Download link: https://github.com/backraw/udm/releases/tag/v1.8.2

Fixes
by BackRaw
Tue Dec 05, 2017 6:48 pm
Forum: Plugin Development Support
Topic: Way to reverse the spawn?
Replies: 11
Views: 12919

Re: Way to reverse the spawn?

hhhmm.. maybe stack[0] and stack[1] are not always of the same type? Like, sometimes they are swapped. I'm not sure though.
by BackRaw
Tue Dec 05, 2017 1:24 am
Forum: Plugin Releases
Topic: Ultimate Deathmatch v1.9.2
Replies: 26
Views: 53525

Re: Ultimate Deathmatch v1.8.1

UDM v1.8.1 released! Download link: https://github.com/backraw/udm/releases/tag/v1.8.1 Changes ⋅ Each player has their own personal spawn points, so they should never spawn on the same location twice ⋅ Each player has their own personal random weapons list, so they should never ...
by BackRaw
Tue Dec 05, 2017 12:48 am
Forum: Plugin Releases
Topic: GunGame v1.3.2
Replies: 46
Views: 69271

Re: GunGame v1.1.1

Do you have access to the server other than ftp? If so, you might try some of the suggestions here: https://stackoverflow.com/questions/2740806/python-sqlite-database-is-locked If you only have ftp access, I'm not sure what else you could do other than contact your GSP and ask them to look into it....
by BackRaw
Mon Dec 04, 2017 11:15 pm
Forum: Plugin Releases
Topic: GunGame v1.3.2
Replies: 46
Views: 69271

Re: GunGame v1.1.1

I can't load the plugin :frown: sp plugin reload gungame [SP] Unloading plugin 'gungame'... [SP] Unable to unload plugin 'gungame' as it is not currently loaded. [SP] Loading plugin 'gungame'... [SP] Caught an Exception: Traceback (most recent call last): File "../addons/source-python/packages/...
by BackRaw
Mon Dec 04, 2017 9:49 pm
Forum: Plugin Releases
Topic: Ultimate Deathmatch v1.9.2
Replies: 26
Views: 53525

Re: Ultimate Deathmatch v1.8

UDM v1.8 released! Download link: https://github.com/backraw/udm/releases/tag/v1.8 Changes ⋅ Require Source.Python Build #622 ⋅  Dropping a weapon on purpose will remove it from the player's inventory, closing a weapon menu will not. Dropping all weapons will trigger random mode...
by BackRaw
Mon Dec 04, 2017 3:45 am
Forum: Code examples / Cookbook
Topic: Stripping weapons
Replies: 45
Views: 110821

Re: Stripping weapons

Does the player_weaponstrip entity has any benefits over calling weapon.remove() ? What about iterating over the player's weapons and calling .remove() each time? Or is it just that the weapon filters are more flexible? No, iterating over the player's weapons and removing them is pe...
by BackRaw
Mon Dec 04, 2017 1:09 am
Forum: Plugin Development Support
Topic: Submenus
Replies: 11
Views: 8540

Re: Submenus

Ayuto wrote:I would only call it when the button has been pressed.

Done! :D
by BackRaw
Sun Dec 03, 2017 8:22 pm
Forum: Plugin Development Support
Topic: Submenus
Replies: 11
Views: 8540

Re: Submenus

Should it only be called when a player closes the menu or when menu._close() is called on unload and so on as well?
by BackRaw
Sun Dec 03, 2017 8:16 pm
Forum: Plugin Development Support
Topic: Submenus
Replies: 11
Views: 8540

Re: Submenus

I'm on it!
by BackRaw
Sun Dec 03, 2017 8:09 pm
Forum: Code examples / Cookbook
Topic: Stripping weapons
Replies: 45
Views: 110821

Re: Stripping weapons

Does the player_weaponstrip entity has any benefits over calling weapon.remove()? What about iterating over the player's weapons and calling .remove() each time? Or is it just that the weapon filters are more flexible?
by BackRaw
Sun Dec 03, 2017 8:02 pm
Forum: Plugin Development Support
Topic: Submenus
Replies: 11
Views: 8540

Re: Submenus

Another question:wouldn't it be better to have a register_close_callback included as well? I can override _select(), but I figure it would be better for SP to provide the mechanism.
by BackRaw
Sun Dec 03, 2017 7:59 pm
Forum: Plugin Development Support
Topic: Submenus
Replies: 11
Views: 8540

Re: Submenus

Oh so I'm doing it the correct way. Thank you :D

Go to advanced search