Search found 1554 matches

by satoon101
Thu Jan 11, 2018 10:37 pm
Forum: Plugin Development Support
Topic: TypedSayCommand after unloading/loading plugin
Replies: 6
Views: 86

Re: TypedSayCommand after unloading/loading plugin

I have, say, test.py. Skipping imports, the code is: @TypedSayCommand('!myteam') def cmd_on_myteam(command_info): print('Showing team') player = Player(command_info.index) SayText2(f"Team is {player.team}").send(player.index)...
by satoon101
Thu Jan 11, 2018 10:31 pm
Forum: General Discussion
Topic: [Source.Python] Loading... and nothing more
Replies: 4
Views: 119

Re: [Source.Python] Loading... and nothing more

It almost seems like a permissions issue to me. Your original reply contained this error: FileNotFoundError: [Errno 2] No such file or directory: Path('/mnt/softraid/games/server3705/game/csgo/cfg/source-python/auth/players.json') SP writes that file if it doesn't exist. So, for it to then not be th...
by satoon101
Thu Jan 04, 2018 11:54 pm
Forum: Plugin Releases
Topic: GunGame v1.1.1
Replies: 27
Views: 847

Re: GunGame v1.1.1

Last night I had the chance to test it on CS:S. It worked very well. Well done! I meant to say this last time, but I was on mobile since I was visiting family for the holidays: Thank you! Only one thing was a little bit confusing. The default weapon order contains smokegrenade and flashbang. Should...
by satoon101
Sat Dec 30, 2017 1:07 pm
Forum: Plugin Releases
Topic: GunGame v1.1.1
Replies: 27
Views: 847

Re: GunGame v1.1.1

I created GG-ProjectileKills to handle the one hit kills.
by satoon101
Sun Dec 24, 2017 2:08 pm
Forum: Plugin Requests
Topic: [HL2:DM] Spawn a Christmas Tree
Replies: 9
Views: 169

Re: [HL2:DM] Spawn a Christmas Tree

It could also be that you haven't set up your authorization, as the above plugin uses SP's authorization instead of a list of SteamIDs directly written into the plugin:
http://wiki.sourcepython.com/general/config-auth.html
by satoon101
Wed Dec 20, 2017 9:02 pm
Forum: Plugin Requests
Topic: [HL2:DM] Spawn a Christmas Tree
Replies: 9
Views: 169

Re: [HL2:DM] Spawn a Christmas Tree

Since this is for HL2:DM, round_start will need to be changed to OnLevelInit or another listener that fires when the map starts.
by satoon101
Thu Dec 14, 2017 10:30 pm
Forum: Plugin Development Support
Topic: @staticmethod question
Replies: 3
Views: 105

Re: @staticmethod question

I would also like to amend my previous response to say that if it is a "classmethod", then this statement would be true (replacing static with class in both instances):

Syntax: Select all

# Since it's a static method, it should be called like this:
fifty = MyClass.my_static_method(10)
by satoon101
Thu Dec 14, 2017 9:55 am
Forum: Plugin Development Support
Topic: @staticmethod question
Replies: 3
Views: 105

Re: @staticmethod question

I actually prefer the 2nd method. When calling static methods from within your class itself, which of these do you use: class MyClass(object): def some_method(self): # From the instance value = self.my_static_method(4) # From the class value = MyClass.my_static_method(4&#...
by satoon101
Fri Dec 08, 2017 11:10 pm
Forum: Plugin Releases
Topic: [ANY] Country tag
Replies: 22
Views: 1172

Re: [ANY] Country tag

I went ahead and created a pull request, because existenz hasn't been on in a few months and probably won't see this post.
by satoon101
Fri Dec 08, 2017 5:08 pm
Forum: Plugin Releases
Topic: Dissolver v1.3
Replies: 23
Views: 1920

Re: Dissolver v1.3

