Search found 1413 matches
- Wed Jun 24, 2015 4:29 pm
- Forum: Plugin Development Support
- Topic: Count temp entities
- Replies: 11
- Views: 8271
I doubt parsing the output of report_entities will be faster than using EntityIter(). You could even skip EntityIter() and use EntityGenerator() directly. As you can see it doesn't do very much if you just want to iterate over all entities. But why do you think that it might be too slow? Did you exp...
- Wed Jun 17, 2015 8:55 pm
- Forum: Plugin Releases
- Topic: simple death and kill streaks tracker
- Replies: 16
- Views: 13524
This is also working fine.^^
Syntax: Select all
>>> def f(x):
print(x)
return;
>>> f(5)
5
- Wed Jun 17, 2015 8:42 pm
- Forum: Plugin Releases
- Topic: simple death and kill streaks tracker
- Replies: 16
- Views: 13524
- Sat Jun 13, 2015 12:36 pm
- Forum: Plugin Development Support
- Topic: [request] Short model list for CS:S
- Replies: 4
- Views: 3350
- Sat Jun 13, 2015 11:56 am
- Forum: Plugin Development Support
- Topic: [request] Short model list for CS:S
- Replies: 4
- Views: 3350
- Wed Jun 10, 2015 7:04 am
- Forum: Plugin Development Support
- Topic: [CSS] Creating a usable, destroyable prop.
- Replies: 8
- Views: 7106
- Wed Jun 10, 2015 6:54 am
- Forum: Plugin Development Support
- Topic: ConVar - equivalent to RegisterConVarChanges
- Replies: 9
- Views: 7407
- Tue Jun 09, 2015 6:24 am
- Forum: Plugin Development Support
- Topic: ConVar - equivalent to RegisterConVarChanges
- Replies: 9
- Views: 7407
We haven't added that to the wiki yet. But here is the source code: https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/addons/source-python/packages/source-python/memory/__init__.py#L77
I can add that to the wiki today.
I can add that to the wiki today.
- Mon Jun 08, 2015 5:34 pm
- Forum: Plugin Development Support
- Topic: ConVar - equivalent to RegisterConVarChanges
- Replies: 9
- Views: 7407
I would like to take this chance to show another feature of SP, which is already available since a long time. Though, we have improved this feature a few weeks ago. You can create functions, which have an address in memory, so you can pass them to any function you want. This means that you can creat...
- Fri Jun 05, 2015 7:14 pm
- Forum: General Discussion
- Topic: Python's eval() function
- Replies: 9
- Views: 7221
Well, it does not allow you to use operators.
Check the docs: https://docs.python.org/3.4/library/ast.html#ast.literal_eval
Check the docs: https://docs.python.org/3.4/library/ast.html#ast.literal_eval
- Fri Jun 05, 2015 4:29 am
- Forum: Plugin Releases
- Topic: Admin Commands
- Replies: 9
- Views: 11734
- Thu Jun 04, 2015 12:54 pm
- Forum: General Discussion
- Topic: Few questions regarding S.P and SourceMod
- Replies: 18
- Views: 13931
- Thu Jun 04, 2015 9:57 am
- Forum: Plugin Development Support
- Topic: Angle of Incidence
- Replies: 14
- Views: 10407
- Thu Jun 04, 2015 9:47 am
- Forum: Plugin Development Support
- Topic: Angle of Incidence
- Replies: 14
- Views: 10407
You can already get the plane from a trace. https://github.com/Source-Python-Dev-Team/Source.Python/blob/bd62d8a4118dce438c0a78f264cb4a2d0e4060b8/src/core/modules/engines/engines_wrap_python.cpp#L937
my_trace.plane.normal
my_trace.plane.normal
- Thu Jun 04, 2015 7:45 am
- Forum: Plugin Development Support
- Topic: Angle of Incidence
- Replies: 14
- Views: 10407
- Wed Jun 03, 2015 7:41 am
- Forum: Plugin Development Support
- Topic: CSGO: Change nick
- Replies: 3
- Views: 3464
Yes, it's possible, but requires the memory module. I guess we will add that functionality at some point, so you can just do player.name = <new name>: import memory from memory import Convention from memory import DataType from memory.hooks import PreHook from engines.server import engine_server fro...
- Fri May 29, 2015 7:45 pm
- Forum: Plugin Development Support
- Topic: how to show name of player that you are pointing to
- Replies: 22
- Views: 12698
- Fri May 29, 2015 6:26 pm
- Forum: Plugin Development Support
- Topic: how to show name of player that you are pointing to
- Replies: 22
- Views: 12698
We decided that we want to have properties, because we think they are more handy. Do you have any sources for the "usually" in your edit? I have never seen a proposal for that. Though, I should also mention that I didn't search for it. If you are looking for other projects, which are using get_*/set...
- Fri May 29, 2015 9:50 am
- Forum: Plugin Development Support
- Topic: how to show name of player that you are pointing to
- Replies: 22
- Views: 12698
- Thu May 28, 2015 7:52 pm
- Forum: Plugin Development Support
- Topic: How to reset the player's sound to normal on player_blind?
- Replies: 55
- Views: 29035
No, L'In20Cible is right. Here is the proof. https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/src/core/modules/memory/memory_hooks.cpp#L124
If you would just return True or False in a PreHook, what would be the return value for the caller?
If you would just return True or False in a PreHook, what would be the return value for the caller?