Search found 487 matches

by BackRaw
Sat Jan 13, 2018 9:10 pm
Forum: Plugin Development Support
Topic: CS:S send Buy Menu anytime/anywhere
Replies: 4
Views: 84

Re: CS:S send Buy Menu anytime/anywhere

Haha okay. Maybe I'll leave it for now. :D
by BackRaw
Sat Jan 13, 2018 7:35 am
Forum: Plugin Development Support
Topic: CS:S send Buy Menu anytime/anywhere
Replies: 4
Views: 84

Re: CS:S send Buy Menu anytime/anywhere

I tried two things: ⋅ Modify the existing buyzones (make them bigger). ⋅ Create new buyzones. Unfortunately, both didn't work, so here is the hacky solution: import memory from entities.hooks import EntityPreHook from entities.hooks import EntityCondition from entities.entity im...
by BackRaw
Thu Jan 11, 2018 12:27 pm
Forum: Plugin Development Support
Topic: CS:S send Buy Menu anytime/anywhere
Replies: 4
Views: 84

CS:S send Buy Menu anytime/anywhere

Hi, I have a question about the the buy menu in CS:S. I want to simulate the behavior of mp_buy_anywhere for CS:GO. As I see it, those two things contribute to how buying is restricted by time/position in CS:S: ⋅  mp_buytime ⋅ "Range" of each of the func_buyzone entitie...
by BackRaw
Fri Jan 05, 2018 4:07 am
Forum: Plugin Releases
Topic: Ultimate Deathmatch v1.8.5
Replies: 23
Views: 651

Re: Ultimate Deathmatch v1.8.5

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

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

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: 103

@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: 429

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.8.5
Replies: 23
Views: 651

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: 218

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: 218

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: 237

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.8.5
Replies: 23
Views: 651

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: 237

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.8.5
Replies: 23
Views: 651

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.1.1
Replies: 27
Views: 834

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.1.1
Replies: 27
Views: 834

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.8.5
Replies: 23
Views: 651

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: 9020

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: 218

Re: Submenus

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

Done! :D

Go to advanced search