Search found 1134 matches

by Ayuto
Sun Nov 18, 2018 3:11 pm
Forum: Plugin Requests
Topic: CollisionHook
Replies: 13
Views: 569

Re: CollisionHook

Have you tried returning True instead of False?
by Ayuto
Sun Nov 18, 2018 12:20 pm
Forum: News & Announcements
Topic: Buildbot changes
Replies: 0
Views: 18

Buildbot changes

Our buildbot will be shut down by the end of this month. Thus, we had to make some changes to our Builds page and sp update server command. The Builds page has been replaced by a new Downloads page. On this page you can now always download the latest Source.Python version. Important: As you can see ...
by Ayuto
Sat Nov 17, 2018 9:05 pm
Forum: Plugin Requests
Topic: CollisionHook
Replies: 13
Views: 569

Re: CollisionHook

It only shows how to setup the PassServerEntityFilter hook. Of course, there is more to do, but I haven't looked through the whole SM code. Just wanted to give you a hint/place to start.
by Ayuto
Sat Nov 17, 2018 7:39 pm
Forum: Plugin Requests
Topic: CollisionHook
Replies: 13
Views: 569

Re: CollisionHook

Sorry, I totaly forgot about it. Here is the basic structure: import memory from memory import Convention from memory import DataType from memory.hooks import PreHook from entities.helpers import baseentity_from_pointer server = memory.find_binary('server') PassServerEntityFilter = s...
by Ayuto
Fri Nov 16, 2018 3:19 pm
Forum: Plugin Development Support
Topic: [CS:GO] player.friction
Replies: 7
Views: 153

Re: [CS:GO] player.friction

Then it's probably a read-only property.
by Ayuto
Tue Nov 13, 2018 4:29 pm
Forum: Plugin Development Support
Topic: [CS:GO] Parent Menu
Replies: 4
Views: 165

Re: [CS:GO] Parent Menu

by Ayuto
Tue Nov 13, 2018 4:28 pm
Forum: Plugin Development Support
Topic: [CS:GO] player.friction
Replies: 7
Views: 153

Re: [CS:GO] player.friction

set_property_X is just a wrapper for set_network_property_X and set_datamap_property_X. If it's a network property it will use the first method, else the latter.
by Ayuto
Sun Nov 11, 2018 4:16 pm
Forum: Development Status Updates
Topic: Development status update (October 2018)
Replies: 0
Views: 140

Development status update (October 2018)

It's time for another development status update! :smile: ⋅ Fixes: ⋅  Fixed issue #261. ⋅  Fixed issue #253. ⋅  Fixed issue #157. ⋅  Fixed issue #233. ⋅ Additions: ⋅  Added SmokeMaterial keyvalue to the CSmokeStack data. ⋅&nbs...
by Ayuto
Sun Nov 11, 2018 3:53 pm
Forum: Plugin Development Support
Topic: [CS:GO] player.friction
Replies: 7
Views: 153

Re: [CS:GO] player.friction

Could you please try this?:

Syntax: Select all

player.set_network_property_float('m_flFriction', 8)
by Ayuto
Sun Nov 11, 2018 3:51 pm
Forum: Plugin Development Support
Topic: ConVar Value Type Restriction
Replies: 1
Views: 113

Re: ConVar Value Type Restriction

decompile wrote:Is there currently a way to restrict the value of a ConVar to a specific value type?

No, not yet.
by Ayuto
Sun Nov 11, 2018 3:44 pm
Forum: Plugin Development Support
Topic: [CS:GO] Parent Menu
Replies: 4
Views: 165

Re: [CS:GO] Parent Menu

I would simply use the build_callback instead of creating individual menus for every player. Then you have one menu instance for all players, but they will be rebuilt for every player before they are sent/refreshed.
by Ayuto
Sun Nov 11, 2018 3:43 pm
Forum: Plugin Development Support
Topic: CSGO: Random bots spawn
Replies: 4
Views: 287

Re: CSGO: Random bots spawn

A good start would be to take a look at the *.nav files to see what information they contain. IIRC, there are Python libraries to parse them.
by Ayuto
Thu Nov 08, 2018 9:40 am
Forum: Plugin Development Support
Topic: [CS:GO] HintText
Replies: 5
Views: 388

Re: [CS:GO] HintText

As mentioned in the linked thread, you can only change the font size by using the style classes. The pre-tag won't help.
by Ayuto
Tue Nov 06, 2018 5:35 pm
Forum: Plugin Development Support
Topic: [CS:GO] HintText
Replies: 5
Views: 388

Re: [CS:GO] HintText

https://forums.alliedmods.net/showthread.php?p=2604171#post2604171 This is working fine for me: from messages import HintText from events import Event @Event('player_say') def f(event): HintText('<span class="fontSize-xs">Hello</span>').send()
by Ayuto
Sat Nov 03, 2018 9:21 pm
Forum: Plugin Development Support
Topic: [CS:GO] HintText
Replies: 5
Views: 388

Re: HintText

Which game?
by Ayuto
Mon Oct 29, 2018 5:05 pm
Forum: Plugin Development Support
Topic: WeaponID
Replies: 15
Views: 1978

Re: WeaponID

I know what's happening there, but never found the motivation/time to add it to SP.
by Ayuto
Thu Oct 25, 2018 5:42 pm
Forum: Plugin Development Support
Topic: WeaponID
Replies: 15
Views: 1978

Re: WeaponID

It's possible to get the weapon. This is how the SM guys did it:
https://github.com/alliedmodders/source ... /659/files
by Ayuto
Mon Oct 22, 2018 4:00 pm
Forum: News & Announcements
Topic: Source.Python update command
Replies: 7
Views: 2306

Re: Source.Python update command

You can spoof SP by changing the value of the VERSION constant in this file:
https://github.com/Source-Python-Dev-Te ... version.py

You can either set it to None or to a lower value. Then restart your server.
by Ayuto
Sun Oct 21, 2018 2:58 pm
Forum: News & Announcements
Topic: Source.Python update command
Replies: 7
Views: 2306

Re: Source.Python update command

Please set the logging to the highest setting in core_settings.ini. Then please try again and send the console log. Also, please post the output of sp info.
by Ayuto
Sat Oct 20, 2018 7:32 pm
Forum: Plugin Development Support
Topic: [CSGO] Hooking AcceptInput
Replies: 10
Views: 423

Re: [CSGO] Hooking AcceptInput

On Windows the variant_t argument, which has the size of 20 bytes, gets copied to the stack instead of a single pointer that gets pushed to the stack. Thus, we need to add a few fake arguments, so we don't mess up the stack: # bool CBaseEntity::AcceptInput( const char *szInputName, CBaseEntity *pAct...

Go to advanced search