Search found 241 matches

by Mahi
Tue Jun 21, 2016 11:21 am
Forum: Plugin Releases
Topic: RPG:GO
Replies: 5
Views: 6707

Re: RPG:GO

Thanks for your kind words! As mentioned, the plugin is still in alpha and some features are missing. But don't worry, there will be a configurable XP algorithm one day! As a matter of fact, I'll go ahead right away and see what I can do :) And thanks for the bug report! I'll try to fix it asap. Edi...
by Mahi
Tue Jun 21, 2016 7:21 am
Forum: Plugin Releases
Topic: RPG:GO
Replies: 5
Views: 6707

RPG:GO

It's an RPG plugin for Source.Python. Read the GitHub page for up-to-date info, instructions, download, etc: https://github.com/Mahi/RPG-SP

Still in alpha, so some features (especially skills) are missing, and it's probably not 100% bug free.
by Mahi
Fri Jun 03, 2016 8:27 pm
Forum: Development Status Updates
Topic: Development status update (May 2016)
Replies: 1
Views: 3917

Re: Development status update (May 2016)

Really nice job with the new features and all. Gotta love it :P
by Mahi
Sat May 28, 2016 1:43 pm
Forum: Plugin Development Support
Topic: OnWeaponReloaded listener?
Replies: 35
Views: 24661

Re: OnWeaponReloaded listener?

