Search found 1160 matches

by L'In20Cible
Mon Jul 26, 2021 2:32 am
Forum: Plugin Development Support
Topic: [Cs:s] Effects showing certain user
Replies: 10
Views: 375

Re: [Cs:s] Effects showing certain user

Your problem is that you are passing their userid while it should be their index.
by L'In20Cible
Fri Jul 16, 2021 12:42 am
Forum: Plugin Development Support
Topic: [CS:GO] Get inflictor entity in TakeDamageInfo
Replies: 4
Views: 158

Re: [CS:GO] Get inflictor entity in TakeDamageInfo

I want to get the entity index (like independent sentry gun which has owner player which will be the attacker in TakeDamageInfo) My first guess would be that the entity you are passing as weapon index isn't recognized as a known weapon causing this instantiation to fail resulting into no weapon bei...
by L'In20Cible
Sun Jun 06, 2021 1:14 am
Forum: Plugin Development Support
Topic: Error with TraceFilterSimple()
Replies: 2
Views: 211

Re: Error with TraceFilterSimple()

The following: TraceFilterSimple(ignore=(entity.index, )), Should be: TraceFilterSimple(ignore=(entity, )), Seems like the docstring was forgotten, but this was changed into the following commit: https://github.com/Source-Python-Dev-Team/Source.Python/commit/f4884487f...
by L'In20Cible
Mon May 31, 2021 3:57 pm
Forum: Plugin Development Support
Topic: Get/set entity array properties
Replies: 2
Views: 300

Re: Get/set entity array properties

Hi! How to get / set entity properties which are arrays e.g. m_flPoseParameter ? I want to change pose parameters of my entity. It has two of them. my_entity.get_property_float('m_flPoseParameter') # it works for first pose How to get for second pose? If you use the following comman...
by L'In20Cible
Wed May 26, 2021 11:52 pm
Forum: Plugin Development Support
Topic: Hook Player Spray
Replies: 4
Views: 12145

Re: Hook Player Spray

Would implementing a "spray ban" feature be as simple as just blocking this event with a pre-event hook? from effects.hooks import TempEntityPreHook from messages import SayText2 denied_message = SayText2('Sorry, you cannot use spray on this server.') @TempEntityPreHook...
by L'In20Cible
Tue May 18, 2021 9:04 pm
Forum: Plugin Requests
Topic: Team Join Control
Replies: 9
Views: 734

Re: Team Join Control

If my memory serves me right, I believe you could also add something like that to force them on a random team as soon as they accept the MOTD instead of sending them the team menu: @ClientCommand('joingame') def joingame_command(command, index): Player(index).client_c...
by L'In20Cible
Sat May 15, 2021 12:12 pm
Forum: General Discussion
Topic: Warmup + Dissolver
Replies: 4
Views: 388

Re: Warmup + Dissolver

Nobody there can explane me why dissolver is active under warmup round ? I guess because players are being respawned and not removing their ragdoll means there would be corpses everywhere affecting both server and client performance. If you don't want them to be removed, you can do so by deleting o...
by L'In20Cible
Tue May 04, 2021 4:26 am
Forum: Plugin Development Support
Topic: [Cs:s] Zombie Riot admin
Replies: 4
Views: 533

Re: [Cs:s] Zombie Riot admin

Once your ini file has been parsed, it evaluates to: {'U:1:182650578': {}} When you do the following: return admins.get(player.steamid.lstrip('[').rstrip(']')) It effectively returns an empty dictionary. Therefore, evaluates to False . You need to test...
by L'In20Cible
Sat Apr 17, 2021 3:30 pm
Forum: Plugin Development Support
Topic: Delete Player Weapons On Death.
Replies: 7
Views: 932

Re: Delete Player Weapons On Death.

You could predict whether the player will die or not by comparing his health against the amount of damage taken into player_hurt and strip him of his weapons there.
by L'In20Cible
Thu Apr 08, 2021 3:01 pm
Forum: Plugin Development Support
Topic: virtual functions and skip_hooks
Replies: 5
Views: 692

Re: virtual functions and skip_hooks

It seems that the reason for the crash is due to setting the `attacker` attribute of TakeDamageInfo; as adding it, instantly causes the server crash. Make sense, because the following condition is met: @Event('player_hurt') def _on_hurt_call_events(event_data): if event_data...
by L'In20Cible
Thu Apr 08, 2021 4:52 am
Forum: Plugin Development Support
Topic: virtual functions and skip_hooks
Replies: 5
Views: 692

Re: virtual functions and skip_hooks

