Search found 32 matches

by khaimovmr
Wed Jun 17, 2020 7:38 pm
Forum: Plugin Development Support
Topic: [CSGO] Determine if player's crosshair is on the other player's head
Replies: 2
Views: 643

Re: [CSGO] Determine if player's crosshair is on the other player's head

Thanks a lot, VinciT!
player.get_trace_ray() did solve it!
by khaimovmr
Wed Jun 17, 2020 4:02 pm
Forum: Plugin Development Support
Topic: CS:GO DM - Detecting player invulnerability
Replies: 2
Views: 685

Re: CS:GO DM - Detecting player invulnerability

I'm interested in this too, if you mean the semi-transparent mode in DM when the player is just spawned.
by khaimovmr
Wed Jun 17, 2020 10:56 am
Forum: Plugin Development Support
Topic: [CSGO] Determine if player's crosshair is on the other player's head
Replies: 2
Views: 643

[CSGO] Determine if player's crosshair is on the other player's head

Hey, guys!
Long time no see.
Does anyone know the way to determine if player is pointing (crosshair) on the other player's head without shooting the weapon?
Previously I've used the prehook of the on_take_damage event, but it's fired only after the weapon is.
by khaimovmr
Sat Mar 21, 2020 2:01 pm
Forum: Plugin Development Support
Topic: [CSGO] Transparent character with action on "e"
Replies: 1
Views: 9192

[CSGO] Transparent character with action on "e"

Hey, guys.

I'm wondering if they is a possibility with source python to spawn a player model (not bot or player themselves) that:
1. has a specific amount of transparency
2. has an action activated on "e"
by khaimovmr
Sat Jan 18, 2020 5:38 pm
Forum: General Discussion
Topic: Custom ingame UI elements
Replies: 4
Views: 31506

Custom ingame UI elements

I'm wondering if there's a possibility to add a custom menu, or other interactive flat surface element? Would be great to have an HTML-based one, for example. That have an ability to popup in the game without exiting to the main game menu. The old, numbered CS menus are just too obsolete and narrow ...
by khaimovmr
Tue Sep 10, 2019 10:07 pm
Forum: General Discussion
Topic: What is the most reasonable way to install a pypi package to source.python?
Replies: 15
Views: 19404

Re: What is the most reasonable way to install a pypi package to source.python?

As a workaround you could make a middleware REST service to store and retrieve the data - there, as in the standalone python service you can use psycopg2 as well.
by khaimovmr
Mon Sep 09, 2019 3:36 pm
Forum: General Discussion
Topic: What is the most reasonable way to install a pypi package to source.python?
Replies: 15
Views: 19404

Re: What is the most reasonable way to install a pypi package to source.python?

Have you tried to install the psycopg2 to the <csgo-install-dir>/csgo/addons/source-python/packages/site-packages?

Code: Select all

pip install psycopg2 -t $CSGO_INSTALL_DIR/csgo/addons/source-python/packages/site-packages


PS: swap of course $CSGO_INSTALL_DIR with the full csgo installation directory.
by khaimovmr
Tue Jun 25, 2019 5:28 pm
Forum: General Discussion
Topic: Grant permission for a specific Steam Group
Replies: 2
Views: 7246

Grant permission for a specific Steam Group

Is there a possibility to apply this kind of authorization?
For example:
the sourcepython on the client connect checks whether he is the member of the specified Steam Group and if so - applies him specific permission, for example `the_group.officer`

What do you know about the feature like this guys?
by khaimovmr
Sun Jun 09, 2019 1:21 pm
Forum: General Discussion
Topic: [CSGO] parent-inherited permissions doesn't show in Player.permissions property
Replies: 5
Views: 7845

Re: [CSGO] parent-inherited permissions doesn't show in Player.permissions property

We have overloaded the ___contains__ method: https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/addons/source-python/packages/source-python/auth/manager.py#L149 So, you can grant a player the permission something.*. If you then check if he has something.x or something.y it will ret...
by khaimovmr
Sat Jun 08, 2019 5:35 pm
Forum: General Discussion
Topic: [CSGO] parent-inherited permissions doesn't show in Player.permissions property
Replies: 5
Views: 7845

