Search found 106 matches

by VinciT
Fri Mar 01, 2019 9:13 pm
Forum: Plugin Development Support
Topic: [CSGO] TempEntityPreHook not working
Replies: 6
Views: 298

Re: [CSGO] TempEntityPreHook not working

Awesome! That's exactly what I needed. Thanks L'In20Cible.
by VinciT
Fri Mar 01, 2019 5:40 pm
Forum: Plugin Development Support
Topic: [CSGO] TempEntityPreHook not working
Replies: 6
Views: 298

Re: [CSGO] TempEntityPreHook not working

That's odd. There are no TempEntities being created but the hook does get called in SourceMod. Only when other players are firing their weapons though. The plugin I linked does work. I even added a debug print line to make sure the TempEntHook gets called. Here's the compiled plugin (couldn't attach...
by VinciT
Fri Mar 01, 2019 3:25 am
Forum: Plugin Development Support
Topic: [CSGO] TempEntityPreHook not working
Replies: 6
Views: 298

[CSGO] TempEntityPreHook not working

I'm trying to hook the TempEntity (Shotgun Shot) used for weapon tracers and sounds, but it doesn't seem to work. # ../temp_ent_hook_test/temp_ent_hook_test.py # Source.Python from core import echo_console from effects.hooks import TempEntityPreHook @TempEntityPreHook('Shotgun Shot')...
by VinciT
Mon Feb 11, 2019 3:59 pm
Forum: Plugin Requests
Topic: Command: Weapon Speed modifier
Replies: 7
Views: 909

Re: Command: Weapon Speed modifier

Whoops, don't know how I managed to replace that dot with an underscore, fixed!
by VinciT
Mon Feb 11, 2019 5:23 am
Forum: Plugin Requests
Topic: Command: Weapon Speed modifier
Replies: 7
Views: 909

Re: Command: Weapon Speed modifier

Got it. I've replaced the hook with the listener in the post above. Thanks for your input guys!
by VinciT
Sun Feb 10, 2019 11:20 pm
Forum: Plugin Requests
Topic: Command: Weapon Speed modifier
Replies: 7
Views: 909

Re: Command: Weapon Speed modifier

Changing weapon.set_datamap_property_float() to weapon.set_network_property_float() was causing this error when I tried earlier: [SP] Caught an Exception: Traceback (most recent call last): File "..\addons\source-python\packages\source-python\commands\typed.py", line 589, in on_command res...
by VinciT
Sun Feb 10, 2019 7:56 pm
Forum: Plugin Requests
Topic: Command: Weapon Speed modifier
Replies: 7
Views: 909

Re: Command: Weapon Speed modifier

Was a bit busy lately so I couldn't make this sooner, hope you still need this. First things first, the fire rate part of the plugin works great in both CSS and CSGO, but the no spread / no recoil part only works flawlessly in CSS. In CSS, no matter what the player is doing while shooting (jumping, ...
by VinciT
Thu Nov 15, 2018 4:10 pm
Forum: Plugin Releases
Topic: [CSS/CSGO] Warcraft: Source
Replies: 21
Views: 3688

Re: [CSS/CSGO] Warcraft: Source

Awesome! I think WCS was the gamemode I played the most in CS:S, can't wait to play around with this.
by VinciT
Sat Oct 20, 2018 8:54 pm
Forum: Plugin Development Support
Topic: [CSGO] Hooking AcceptInput
Replies: 10
Views: 2693

Re: [CSGO] Hooking AcceptInput

Ayuto, you're amazing! It works! Thank you so much.
by VinciT
Sat Oct 20, 2018 5:30 pm
Forum: Plugin Development Support
Topic: [CSGO] Hooking AcceptInput
Replies: 10
Views: 2693

Re: [CSGO] Hooking AcceptInput

-------------------------------------------------------- Checksum : 405a773ffd84ab3fe11824740fa5cb2b Date : 2018-10-20 17:27:09.301686 OS : Windows-8.1-6.3.9600 Game : csgo SP version : 663 Github commit : d13b5c9e380d021166ac6ab5ce487fafeea686e7 Server plugins: 00: Source.Python, (C) 2012-2018, So...
by VinciT
Sat Oct 20, 2018 4:35 pm
Forum: Plugin Development Support
Topic: [CSGO] Hooking AcceptInput
Replies: 10
Views: 2693

Re: [CSGO] Hooking AcceptInput

I tried using the offset with only one argument, to see if it would work, and it does! No more crashing. (<_memory.Pointer object at 0x0EDB4DA0>, 'Use') [[accept_input]] offset_linux = 41 offset_windows = 40 arguments = STRING return_type = BOOL But there's a problem - the buttons ar...
by VinciT
Sat Oct 20, 2018 3:44 pm
Forum: Plugin Development Support
Topic: [CSGO] Hooking AcceptInput
Replies: 10
Views: 2693

Re: [CSGO] Hooking AcceptInput

Thanks for the quick replies! Sadly, it's still crashing. I'm trying to get the player that used a func_button to trigger something else (in this case a func_door). I tried using the OnEntityOutput listener for this, but it doesn't trigger for some entities. So I thought I should hook the input inst...
by VinciT
Sat Oct 20, 2018 3:40 am
Forum: Plugin Development Support
Topic: [CSGO] Hooking AcceptInput
Replies: 10
Views: 2693

[CSGO] Hooking AcceptInput

I'm trying to hook CBaseEntity::AcceptInput and I keep getting ' ESP not present ' (followed by a crash) whenever the hook is called. This is the offset I've added ( thanks to SM ): # bool CBaseEntity::AcceptInput( const char *szInputName, CBaseEntity *pActivator, CBaseEntity *pCaller, variant_t...
by VinciT
Wed Oct 17, 2018 11:04 pm
Forum: Plugin Development Support
Topic: Block round end
Replies: 9
Views: 2571

Re: Block round end

I think that happened because srv_check=False was missing from memory.find_binary().
I've updated the code above, give it another try.
by VinciT
Wed Oct 17, 2018 12:18 am
Forum: Plugin Development Support
Topic: Block round end
Replies: 9
Views: 2571

Re: Block round end

The delay before the round actually ends can be important depending on the gamemode (picking up weapons or something similar). How can we preserve the original delay when we're not trying to block the round from ending but we're still using the hook?
by VinciT
Tue Oct 16, 2018 4:01 am
Forum: Plugin Development Support
Topic: Block round end
Replies: 9
Views: 2571

Re: Block round end

I took what Ayuto made earlier , changed the signatures, and I think I got the right arguments? (I took a peek at how the SM guys did it ) # ../terminate_round/terminate_round.py # Source.Python import core import memory from memory import Convention, DataType from memory.hooks import PreHook server...
by VinciT
Mon Oct 15, 2018 6:31 pm
Forum: Plugin Development Support
Topic: SourceMod extensions in Source.Python?
Replies: 3
Views: 1830

Re: SourceMod extensions in Source.Python?

Holy hell, it works!
You had a small typo here (single equal sign instead of double):

Syntax: Select all

if core.PLATFORM == 'windows':

That extension was the only reason I had to use SM with SP, thanks a lot Ayuto!
by VinciT
Mon Oct 15, 2018 2:50 pm
Forum: API Design
Topic: datamap dumps?
Replies: 2
Views: 9038

Re: datamap dumps?

You can get the latest datamaps by running sp dump datamaps <file_name> through your server console / rcon.
The file will be created in ..dod/logs/source-python/.
by VinciT
Mon Oct 15, 2018 4:45 am
Forum: Plugin Development Support
Topic: SourceMod extensions in Source.Python?
Replies: 3
Views: 1830

SourceMod extensions in Source.Python?

There's a really nasty bug in HL2DM. If an NPC hits whatever the player is holding in their gravity gun, the server will crash. I've found a SourceMod extension that fixes this issue, and I'm wondering if there's a way to do same thing in Source.Python? #include "extension.h" #include &quo...
by VinciT
Sat Oct 13, 2018 2:22 am
Forum: General Discussion
Topic: Performance issue!!!
Replies: 30
Views: 6035

Re: Performance issue!!!

If Ayuto's guess about the dead property is right, you could try using the player.life_state instead ( SourceMod does it this way ). from players.constants import LifeState if player.life_state == LifeState.ALIVE: print('This player is alive!') I don't know if this would improve the ...

Go to advanced search