Search found 99 matches

by VinciT
Thu Nov 15, 2018 4:10 pm
Forum: Plugin Releases
Topic: [CSS/CSGO] Warcraft: Source
Replies: 15
Views: 1789

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

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

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

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

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

[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: 1852

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

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

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

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

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

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

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 ...
by VinciT
Mon Oct 08, 2018 3:42 am
Forum: Plugin Requests
Topic: [HL2:DM] player_death effect combine_ball
Replies: 3
Views: 1371

Re: [HL2:DM] player_death effect combine_ball

Give this a shot: # ../death_effect/death_effect.py # Source.Python from colors import Color from events import Event from entities.entity import Entity from players.dictionary import PlayerDictionary EFFECT_ALPHA = 255 EFFECT_COLOR = Color(255, 255, 255) EFFECT_LIFETIME = 20 player_instance...
by VinciT
Sat Oct 06, 2018 11:04 pm
Forum: Code examples / Cookbook
Topic: [ANY] Smooth field of view (FOV) change
Replies: 0
Views: 8708

[ANY] Smooth field of view (FOV) change

Here's a little function that should help with smooth FOV transitions. This should work in any Source Engine game (tested in HL2DM, CSS, and CSGO). https://gist.github.com/vinci6k/3609e8dd32d7bd3e9d8eadd5d6490f42 https://media.giphy.com/media/5hmjETpa7bTUtYFZoK/giphy.gif https://media.giphy.com/medi...
by VinciT
Sat Oct 06, 2018 7:51 pm
Forum: Plugin Releases
Topic: Paintball
Replies: 9
Views: 4893

Re: Paintball

HL2DM doesn't have the bullet_impact event that this plugin uses, which is why it doesn't work in that game.
I believe the workaround for this would be to hook FireBullets (needs an offset) or TE_HL2MPFireBullets (needs a signature).
by VinciT
Thu Oct 04, 2018 1:36 am
Forum: General Discussion
Topic: Sourcepython on Linux (seems very unstable)
Replies: 9
Views: 2055

Re: Sourcepython on Linux (seems very unstable)

The alpha issue is not a problem with SP itself. It's the nature of that functionality in CS:GO. Valve did add a cvar that enables setting the player alpha, iirc, but I don't remember what it is. Satoon's right, setting sv_disable_immunity_alpha to 1 will allow you to change the alpha of the player.
by VinciT
Tue Oct 02, 2018 2:58 pm
Forum: Plugin Development Support
Topic: How to run rcon commands
Replies: 2
Views: 1296

Re: How to run rcon commands

You can use queue_command_string for that: from engines.server import queue_command_string # Change the map to de_dust2. queue_command_string('changelevel de_dust2') # Change the gravity. queue_command_string('sv_gravity 200') # Enable cheats. queue_command_string(...
by VinciT
Fri Sep 28, 2018 3:57 pm
Forum: General Discussion
Topic: Left 4 Dead 1 Support
Replies: 6
Views: 2225

Re: Left 4 Dead 1 Support

You can download the server files for Linux by using @sSteamCmdForcePlatformType linux before app_update.

Image
by VinciT
Fri Aug 17, 2018 7:03 pm
Forum: Plugin Development Support
Topic: box
Replies: 17
Views: 1808

Re: Bounding box

It is more than important. The model is the shape of your trigger. Take in example bombsites, they are brush entities (you can use their model on other entities using *x or x* I don't remember if the asterisk is prefixed or suffixed -- been years last time I played with that, where x is their pre-c...

Go to advanced search