Search found 1256 matches

by L'In20Cible
Sun Mar 07, 2021 10:34 pm
Forum: General Discussion
Topic: Unknown Command "SP"
Replies: 6
Views: 4595

Re: Unknown Command "SP"

Hello, i try to get source.python running on a server i rented. My goal is to get the Warcraft Mod for CS:GO running. The Server is Linux based and using Debian 9. I'm not into coding so this is all kind of confusing to me. I followed the installation guide and double checked all the folders are in...
by L'In20Cible
Sat Mar 06, 2021 8:45 pm
Forum: General Discussion
Topic: Unknown Command "SP"
Replies: 6
Views: 4595

Re: Unknown Command "SP"

Hello, i try to get source.python running on a server i rented. My goal is to get the Warcraft Mod for CS:GO running. The Server is Linux based and using Debian 9. I'm not into coding so this is all kind of confusing to me. I followed the installation guide and double checked all the folders are in...
by L'In20Cible
Sat Mar 06, 2021 6:37 am
Forum: Plugin Requests
Topic: [HL2:DM] Crossbow
Replies: 96
Views: 88199

Re: [HL2:DM] Crossbow

It crashes and give only 1 error :confused: , and it says the error is from the hooks, please can someone try and see if this could be fixed. Thank you. :grin: , I dont know what causes the crash, but when i // block the crossbow script, it gives no errors or crashes. 2021-03-05 19:58:22 - sp - EXC...
by L'In20Cible
Fri Mar 05, 2021 11:10 am
Forum: Plugin Development Support
Topic: Character limit for 255 bytes
Replies: 6
Views: 6759

Re: Character limit for 255 bytes

Sorry to bump an older thread of mine. But how can I apply these to a TranslationStrings instance? It throws me an: AttributeError: 'TranslationStrings' object has no attribute 'encode' I'm using TranslationStrings to tokenize player names and other stuff, so its very dynamic in length. The best wo...
by L'In20Cible
Fri Mar 05, 2021 11:00 am
Forum: Plugin Requests
Topic: [HL2:DM] Crossbow
Replies: 96
Views: 88199

Re: [HL2:DM] Crossbow

I still get this, please help. 2021-03-04 19:01:34 - sp - EXCEPTION [SP] Caught an Exception: Traceback (most recent call last): File "..\addons\source-python\packages\source-python\effects\hooks.py", line 98, in pre_playback_temp_entity make_object(RecipientFilter, stack_data[1])) Runtim...
by L'In20Cible
Fri Feb 26, 2021 2:43 pm
Forum: Plugin Development Support
Topic: Using engine server's get_player_info
Replies: 3
Views: 3531

Re: Using engine server's get_player_info

I did find that for CS:S the offsets are wrong, I'm pretty sure either fakeplayer or ishltv got removed. It's probably the opposite; wasn't added at the time that game was released. :tongue: I believe it is ishltv that is missing, because 108 was True for regular bots and False for me when I tested...
by L'In20Cible
Fri Feb 26, 2021 1:19 am
Forum: Plugin Development Support
Topic: Using engine server's get_player_info
Replies: 3
Views: 3531

Re: Using engine server's get_player_info

We could probably export that type (feel free to PR it, or create an issue as feature request) but here is an untested example showing how you could call and read it: from engines.server import engine_server from memory import alloc from memory import get_virtual_function from memory.helpers import ...
by L'In20Cible
Sun Feb 14, 2021 7:29 pm
Forum: Plugin Development Support
Topic: [CS:S] Worldspawn touch problem
Replies: 5
Views: 3607

Re: [CS:S] Worldspawn touch problem

Try something like this: from entities.entity import Entity from entities.constants import WORLD_ENTITY_INDEX def is_player_on_world(player): try: return Entity.from_inthandle( player.ground_entity).index == WORLD_ENTITY_INDEX except OverflowError: return False
by L'In20Cible
Sun Feb 14, 2021 7:27 pm
Forum: Plugin Development Support
Topic: [CS:S] Worldspawn touch problem
Replies: 5
Views: 3607

Re: [CS:S] Worldspawn touch problem

Kami wrote:Wouldnt that Return true for a flash hitting the feet?

If the ground entity isn't -1, then that's the handle of the entity the player is standing on. You can retrieve it that way and check whether it's a flashbang or not:

Syntax: Select all