Re: [CSGO] parent-inherited permissions doesn't show in Player.permissions property

By the way - is there some kind of method that checks for the permissions by the mask (like "some_permissions.*")? The _AuthManager.is_player_authorized doesn't check for the mask/regex - it's just checking for a strict equality (occurrence of the permission string in the list of the playe...
by khaimovmr
Fri Jun 07, 2019 11:40 pm
Forum: General Discussion
Topic: [CSGO] parent-inherited permissions doesn't show in Player.permissions property
Replies: 5
Views: 7845

[CSGO] parent-inherited permissions doesn't show in Player.permissions property

Hey, guys. I'm using a flatfiles to assign a permissions to players: players.json - for the players and parents.json for the parents (aka group of some permissions) When I'm getting the permissions property of this Player object (steamid `76561197983153964`) it's returning an empty dictionary. Comma...
by khaimovmr
Mon May 13, 2019 1:07 pm
Forum: General Discussion
Topic: Player.dead property isn't in the wiki
Replies: 3
Views: 3132

Re: Player.dead property isn't in the wiki

Thanks, Ayuto!
by khaimovmr
Sun May 12, 2019 11:31 pm
Forum: General Discussion
Topic: Player.dead property isn't in the wiki
Replies: 3
Views: 3132

Player.dead property isn't in the wiki

Player.dead property isn't in the wiki. Why is it so?
I've found this property eventually after googling and reading a lot of posts (searched by 'is alive' keywords).
Maybe should we update the wiki?
by khaimovmr
Thu May 09, 2019 1:21 am
Forum: Plugin Development Support
Topic: CSGO: Bot waypoints real time manipulation
Replies: 8
Views: 3534

Re: CSGO: Bot waypoints real time manipulation

I've found the file `<csgo-install-folder>/csgo/server.so` and made a symlink for it `<csgo-install-folder>/csgo/server_srv.so`.
Got it working. Thanks again!
by khaimovmr
Thu May 09, 2019 12:50 am
Forum: Plugin Development Support
Topic: CSGO: Bot waypoints real time manipulation
Replies: 8
Views: 3534

Re: CSGO: Bot waypoints real time manipulation

Trying your solution right now, Ayuto - seems like it can not find "server_srv.so" on find_binary method execution: ``` L 05/09/2019 - 00:36:27: - sp.hooks.exceptions - EXCEPTION [SP] Caught an Exception: Traceback (most recent call last): File "../addons/source-python/packages/source...
by khaimovmr
Tue May 07, 2019 9:09 am
Forum: Whatever
Topic: Donate to Source-Python - how?
Replies: 5
Views: 12950

Donate to Source-Python - how?

Hey, Guys!

I wanted to appreciate your effort to the community but didn't find any posts on forum about the possible ways of donations. Is it a principal thing or you're just so humble? :)

IMO the donation link should be both on forum and wiki.

Keep up a good work, guys!
by khaimovmr
Mon May 06, 2019 11:22 am
Forum: General Discussion
Topic: Code completion doesn't work with Source.Python
Replies: 8
Views: 6233

Re: Code completion doesn't work with Source.Python

Wow, that's a good news, guys.
This feature will boost the mod-development process a lot, at least for newbies.
by khaimovmr
Sat May 04, 2019 2:56 pm
Forum: General Discussion
Topic: Code completion doesn't work with Source.Python
Replies: 8
Views: 6233

Re: Code completion doesn't work with Source.Python

Isn't there a reason to create a dummy libraries for such core.dll/so functions, objects, e.t.c? Just to have a reference for the objects that we can use.
by khaimovmr
Sat May 04, 2019 2:48 pm
Forum: Plugin Development Support
Topic: CSGO: Bot waypoints real time manipulation
Replies: 8
Views: 3534

Re: CSGO: Bot waypoints real time manipulation

Ayuto, thank you so much, man!

Go to advanced search