Search found 1777 matches
- Tue Apr 30, 2019 12:50 am
- Forum: Plugin Releases
- Topic: Map Decal Painter
- Replies: 20
- Views: 34107
Re: Map Decal Painter
This plugin was written a long time ago and uses functionality that has been moved/removed/renamed. Doldol was last on the site a couple weeks ago, so let's give him some more time to see this and determine if he wants to fix it. If not, I might look at it this weekend.
- Tue Apr 30, 2019 12:47 am
- Forum: General Discussion
- Topic: sourcepython installation broken
- Replies: 5
- Views: 6622
Re: sourcepython installation broken
To be fair, we do also include the path.py 3rd party package which can do pretty much everything in pathlib and then some. When we started this Source.Python, Python3.4 (the first version to include pathlib) was still a ways off so we didn't have the option of using a built-in pathlib. https://pypi....
- Wed Apr 24, 2019 3:10 am
- Forum: General Discussion
- Topic: sourcepython installation broken
- Replies: 5
- Views: 6622
Re: sourcepython installation broken
Those are settings that you can change for any server. The original values that populate those settings are defaults, not constants. It would not be a good idea to reset them every time SP starts, because some servers might legitimately change those paths for their specific situation/needs. Perhaps ...
- Sun Apr 14, 2019 1:54 pm
- Forum: General Discussion
- Topic: ES/Python Traceback
- Replies: 10
- Views: 9519
Re: ES/Python Traceback
The first one does not contain the full traceback, so hard to tell. The second looks like a command is being sent without all the necessary arguments.
- Sun Mar 31, 2019 2:41 am
- Forum: Plugin Development Support
- Topic: [HL2:DM] effects
- Replies: 2
- Views: 2727
Re: [HL2:DM] effects
create is a classmethod. Change that line to:
Syntax: Select all
entity = Entity.create('point_hurt')
- Thu Mar 07, 2019 2:29 am
- Forum: Plugin Requests
- Topic: Respawn?
- Replies: 7
- Views: 11111
Re: Respawn?
It's been awhile, but I think this will work:
Syntax: Select all
from commands.say import SayCommand
from players.entity import Player
@SayCommand('!respawn')
def respawn_player(command, index, team_only):
Player(index).spawn()
- Mon Dec 24, 2018 10:18 pm
- Forum: General Discussion
- Topic: PyCharm Project Setup
- Replies: 3
- Views: 4710
Re: PyCharm Project Setup
I am currently on holiday and will be moving later this week, as well, so I won't be able to help further till next week at the earliest.
- Mon Dec 24, 2018 12:52 pm
- Forum: General Discussion
- Topic: PyCharm Project Setup
- Replies: 3
- Views: 4710
Re: PyCharm Project Setup
You might check out my reply here:
viewtopic.php?f=9&t=1314
viewtopic.php?f=9&t=1314
- Sun Dec 09, 2018 4:20 pm
- Forum: General Discussion
- Topic: All SP Offsets outdated after CS:GO update
- Replies: 8
- Views: 7666
Re: All SP Offsets outdated after CS:GO update
Most of the others have been updated this morning. There are only a few TODOs remaining.
https://github.com/Source-Python-Dev-Te ... f...master
https://github.com/Source-Python-Dev-Te ... f...master
- Thu Nov 29, 2018 11:28 am
- Forum: Plugin Development Support
- Topic: Strange behavior with my implementation of player.set_active_weapon()
- Replies: 6
- Views: 4790
Re: Strange behavior with my implementation of player.set_active_weapon()
A couple other minor optimizations from that code: Technically, using the prefix would break for some other games where the prefix is not always used/consistent. Plus, we already have access to the name without any prefix, so why bother. # Build a list of weapons without prefix weapons = [weapon.bas...
- Wed Nov 28, 2018 10:39 pm
- Forum: Plugin Development Support
- Topic: Strange behavior with my implementation of player.set_active_weapon()
- Replies: 6
- Views: 4790
Re: Strange behavior with my implementation of player.set_active_weapon()
Last question for now: I mentioned earlier that I made knives droppable. There is a small issue with that as well. I'm using this code snippet which I believe I found somewhere on the forums. I may or may not have modified it, I cannot remember. Anyhow: @ClientCommand('drop') def dr...
- Tue Nov 20, 2018 10:12 pm
- Forum: Plugin Development Support
- Topic: SetTransmit on entities
- Replies: 23
- Views: 18673
Re: SetTransmit on entities
I hope it doesn't feel like a "duplicate", since I already posted here We definitely prefer to track issues on GitHub, so thank you for opening it up there. It's fine that you happened upon this during a forum thread and it exists in both places. We'll handle the issue on GitHub and this ...
- Sat Nov 17, 2018 9:38 pm
- Forum: Plugin Requests
- Topic: CollisionHook
- Replies: 14
- Views: 26557
Re: CollisionHook
If you are on Windows and/or the game is CS:GO, you will have to find the signature for _Z22PassServerEntityFilterPK13IHandleEntityS1_.
- Mon Oct 22, 2018 9:33 pm
- Forum: Plugin Development Support
- Topic: WeaponID
- Replies: 15
- Views: 15837
Re: WeaponID
I'm not sure where you are seeing "unused", but as noted in the discussion above, it is messed up in CS:GO. Right now, the buy_internal hook yields values similar to the following: (<_memory.Pointer object at 0x1BEC4710>, 15, '', True) The first argument is the Player. The ...
- Tue Oct 16, 2018 2:19 am
- Forum: General Discussion
- Topic: Performance issue!!!
- Replies: 30
- Views: 24618
Re: Performance issue!!!
We moved most (all?) of the CBaseEntity properties to C++. Perhaps we should do the same with some of the common CBasePlayer ones, which are found in all games we support.
- Mon Oct 15, 2018 6:42 pm
- Forum: Plugin Development Support
- Topic: Block round end
- Replies: 9
- Views: 8501
Re: Block round end
mp_ignore_round_win_conditions
If you want to stop the rounds from ending, set that to 1.
If you want to stop the rounds from ending, set that to 1.
- Mon Oct 15, 2018 3:01 pm
- Forum: API Design
- Topic: datamap dumps?
- Replies: 2
- Views: 43998
Re: datamap dumps?
Pinsplash wrote:Also, santoon101's dropbox links on that page are now 404's.
Sorry, I had to clear out my Dropbox a few months ago to make room for something and I forgot to put everything back once I had finished. I will do that now, so thank you for the reminder.
- Mon Oct 15, 2018 1:57 am
- Forum: General Discussion
- Topic: Performance issue!!!
- Replies: 30
- Views: 24618
Re: Performance issue!!!
I apologize, I misread your post about using the emulator. So, you noticed this slowness while trying to run the ES code through the emulator. I will say, using SP natively will be faster than using the emulator. I'm fairly sure that the emulator was created so that people could still use old ES scr...
- Sun Oct 14, 2018 1:57 am
- Forum: General Discussion
- Topic: Performance issue!!!
- Replies: 30
- Views: 24618
Re: Performance issue!!!
I haven't read all of the replies, yet, but one thing really stood out in your tests reply. You stated you are using the ES Emulator to run the ES code. In case you are unaware, that literally wraps SourcePython functionality to emulate EventScripts. If you truly did a 1-to-1 conversion, which looki...
- Sat Oct 13, 2018 7:41 pm
- Forum: General Discussion
- Topic: Performance issue!!!
- Replies: 30
- Views: 24618
Re: Performance issue!!!
Sure you can do it in 1000 ways, or the initial problem can be solved. It shouldn't be lagging by receiving the origin/dead/get_distance etc.. every tick or evey 2nd tick etc.. It doesn't matter when more players join. It does matter. In the code you linked, your function is executed every 0.1 seco...