entity = Entity.from_inthandle(player.ground_entity)
by L'In20Cible
Sun Feb 07, 2021 7:59 pm
Forum: Plugin Development Support
Topic: Threaded Menu crash
Replies: 7
Views: 4721

Re: Threaded Menu crash

Using a reentrant lock to send the menu would likely fix the context switch, however, the main unlocked thread (aka the game) could still send a message at any time during game-play likely causing the exact same crash if a worker is currently executing regardless of its locking state. Threading bitb...
by L'In20Cible
Mon Feb 01, 2021 7:28 am
Forum: Plugin Requests
Topic: [REQUEST]Hide Radar
Replies: 21
Views: 14492

Re: [REQUEST]Hide Radar

A hook on the ShowMenu usermessage would definitely be the best option. Not only it seems like an overall better approach to me than a constant lookup through repeats, it also has the merit of also detecting menus sent by SM, etc. That was my initial idea, but I was greeted by this: # ../showmenu_h...
by L'In20Cible
Mon Feb 01, 2021 6:52 am
Forum: Plugin Requests
Topic: [REQUEST]Hide Radar
Replies: 21
Views: 14492

Re: [REQUEST]Hide Radar

I feel iffy about using _radio_queues to check if the player has any menus open, is there a better/cleaner way to get this info? A hook on the ShowMenu usermessage would definitely be the best option. Not only it seems like an overall better approach to me than a constant lookup through repeats, it...
by L'In20Cible
Fri Jan 29, 2021 10:57 pm
Forum: Plugin Development Support
Topic: [CS:S] Return type not working for shouldcollide
Replies: 4
Views: 3126

Re: [CS:S] Return type not working for shouldcollide

I'm still confused how I would use a SendProp (in my case "m_CollisionGroup") and the proxy function or even how to get it. Here's a quick and dirty example: from entities.entity import Entity from entities.props import ServerClass from memory import Convention from memory import DataType...
by L'In20Cible
Tue Jan 26, 2021 5:24 pm
Forum: Plugin Releases
Topic: [ANY] Weapon Zoom
Replies: 27
Views: 31371

Re: [ANY] Weapon Zoom

Damn, what a museum-worthy masterpiece! xDD
by L'In20Cible
Mon Jan 25, 2021 3:46 pm
Forum: Plugin Releases
Topic: [ANY] Weapon Zoom
Replies: 27
Views: 31371

Re: [ANY] Weapon Zoom

Hey daren, I just tested L'In20Cible's version and it works perfectly, so you can use that. @L'In20Cible: I gotta be honest, I'm not sure what the etiquette is in this kind of situation. Am I supposed to add your code to my github, even though you wrote it? I don't want to be rude but I'm really no...
by L'In20Cible
Sat Jan 23, 2021 2:41 pm
Forum: Plugin Development Support
Topic: [HL2:DM] Source Python installation
Replies: 2
Views: 1922

Re: [HL2:DM] Source Python installation

You are trying to run a CS:GO build on HL2:DM. Make sure to install the right one for that game: http://downloads.sourcepython.com/
by L'In20Cible
Sat Jan 23, 2021 2:57 am
Forum: Plugin Releases
Topic: [ANY] Weapon Zoom
Replies: 27
Views: 31371

Re: [ANY] Weapon Zoom

Thank you for your feedback! I tried to include some of your tips. My current code is: # ============================================================================= # >> IMPORTS # ============================================================================= from commands.client import ClientComma...
by L'In20Cible
Fri Jan 22, 2021 10:17 pm
Forum: Plugin Releases
Topic: [ANY] Weapon Zoom
Replies: 27
Views: 31371

Re: [ANY] Weapon Zoom

def toggle_zoom(player): weapon = player.active_weapon if weapon is None or weapon.classname not in zoom_weapons: return player.fov = player.default_fov if player.fov == zoom_level else zoom_level Hmm, couldn't that be shortened/simplified to def toggle_zoom(player): if player.activ...
by L'In20Cible
Fri Jan 22, 2021 9:39 pm
Forum: Plugin Releases
Topic: [ANY] Weapon Zoom
Replies: 27
Views: 31371

Re: [ANY] Weapon Zoom

https://github.com/kamikazekuh/zoom Without going into details, because I don't currently have time to do so, here are some stuff to consider: ⋅ You should avoid repeated attribute retrievals. Remember, Python is dynamic and won't do any kind of optimization for you. For example, there is...

Go to advanced search