Thank you! I will say that I much more prefer Pull Requests. If you do a larger one (like GunGame), please use that method instead.
by satoon101
Mon Dec 04, 2017 11:27 pm
Forum: Plugin Releases
Topic: GunGame v1.1.1
Replies: 27
Views: 847

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/274 ... -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 satoon101
Mon Dec 04, 2017 3:07 am
Forum: Code examples / Cookbook
Topic: Stripping weapons
Replies: 45
Views: 9033

Re: Stripping weapons

You should probably call drop_weapon() prior remove() tho so the weapons are no longer mapped in the m_hMyWeapons array for that player. Don't forget, as long as you are using Weapon instances, it will do the drop automatically: https://github.com/Source-Python-Dev-Team/Source.Python/commit/3817074...
by satoon101
Sun Dec 03, 2017 4:39 am
Forum: Plugin Releases
Topic: Parachute v0.03!
Replies: 38
Views: 4631

Re: Parachute v0.02!

That works!

I'm having an issue with my server when it comes to models, so it just shows the big red error, but it does work. The model error has nothing to do with this plugin, so if I can't figure it out, I'll start a new thread.

Thank you!
by satoon101
Sun Dec 03, 2017 2:39 am
Forum: Plugin Releases
Topic: Parachute v0.03!
Replies: 38
Views: 4631

Re: Parachute v0.02!

L'In20Cible wrote:Hmm. What if you move it after the spawn() call?

When I did that, it crashed on setting the model. I moved both down, and it crashed on either of those 2 depending on the order I had them after spawn().
by satoon101
Sun Dec 03, 2017 1:42 am
Forum: Plugin Releases
Topic: Parachute v0.03!
Replies: 38
Views: 4631

Re: Parachute v0.02!

Interesting. Does the Entity.set_parent call itself crash on Linux, or only when you parent to a carried weapon? I use Entity.set_parent in multi_level , and that seems to function correctly. Does the following also crashes? parachute.call_input('SetParent', '!activator', activa...
by satoon101
Sat Dec 02, 2017 7:02 pm
Forum: Plugin Releases
Topic: GG-ProjectileKills v1.0.1
Replies: 4
Views: 164

Re: GG-ProjectileKills v1.0.1

I still let the flashes flash and smokes smoke as part of the game on my server. I will probably install Anti-TeamFlash for certain team gamemodes at some point.

*Edit: and no, I don't really have plans to add anything to disable flash/smoke that's specific to GunGame.
by satoon101
Sat Dec 02, 2017 6:55 pm
Forum: Plugin Releases
Topic: Parachute v0.03!
Replies: 38
Views: 4631

Re: Parachute v0.02!

This works great on Windows, but I'm experiencing a crash on Linux. I have narrowed down the crash to line 145: parachute.parent = weapon Output of "sp info": Date : 2017-12-02 18:54:00.610238 OS : Linux-3.14.1-ub-100hz-x86_64-with-debian-7.11 Game : css SP version : 621 Server plugins: 00...
by satoon101
Sat Dec 02, 2017 6:09 pm
Forum: Plugin Releases
Topic: GG-ProjectileKills v1.0.1
Replies: 4
Views: 164

Re: GG-ProjectileKills v1.0.1

GunGame ProjectileKills Update!
Version: 1.0.1
Version Notes:
  • Fixed team->team_index errors for recent SP update.
by satoon101
Sat Dec 02, 2017 3:12 pm
Forum: Plugin Releases
Topic: GunGame v1.1.1
Replies: 27
Views: 847

Re: GunGame v1.1.1

GunGame Update! Version: 1.1.1 Version Notes: ⋅ Added a delay to printing the weapon order each match to make sure all cfgs have been processed before doing so. ⋅ Implemented prune_database ConVar. ⋅ Added updating player timestamps in the winners database on player_ac...
by satoon101
Fri Dec 01, 2017 3:18 am
Forum: Plugin Releases
Topic: GG-WinnerMenu v1.0.2
Replies: 2
Views: 119

Re: GG-WinnerMenu v1.0.2

GunGame WinnerMenu Update!
Version: 1.0.2
Version Notes:
  • Changed Entity.team to Entity.team_index.

Go to advanced search