Search found 52 matches

by khaimovmr
Tue Mar 26, 2019 12:43 am
Forum: Plugin Development Support
Topic: CSGO: Bot waypoints real time manipulation
Replies: 11
Views: 25503

CSGO: Bot waypoints real time manipulation

Hi, guys!

I have a goal to make bot run into the specific variable point of existent official map (de_dust2, for example).
Does anybody have any clues where to start digging for info on this?
by khaimovmr
Tue Mar 26, 2019 12:12 am
Forum: Plugin Development Support
Topic: CSGO: Random bots spawn
Replies: 5
Views: 7563

Re: CSGO: Random bots spawn

I'm fairly sure I remember seeing a method used to select a spawnpoint for player. Hooking that method could allow you to create or move a spawnpoint to any location of your choice before returning it. I will see if I can find its name again. EDIT: The method is CBasePlayer::EntSelectSpawnPoint . I...
by khaimovmr
Mon Mar 25, 2019 9:15 pm
Forum: General Discussion
Topic: CSGO: Calculate a distance from one player/entity to another
Replies: 2
Views: 3056

Re: CSGO: Calculate a distance from one player/entity to another

L'In20Cible wrote:
khaimovmr wrote:Hy guys!
Does someone knows - is there a way in the source-python of calculating the distance from one player/entity to another?

Syntax: Select all

distance = player.origin.get_distance(entity.origin)

Man, thanks a lot!
by khaimovmr
Mon Mar 25, 2019 3:43 am
Forum: General Discussion
Topic: CSGO: Calculate a distance from one player/entity to another
Replies: 2
Views: 3056

CSGO: Calculate a distance from one player/entity to another

Hy guys!
Does someone knows - is there a way in the source-python of calculating the distance from one player/entity to another?
by khaimovmr
Sun Nov 11, 2018 5:17 pm
Forum: Plugin Development Support
Topic: CSGO: Random bots spawn
Replies: 5
Views: 7563

Re: CSGO: Random bots spawn

Ayuto wrote:A good start would be to take a look at the *.nav files to see what information they contain. IIRC, there are Python libraries to parse them.

Thank you, Ayuto! I'll dig this way.
by khaimovmr
Sun Nov 11, 2018 12:23 am
Forum: Plugin Development Support
Topic: [CS:GO] Parent Menu
Replies: 4
Views: 5433

Re: [CS:GO] Parent Menu

velocity wrote:How would I make a parent_menu if it takes an argument like index.

Don't you mean that you want a dynamically composed menu items in your parent menu?
by khaimovmr
Sat Nov 10, 2018 10:27 pm
Forum: Plugin Development Support
Topic: CSGO: Random bots spawn
Replies: 5
Views: 7563

Re: CSGO: Random bots spawn

Bump up.

Guys, maybe something? )
by khaimovmr
Tue Nov 06, 2018 12:27 am
Forum: Plugin Development Support
Topic: CSGO: Random bots spawn
Replies: 5
Views: 7563

CSGO: Random bots spawn

Hey, guys! I'm trying to find a correct approach to implement random spawning the bots near to the player. I want to make those bots spawn in a periodical manner within some range around. It would be great if it will be a real random location but the spawn on nearby bot waypoints or maybe on other p...
by khaimovmr
Sun Mar 04, 2018 7:52 pm
Forum: General Discussion
Topic: Code completion doesn't work with Source.Python
Replies: 8
Views: 10019

Code completion doesn't work with Source.Python

Hi, guys. I'm developing some plugins on Source.Python in Ubuntu. I have some problems with the development process. For example, IDE, that I'm using can't automatically find all the packages that's I'm using (from the Source.Python itself, from the "site-packages" folder and from the Pyth...
by khaimovmr
Fri Aug 25, 2017 8:31 pm
Forum: Plugin Development Support
Topic: Installing Source.Python with pip on linux
Replies: 4
Views: 3766

Re: Installing Source.Python with pip on linux

You can't really run the Source.Python packages within a Python shell as they heavily rely on source engine stuff, which is exposed by our Boost.Python modules/packages. Those modules/packages are loaded by the core.dll/so, which can only be loaded as a plugin by a source server. That's right. Just...
by khaimovmr
Fri Aug 25, 2017 5:35 pm
Forum: Plugin Development Support
Topic: Installing Source.Python with pip on linux
Replies: 4
Views: 3766

Re: Installing Source.Python with pip on linux

I use vscode, what I did to get the autocompletions to work was set up a venv and copy the source.python modules to lib/site-packages. This worked for me, not sure how vim works. That's working out fine for vim. Thanks, inf! There is only still a problem when i'm using an interactive python shell -...
by khaimovmr
Fri Aug 25, 2017 2:01 pm
Forum: Plugin Development Support
Topic: Installing Source.Python with pip on linux
Replies: 4
Views: 3766

Installing Source.Python with pip on linux

Hy guys! I'm developing on linux with vim so the main autocompletion scheme for me is to get the Source.Python package installed the right way (pip or a deb-package). So that source.python package will be visible globally or in a separate virtualenv. Is there a link to pass to the pip to install sou...

Go to advanced search