Search found 331 matches

by VinciT
Wed May 02, 2018 7:34 pm
Forum: Plugin Requests
Topic: [HL2:DM] Hunt: Showdown
Replies: 4
Views: 12373

Re: [HL2:DM] Hunt: Showdown

I might be able to make this for you. Give me a couple of days to plan everything out and I'll let you know how it goes.
by VinciT
Wed May 02, 2018 7:28 pm
Forum: Plugin Development Support
Topic: how to get the current game state/match state
Replies: 3
Views: 3428

Re: how to get the current game state/match state

You should be able to get all of that information from the GameRulesProxy entity. This code should work, but for some reason I'm not getting the expected values. https://pastebin.com/twEHBN6E Maybe someone else knows what the issue is? In any case, here are all the properties for the entity as well:...
by VinciT
Fri Apr 27, 2018 5:29 pm
Forum: General Discussion
Topic: Interested in Source.Python, got some questions
Replies: 2
Views: 3051

Re: Interested in Source.Python, got some questions

I feel like the best thing SP has over SM is that you can use almost any existing Python library for your plugins.
And I just find Python much more readable than SourcePawn.
by VinciT
Mon Apr 16, 2018 5:08 pm
Forum: Plugin Development Support
Topic: Particle System
Replies: 5
Views: 3719

Re: Particle System

Here's an old particle script I made for a friend: https://pastebin.com/7UjULQQu The blood particle you tried to spawn earlier should work. Edit : I just noticed that your particle function is called spawnBloodParticle, but you call bloodParticle in the player_death event. That's probably why you co...
by VinciT
Sat Mar 24, 2018 11:27 pm
Forum: General Discussion
Topic: SP Threads?
Replies: 8
Views: 7252

Re: SP Threads?

Yeah, you can use GameThread (subclass of Python's threading.Thread) to avoid freezing the server.

These two scripts/plugins use GameThread:
viewtopic.php?f=17&t=1464
viewtopic.php?f=20&t=1323
by VinciT
Mon Nov 20, 2017 6:13 pm
Forum: Whatever
Topic: Free games!!
Replies: 43
Views: 103671

Re: Free games!!

by VinciT
Thu Nov 16, 2017 11:39 pm
Forum: Whatever
Topic: Free games!!
Replies: 43
Views: 103671

Re: Free games!!

by VinciT
Mon Nov 13, 2017 3:35 am
Forum: Plugin Development Support
Topic: [CSGO] Getting and setting player score
Replies: 6
Views: 5267

Re: [CSGO] Getting and setting player score

I just found this in SourceMod. Although I'm not sure how to do the exact same thing in SP.
by VinciT
Mon Nov 13, 2017 2:57 am
Forum: Plugin Development Support
Topic: [CSGO] Getting and setting player score
Replies: 6
Views: 5267

Re: [CSGO] Getting and setting player score

Here's the code: #assists_test.py from players.entity import Player from commands import CommandReturn from commands.client import ClientCommand @ClientCommand('add_assist') def _add_assist(command, index): player = Player(index) player.assists += 1 return CommandRetu...
by VinciT
Mon Nov 13, 2017 2:19 am
Forum: Plugin Development Support
Topic: [CSGO] Getting and setting player score
Replies: 6
Views: 5267

Re: [CSGO] Getting and setting player score

Is there no way to directly change the score, without changing the player's kills?
When I change the player's assists, the score doesn't update, so I'm trying to correct that by changing the score itself.
by VinciT
Mon Nov 13, 2017 1:40 am
Forum: Plugin Development Support
Topic: [CSGO] Getting and setting player score
Replies: 6
Views: 5267

[CSGO] Getting and setting player score

I'm trying to change the score of a player (last column on the scoreboard), but I'm not sure how to do it.
Any ideas?
by VinciT
Tue Nov 07, 2017 3:51 am
Forum: Whatever
Topic: Free games!!
Replies: 43
Views: 103671

Re: Free games!!

Watch Dogs on Uplay
by VinciT
Fri Jul 14, 2017 4:13 pm
Forum: Whatever
Topic: Free games!!
Replies: 43
Views: 103671

Re: Free games!!

by VinciT
Thu Jun 22, 2017 5:16 pm
Forum: Whatever
Topic: Free games!!
Replies: 43
Views: 103671

Re: Free games!!

by VinciT
Fri Jun 16, 2017 3:08 pm
Forum: Plugin Requests
Topic: [HL2:DM] Mini Scoreboard Always display
Replies: 18
Views: 14344

Re: [HL2:DM] Mini Scoreboard Always display

Wow, that's much cleaner than what I did.
I tried to cache stuff as much as I could, cause I thought PlayerIter created new player objects every time it ran.
by VinciT
Thu Jun 15, 2017 11:19 pm
Forum: Plugin Requests
Topic: [HL2:DM] Mini Scoreboard Always display
Replies: 18
Views: 14344

Re: [HL2:DM] Mini Scoreboard Always display

Give this a try: #mini_scoreboard.py from colors import Color from events import Event from players.entity import Player from players.helpers import index_from_userid from filters.players import PlayerIter from messages import HudMsg from listeners import OnLevelEnd from listeners.tick import Repeat...
by VinciT
Thu Jun 08, 2017 7:46 pm
Forum: Whatever
Topic: Free games!!
Replies: 43
Views: 103671

Re: Free games!!

No problem! Here's another one: PAYDAY 2
by VinciT
Wed Jun 07, 2017 3:20 am
Forum: Whatever
Topic: Free games!!
Replies: 43
Views: 103671

Re: Free games!!

by VinciT
Thu May 25, 2017 9:16 pm
Forum: Whatever
Topic: Free games!!
Replies: 43
Views: 103671

Re: Free games!!

by VinciT
Thu Apr 27, 2017 10:38 pm
Forum: Plugin Development Support
Topic: [CSGO/HL2DM] OnEntityCreated called twice?
Replies: 2
Views: 2919

Re: [CSGO/HL2DM] OnEntityCreated called twice?

Here you go: Date : 2017-04-27 22:37:45.550819 OS : Windows-8.1-6.3.9600 Game : csgo SP version : 573 Server plugins: 00: Source.Python, (C) 2012-2016, Source.Python Team. SP plugins: 00: on_entity_created_test

Go to advanced search