Search found 1426 matches

by Ayuto
Thu Dec 24, 2015 11:03 am
Forum: Plugin Development Support
Topic: Hooking OnPlayerRunCmd
Replies: 4
Views: 7802

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: 5613

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: 10657

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: 29
Views: 385560

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: 29
Views: 385560

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: 29
Views: 385560

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: 29
Views: 385560

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: 29
Views: 385560

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: 4579

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: 7212

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: 55393

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: 55393

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...
by Ayuto
Thu Nov 26, 2015 5:29 pm
Forum: Plugin Development Support
Topic: Accessing math_counters from SP
Replies: 6
Views: 8788

Yes, math_counter is a non-networked entity. That means that it doesn't have an index (and edict).

Instead of creating another class we would ideally move the shared code to the BaseEntity class.
by Ayuto
Thu Nov 26, 2015 2:38 pm
Forum: Plugin Requests
Topic: Plugins converts from Eventscripts to Source Python
Replies: 35
Views: 55393

I think Satoon's code was doing exactly what Killer0561 requested. The only problem is that <Sound>.duration always seems to return 0. I guess we need to fix that.
by Ayuto
Wed Nov 25, 2015 1:16 pm
Forum: General Discussion
Topic: Weird behaviour during warmup
Replies: 7
Views: 12353

An other bug which I'm not sure if it's SP or Source engine: player.is_fake_client() seems to return False even on bots. Is this intended behaviour? I just ended up using player.steamid == 'BOT' for now, but took me a while to figure out why my code wasn't working. Does that always ...
by Ayuto
Wed Nov 25, 2015 12:43 pm
Forum: General Discussion
Topic: Weird behaviour during warmup
Replies: 7
Views: 12353

I moved this thread to a more appropriate section.

I actually doubt that this is a bug in SP, but if you really want to find that out, disable SP and test again.
by Ayuto
Sun Nov 22, 2015 11:50 am
Forum: General Discussion
Topic: SP crashing server No global pointer found for "Server"
Replies: 4
Views: 6891

Build 141 is working fine for me as well. What did you do to update from 140 to 141?
by Ayuto
Sun Nov 22, 2015 12:35 am
Forum: General Discussion
Topic: SP crashing server No global pointer found for "Server"
Replies: 4
Views: 6891

This should fix the crash (build 140): https://github.com/Source-Python-Dev-Team/Source.Python/commit/89e576c055874c78b33db826358e8828155e80de I changed that in my last commit due to the conversions update, but I forgot to remove the "!". Thanks for reporting! :) Edit: The error you get has nothing ...
by Ayuto
Fri Nov 20, 2015 2:44 pm
Forum: News & Announcements
Topic: Updated conversion functions
Replies: 8
Views: 307653

Alright, I have updated the conversion functions once again to raise an exception instead of returning None in case of a failed conversion. The main post has been updated as well.

Thank you for your feedback! :)

Go to advanced search