Search found 1413 matches

by Ayuto
Sat Jan 02, 2016 3:32 pm
Forum: Development Status Updates
Topic: Development status update (December 2015)
Replies: 0
Views: 3874

Development status update (December 2015)

A happy to new year to everyone! I hope you had a great time during the holidays! Here is the new development status update. ⋅ Fixes: ⋅  Fixed/added russian translation. ⋅  Fixed function info for IConVar::FindVar. ⋅  Fixed Host_Error crashes when passing empt...
by Ayuto
Sat Jan 02, 2016 3:29 pm
Forum: API Design
Topic: tick_delays changes
Replies: 1
Views: 11957

tick_delays changes

We have updated our delaying mechanism to implement the changes proposed in issue #95 . There were also a few issues e.g. with cancelling a delay (reported in the issue) and delays continued running after unloading the plugin which created the delay. These issues are now fixed! Old example: from lis...
by Ayuto
Fri Jan 01, 2016 9:05 pm
Forum: Plugin Development Support
Topic: Get Spectarget
Replies: 3
Views: 2972

No, you only need to use "m_hObserverTarget" instead of "CBasePlayer.m_hObserverTarget".
by Ayuto
Mon Dec 28, 2015 12:20 pm
Forum: Plugin Development Support
Topic: Getting player instance in set_name hook.
Replies: 2
Views: 2718

This has probably the same performance, but is much easier to read. from players.entity import Player from filters.players import PlayerIter def base_client_to_player(base_client): for player in PlayerIter(): if player.base_client == base_client: return player raise ValueError(&#...
by Ayuto
Mon Dec 28, 2015 11:46 am
Forum: Plugin Development Support
Topic: Jetpack with timer
Replies: 3
Views: 2617

I have added a sanity check, so a descriptive error will be already raised when you create the delay.
https://github.com/Source-Python-Dev-Team/Source.Python/commit/5918ba1bf989cc56e822dc1bc09ec81aa354b126
by Ayuto
Sat Dec 26, 2015 12:39 pm
Forum: Whatever
Topic: Forum JSON API
Replies: 4
Views: 5301

iPlayer wrote:I guess they haven't turned on external syndication in their Admin CP.
Yep, it's disabled. Moreover, you would also need an API key.
by Ayuto
Thu Dec 24, 2015 11:03 am
Forum: Plugin Development Support
Topic: Hooking OnPlayerRunCmd
Replies: 4
Views: 3793

We have PlayerRunCommand already included, so it's extremely easy to hook it. from entities.hooks import EntityPreHook from entities.hooks import EntityCondition @EntityPreHook(EntityCondition.is_player, 'run_command') def on_pre_player_run_command(args): print(args)
by Ayuto
Fri Dec 11, 2015 8:00 pm
Forum: Plugin Requests
Topic: Anti rush Plugin
Replies: 1
Views: 3666

I moved this request into its own thread. See point 4 of our forum rules for this forum:
http://forums.sourcepython.com/showthread.php?955-Forum-rules

And it's Source.Python, not Python Source. :p
by Ayuto
Thu Dec 10, 2015 11:25 pm
Forum: General Discussion
Topic: SP CSGO server crash (After CSGO update 2015/12/08)
Replies: 5
Views: 5051

Please update using this tutorial:
http://wiki.sourcepython.com/pages/Tutorials:Updating

That should fix the issue.
by Ayuto
Tue Dec 08, 2015 12:18 pm
Forum: Plugin Development Support
Topic: Making bots aim for the head
Replies: 26
Views: 20043

Ah, okay. The original function probably doesn't return anything (it's a void). The only reason why gpGlobals is returned is that it's stored in the eax register (that's the common return value register) to access an attribute. I also need to correct my answer I made about the size of the player. Th...
by Ayuto
Tue Dec 08, 2015 11:09 am
Forum: Plugin Development Support
Topic: Making bots aim for the head
Replies: 26
Views: 20043

Which values does it return?
by Ayuto
Mon Dec 07, 2015 8:37 pm
Forum: Plugin Development Support
Topic: Making bots aim for the head
Replies: 26
Views: 20043

Well, that still doesn't explain why you use an offset that is bigger than the actual class. You must be retrieving something from another object whose memory block must be always behind the bot memory block. I'm not sure if that is true and unfortunately I don't have the time currently to check any...
by Ayuto
Mon Dec 07, 2015 8:14 pm
Forum: Plugin Development Support
Topic: Making bots aim for the head
Replies: 26
Views: 20043

But what are you retrieving there? Where did you get those values? Have you tried exploring the return type/value?
by Ayuto
Mon Dec 07, 2015 8:10 pm
Forum: Plugin Development Support
Topic: Making bots aim for the head
Replies: 26
Views: 20043

Wait, does this even work? Here you are getting something from a bot that isn't in its class anymore. index = playerPointer.get_ushort(20944) The size of the bots class is currently 12072 in CS:GO. import memory from players.entity import Player # Prints 12072 in CS:GO on Windows (Linux ...
by Ayuto
Fri Dec 04, 2015 3:08 pm
Forum: Plugin Development Support
Topic: Command decorators
Replies: 1
Views: 2379

Thanks for reporting! I have fixed the issue. https://github.com/Source-Python-Dev-Team/Source.Python/commit/df3055b9991313c2d946e45399d1897624c1bf09

The new version is already downloadable.
by Ayuto
Thu Dec 03, 2015 10:07 pm
Forum: Development Status Updates
Topic: Development status update (November 2015)
Replies: 0
Views: 3901

Development status update (November 2015)

I'm pleased to show you the main highlights of the development in november. Thanks for all reported issues, pull requests and suggestions! You are helping us a lot! ⋅ Fixes: ⋅  Fixed _PlayerWeapons.set_weapon_color to take a Color object instead of RGBA values. ⋅  Fixed...
by Ayuto
Fri Nov 27, 2015 9:56 am
Forum: Plugin Requests
Topic: Plugins converts from Eventscripts to Source Python
Replies: 35
Views: 26148

The engine provides us the IFileSystem class. It's really annoying that Valve uses VPK files, because of two reasons: ⋅ Files don't have a file name on the file system. ⋅ It causes us a lot extra work, because we need to differenciate between normal files and files packed in VPK ...
by Ayuto
Thu Nov 26, 2015 6:33 pm
Forum: Plugin Requests
Topic: Plugins converts from Eventscripts to Source Python
Replies: 35
Views: 26148

I have been meaning to look into the duration issue. We might need to include mp3lib to get the duration of mp3 files. I think sndhdr should suffice and it's already included. I noticed that we also need something to access files packed in VPK files. Edit: Just noticed that mp3 files are not suppor...

Go to advanced search