Player.from_userid()? Seems like I can reject my oen implementation for this lol :D They took away one of the key selling points of my EasyPlayer :( https://github.com/Mahi/EasyPlayer/commit/896c3e6eca441bf51743a24653da8227c9f060b1 But seriously, it's awesome they included it. Makes everything just...
by Mahi
Thu May 19, 2016 9:53 am
Forum: Custom Packages
Topic: SpamProofCommands
Replies: 4
Views: 21060

Re: SpamProofCommands

Yeah command.py seems like a good idea since you're mimicing SP's commands package. And thus leave the __init__.py empty. As far as I understand (without super in-depth familiarization to the translations package), the LangStrings class uses dict's normal __getitem__ so there's nothing done with cl_...
by Mahi
Thu May 19, 2016 9:31 am
Forum: Custom Packages
Topic: SpamProofCommands
Replies: 4
Views: 21060

Re: SpamProofCommands

Good idea and package iPlayer, nice job! There are a few improvements I'd make though. First of all, you seem to define a common base class in the __init__.py which is then used in the other files of your package. This is rather bad practice, as __init__.py should contain as little as possible. It's...
by Mahi
Sun May 15, 2016 10:45 am
Forum: Plugin Releases
Topic: Bank
Replies: 2
Views: 4348

Re: Bank

I believe it's called interest rate, and yeah that's a really good idea!! The current "missing features" section is my priority at the moment with this plugin, but I'll make sure to add interest rate too! Really good suggestion, thanks! :)
by Mahi
Fri May 13, 2016 11:01 am
Forum: Plugin Releases
Topic: Bank
Replies: 2
Views: 4348

Bank

Mahi's Bank Plugin A simple bank plugin with deposit and withdraw features. Notice that this plugin is still in alpha, and although fully functional, it might contain bugs and many important features are still being worked on. Installation Instructions Go to https://github.com/Mahi/SP-Bank and pres...
by Mahi
Fri Mar 25, 2016 9:30 am
Forum: Plugin Development Support
Topic: [CS:GO] Make Warmup last until stopped by SP
Replies: 7
Views: 5794

You can just use the server command

Code: Select all

mp_warmup_pausetimer 1
to pause the timer and get the result in your second image.

Once you wish to unpause, just set it back to zero, and optionally, end the warmup immediately

Code: Select all

mp_warmup_pausetimer 0
mp_warmup_end
by Mahi
Fri Mar 25, 2016 9:26 am
Forum: Plugin Development Support
Topic: [CS:GO] Make Warmup last until stopped by SP
Replies: 7
Views: 5794

You can just use "mp_warmup_pausetimer 1" to get the second image. Once you want to quit (f.e. on saycommand or similar) the warmup, you do "mp_warmup_pausetimer 0"
by Mahi
Mon Mar 14, 2016 12:37 pm
Forum: News & Announcements
Topic: Weapon Restrictions
Replies: 7
Views: 22611

Looks nice! Just one question, how do the weapon restriction handlers interact between two addons? Can one addon's handler automatically see what the other plugins have restricted?
by Mahi
Mon Mar 07, 2016 4:24 am
Forum: News & Announcements
Topic: Python upgrade to 3.5.1 and Blade Symphony support!
Replies: 1
Views: 15448

Please let us know if you have any issues!
My head hurts from the amount of excitement.
by Mahi
Mon Dec 14, 2015 7:59 pm
Forum: Plugin Requests
Topic: Snowfall for Black Mesa
Replies: 29
Views: 21499

L'In20Cible wrote:I think I would rather recommend using:

Syntax: Select all

from entities.constants import WORLD_ENTITY_INDEX

@OnLevelInit
def level_init(map_name):
worldspawn = Entity(WORLD_ENTITY_INDEX)
And even if WORLD_ENTITY_INDEX didn't exist, I'd say using next() is much more Pythonic than for: break
by Mahi
Mon Dec 14, 2015 10:52 am
Forum: Plugin Development Support
Topic: drawing box
Replies: 2
Views: 2836

New wiki link: http://build.affecta.net/job/Source.Python%20-%20Documentation/lastSuccessfulBuild/artifact/cstrike/addons/source-python/docs/source-python/build/modules/effects.html#effects.box This is totally off topic, but oh my god I love the new wiki so much! You guys made a great decision!
by Mahi
Sat Dec 05, 2015 3:49 pm
Forum: Plugin Releases
Topic: Warcraft: GO
Replies: 3
Views: 5829

Warcraft: GO

Warcraft: GO is a plugin developed by me and Predz with the "perfect" Warcraft plugin in mind. We've seen dozens of Warcraft plugins (WCS probably being the most known one) during the years of CS:S and CS:GO, but thanks to Source.Python developement team we now have access to Source engine through a...
by Mahi
Fri Dec 04, 2015 8:37 pm
Forum: Plugin Development Support
Topic: TF2 team indexes and names for is_filters and not_filters
Replies: 2
Views: 2828

Weird, GitHub search didn't display it, now does though... Thanks anyways!
by Mahi
Fri Dec 04, 2015 7:29 pm
Forum: Plugin Development Support
Topic: TF2 team indexes and names for is_filters and not_filters
Replies: 2
Views: 2828

TF2 team indexes and names for is_filters and not_filters

In CS:S and CS:GO the teams are indexed and named like so:

Code: Select all

0. un
1. spec
2. t
3. ct

What about TF2? I'd expect them to be

Code: Select all

0. un
1. spec
2. red
3. blue
But is it blu or blue? And which is first, red or blu/blue?
by Mahi
Thu Nov 26, 2015 12:28 pm
Forum: API Design
Topic: Store AutoUnload instances instead of going through modules?
Replies: 4
Views: 13213

Yeah I know I made a mistake in my program, I'm not even remotely trying to blame this on you guys. I don't think I want to merge the two functions (is there any upside of doing so?) and I will change the database module quite a lot in the near future, so I'll keep your third option in mind when I d...
by Mahi
Wed Nov 25, 2015 11:06 pm
Forum: API Design
Topic: Store AutoUnload instances instead of going through modules?
Replies: 4
Views: 13213

Store AutoUnload instances instead of going through modules?

Due to a recent bug I had I started thinking about why AutoUnload works the way it does. Wouldn't it be much better to store all the instances of AutoUnload classes into lists or dicts, and then loop through the iterable when the plugin is unloaded, instead of going through the dir() of the modules?
by Mahi
Wed Nov 25, 2015 10:50 pm
Forum: Plugin Development Support
Topic: Database connection closed in unload(), still closed after the next load()
Replies: 2
Views: 2862

Solved! The issue was caused because I had two functions with the same name, and apparently AutoUnload unloads things by looping over the names in modules. I wasn't aware of this and thought it registers every callback into a list and then loops through that list to unload them (why doesn't it do it...

Go to advanced search