Alright, I will try to add some details. TLDR: Why is call_trampoline working in the SpikedCarapace skill, and the commented skip_hooks line causes a server crash? Both methods will forward the call to the trampoline when a hook is registered. The only difference, is that call_trampoline will raise ...
by L'In20Cible
Wed Apr 07, 2021 5:08 pm
Forum: Plugin Development Support
Topic: virtual functions and skip_hooks
Replies: 5
Views: 692

Re: virtual functions and skip_hooks

I don't have the time to go into the technicalities as to how and why, etc. but what you are looking for is the hooks_disabled context to ensure your hook do not get recursively called through a polymorphic call.
by L'In20Cible
Sat Mar 27, 2021 1:16 pm
Forum: Plugin Releases
Topic: [CSGO] Curving Flash
Replies: 14
Views: 4865

Re: [CSGO] Curving Flash

https://i.imgur.com/iRG2v8v.png ⋅ Added the French translation - thank you very much L'In20Cible. :grin: ⋅ Fixed a bug that prevented the plugin from getting loaded with the autoexec/server.cfg file. Had a quick look at your recent changes and here are two points that caught my ...
by L'In20Cible
Tue Mar 16, 2021 2:48 am
Forum: Plugin Requests
Topic: Half-Life 2 Deathmatch - God mode
Replies: 13
Views: 1885

Re: Half-Life 2 Deathmatch - God mode

Hey daren, you can give this a try. from players.entity import Player from events import Event from players.dictionary import PlayerDictionary from messages import SayText2 class StreakPlayer(Player): def __init__(self, index): super().__init__(index) self.consecutiv...
by L'In20Cible
Thu Mar 11, 2021 5:19 am
Forum: Plugin Requests
Topic: [HL2:DM] Heartbeat
Replies: 21
Views: 16484

Re: [HL2:DM] Heartbeat

I am sorry but that is not true, i only said that about 2 of them make me crash, and they give no errors for me to tell you/write what is says. and i cant send you my whole server. I am not trying to make you guys waste yours or their time. I really like the work that you all do, I do not want to u...
by L'In20Cible
Thu Mar 11, 2021 4:21 am
Forum: Plugin Requests
Topic: [HL2:DM] Heartbeat
Replies: 21
Views: 16484

Re: [HL2:DM] Heartbeat

Thank you but it crashed again with no error, idk y, friend also same deal, and no errors on his side. Its acting just like the lights script that i also am trying to get to work here, https://forums.sourcepython.com/viewtopic.php?f=37&t=2231 and they helped alot, but i still crash. I // it and...
by L'In20Cible
Tue Mar 09, 2021 11:56 am
Forum: Plugin Development Support
Topic: [Cs:s] Server Command to download new version of plugin
Replies: 6
Views: 963

Re: [Cs:s] Server Command to download new version of plugin

How i can move the files inside of the folder? In python code There's multiple ways you can move file, though I would probably personally prefer something like that overall: from io import BytesIO from paths import GAME_PATH from urllib.request import urlopen from zipfile import ZipFile # Request t...
by L'In20Cible
Tue Mar 09, 2021 10:48 am
Forum: Plugin Development Support
Topic: [Cs:s] Server Command to download new version of plugin
Replies: 6
Views: 963

Re: [Cs:s] Server Command to download new version of plugin

I got the download part now work. But i have other issue, when downloads from github the files, and i want to make extract them, but when it extract it always first extract Zombie-Riot-main folder. So it won't properly extract files. I want to make it extract inside of that folder. That's how the a...
by L'In20Cible
Tue Mar 09, 2021 8:10 am
Forum: Plugin Development Support
Topic: [Cs:s] Server Command to download new version of plugin
Replies: 6
Views: 963

Re: [Cs:s] Server Command to download new version of plugin

There is quite a few issues in that code. First, the exception you referenced is caused by the following line: with urlopen(download_url, GAME_PATH, timeout=timeout) as url: The second parameter, is the additional data that should be included with your request, not a local path. Then, there ...
by L'In20Cible
Tue Mar 09, 2021 4:21 am
Forum: Plugin Requests
Topic: [HL2:DM] Crossbow
Replies: 94
Views: 52157

Re: [HL2:DM] Crossbow

OK, i guess its a no go for this script then, is a great script tho, to bad. Thanks for all your help. .PS. Me and a friend ( trying same thing) removed the lights script and left the hook you gave me, and it wont let my postal or effects work at all. If i remove it, it works fine, if you guys add ...

Go to advanced search