Search found 1115 matches

by Ayuto
Sat Oct 20, 2018 7:32 pm
Forum: Plugin Development Support
Topic: [CSGO] Hooking AcceptInput
Replies: 10
Views: 82

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...
by Ayuto
Sat Oct 20, 2018 5:18 pm
Forum: General Discussion
Topic: Sourcepython running on servers
Replies: 1
Views: 33

Re: Sourcepython running on servers

You can check the servers that have the public variable "sp_version". However, Source.Python itself doesn't track any servers.
by Ayuto
Sat Oct 20, 2018 5:16 pm
Forum: Plugin Development Support
Topic: [CSGO] Hooking AcceptInput
Replies: 10
Views: 82

Re: [CSGO] Hooking AcceptInput

Could you please post the output of "sp info". Also, to which ini-file have you added the data (I'm assuming some CBaseEntity.ini in Source.Python's data files). You get the KeyError if you specify the convetion, because it's case-sensitive (use upper case). Also, you don't necessarily nee...
by Ayuto
Sat Oct 20, 2018 5:11 pm
Forum: Plugin Development Support
Topic: See open menus
Replies: 6
Views: 94

Re: See open menus

Here is some other things I find weird: In a PagedMenu if I add Text( it counts as an option which means the numbers get weird. I don't know if I'm doing it wrong. Yes, that's the intended behaviour. if I return the menu object, it overwrites any currently opened menu. Not sure how that would work,...
by Ayuto
Sat Oct 20, 2018 9:05 am
Forum: Plugin Development Support
Topic: [CSGO] Hooking AcceptInput
Replies: 10
Views: 82

Re: [CSGO] Hooking AcceptInput

I guess it's the file to reconstruct the CBaseEntity class. When the file is parsed, SP already assumes THISCALL plus the this pointer is added automatically to the arguments.
by Ayuto
Sat Oct 20, 2018 6:04 am
Forum: Plugin Development Support
Topic: [CSGO] Hooking AcceptInput
Replies: 10
Views: 82

Re: [CSGO] Hooking AcceptInput

You don't need to specify the convention. It's already thiscall in that data file.
by Ayuto
Fri Oct 19, 2018 5:08 pm
Forum: Whatever
Topic: A Love Letter to Ayuto
Replies: 2
Views: 67

Re: A Love Letter to Ayuto

Well, I also need to credit Peace-Maker. He's currently integrating my DynamicHooks library into a SourceMod extension: https://forums.alliedmods.net/showpost.php?p=2588686&postcount=589 While doing this, he figured out that the stack isn't 16-byte aligned when calling the hook handler. That's n...
by Ayuto
Tue Oct 16, 2018 7:23 pm
Forum: Plugin Development Support
Topic: Block round end
Replies: 9
Views: 116

Re: Block round end

The assembly part is only required for CS:GO on Windows due to LTCG. This option does some speed improvements by storing the delay in the xmm1 register instead of pushing it onto the stack. It's also possible to grab this value with SP, but is this actually required?
by Ayuto
Tue Oct 16, 2018 7:13 pm
Forum: General Discussion
Topic: Performance issue!!!
Replies: 30
Views: 499

Re: Performance issue!!!

I can't really tell, but I don't think so.
by Ayuto
Tue Oct 16, 2018 5:22 am
Forum: General Discussion
Topic: Performance issue!!!
Replies: 30
Views: 499

Re: Performance issue!!!

I didn't move that property, because it's not shared across all entities. You can use this as a workaround for now.
by Ayuto
Mon Oct 15, 2018 8:11 pm
Forum: Development Status Updates
Topic: Development status update (September 2018)
Replies: 0
Views: 23

Development status update (September 2018)

It's time for another development status update! :smile: ⋅ Fixes: ⋅  Fixed Player.clan_tag offsets for CS:GO. ⋅  Fixed Unicode problems with config files. ⋅  Fixed CFlashbangProjectile::Detonate offset (CS:GO). ⋅ Additions: ⋅  Added CBasePl...
by Ayuto
Mon Oct 15, 2018 6:46 pm
Forum: Plugin Development Support
Topic: SourceMod extensions in Source.Python?
Replies: 3
Views: 54

Re: SourceMod extensions in Source.Python?

I have fixed the typo, thanks! I'm glad it's working.
by Ayuto
Mon Oct 15, 2018 6:26 pm
Forum: Plugin Development Support
Topic: Block round end
Replies: 9
Views: 116

Re: Block round end

So, you would like to stop rounds from terminating? IIRC, there is a convar to do that in some games. For which game do you need that? If the convar does not exist you will need to hook CCSGameRules::TerminateRound.
by Ayuto
Mon Oct 15, 2018 6:23 pm
Forum: General Discussion
Topic: Performance issue!!!
Replies: 30
Views: 499

Re: Performance issue!!!

I'm might be a little bit late to the party, but I still would like to drop my thoughts here. First of all, I still think retrieving whether or not the player is dead is the bottleneck due to the slow implementation of looking up properties dynamically. I just did a quick test and was able to prove ...
by Ayuto
Mon Oct 15, 2018 5:52 pm
Forum: Plugin Development Support
Topic: SourceMod extensions in Source.Python?
Replies: 3
Views: 54

Re: SourceMod extensions in Source.Python?

Try this: import core import memory from memory import Convention from memory import DataType from memory import NULL from memory.hooks import PreHook from entities.helpers import pointer_from_edict from players import PlayerGenerator server = memory.find_binary('server') if core.PLA...
by Ayuto
Sat Oct 13, 2018 5:05 am
Forum: General Discussion
Topic: Performance issue!!!
Replies: 30
Views: 499

Re: Performance issue!!!

I will take a look at it when I get home next week.
by Ayuto
Tue Oct 09, 2018 5:06 am
Forum: General Discussion
Topic: Performance issue!!!
Replies: 30
Views: 499

Re: Performance issue!!!

Thanks for the updated info. One more question: what's your SP version? I guess it lags, because of accessing the dead-property.
by Ayuto
Sun Oct 07, 2018 4:33 pm
Forum: General Discussion
Topic: Performance issue!!!
Replies: 30
Views: 499

Re: Performance issue!!!

Code?
by Ayuto
Wed Oct 03, 2018 12:12 pm
Forum: General Discussion
Topic: Sourcepython installation libffi.so.6 error
Replies: 2
Views: 52

Re: Sourcepython installation libffi.so.6 error

Looks like the 32 bit version of libffi is missing. Please check the installation instructions on our wiki.
by Ayuto
Fri Sep 28, 2018 8:48 pm
Forum: General Discussion
Topic: Permmissions question
Replies: 2
Views: 99

Re: Permmissions question

No, there is no immunity system and no plans have been made so far.

Go to advanced search