Search found 238 matches

by Kami
Sun Feb 21, 2021 2:23 pm
Forum: Plugin Development Support
Topic: [CS:S] Spawning bubbles in a square.
Replies: 0
Views: 72

[CS:S] Spawning bubbles in a square.

Hey guys, does anyone know how to spawn either a func_dustmotes or a func_smokevolume? I'm trying to have bubbles come up from the ground in a square zone. I'm currently using this code to spawn bubbles but the bubbles fly too fast, even if I set the speed to 0 : def create_bubbles(model, height...
by Kami
Sat Feb 20, 2021 3:49 pm
Forum: Plugin Development Support
Topic: [CS:S] Closing a SP menu when a SM menu is sent.
Replies: 0
Views: 60

[CS:S] Closing a SP menu when a SM menu is sent.

Hey guys, I noticed that SP does not play well with SM menus. If you open a SP menu and a SM menu after that the SM menu will come up shortly and be replaced by the SP menu quickly. If I go the other way around and open SM first and SP second it does work without any problems. How would I go about c...
by Kami
Fri Feb 19, 2021 3:14 pm
Forum: Plugin Development Support
Topic: Streaming audio to clients
Replies: 3
Views: 135

Re: Streaming audio to clients

Are you using CS:S or CS:GO? The funfact Message of csgo has HTML compatibility, maybe that would be an approach. Edit: I had no luck with that approach. This is what I used for testing: # Source.Python from events.manager import game_event_manager from players.entity import Player from events impor...
by Kami
Mon Feb 15, 2021 9:07 pm
Forum: Plugin Development Support
Topic: [CS:S] Worldspawn touch problem
Replies: 5
Views: 166

Re: [CS:S] Worldspawn touch problem

Thank you very much, this works perfectly!
by Kami
Sun Feb 14, 2021 7:19 pm
Forum: Plugin Development Support
Topic: [CS:S] Worldspawn touch problem
Replies: 5
Views: 166

Re: [CS:S] Worldspawn touch problem

Wouldnt that Return true for a flash hitting the feet?
by Kami
Sun Feb 14, 2021 6:46 pm
Forum: Plugin Development Support
Topic: [CS:S] Worldspawn touch problem
Replies: 5
Views: 166

[CS:S] Worldspawn touch problem

Hey guys, I'm trying to determine when you touch the ground. I tried multiple ways, including this: @EntityPreHook(EntityCondition.equals_entity_classname('player'), 'touch') def Entity_StartTouch(args): entity = make_object(Entity, args[1]) #this is p...
by Kami
Tue Feb 02, 2021 8:26 pm
Forum: Plugin Development Support
Topic: [CS:GO] Warmup HudDestination
Replies: 1
Views: 672

[CS:GO] Warmup HudDestination

Hey guys,

I was wondering if it was possible to send a message of the same type as the warmup message in CS:GO to a player.
I've read at some places that it's a client side message, so I'm not sure we can do anything about it.
by Kami
Tue Feb 02, 2021 8:07 pm
Forum: Whatever
Topic: Setting up a CS:GO server
Replies: 7
Views: 983

Re: Setting up a CS:GO server

using sv_lan 1 with your start command line seems to work! Thank you :)
by Kami
Tue Feb 02, 2021 5:22 pm
Forum: Whatever
Topic: Setting up a CS:GO server
Replies: 7
Views: 983

Re: Setting up a CS:GO server

This gets me a little further but now it says

Code: Select all

RejectConnection: 192.168.178.29:27005 - Server only accepting connections from game lobby 192.168.178.29:27005 80316491
by Kami
Tue Feb 02, 2021 5:09 pm
Forum: Whatever
Topic: Setting up a CS:GO server
Replies: 7
Views: 983

Re: Setting up a CS:GO server

It's a fresh install, I just checked and it's uptodate
by Kami
Tue Feb 02, 2021 4:48 pm
Forum: Whatever
Topic: Setting up a CS:GO server
Replies: 7
Views: 983

Setting up a CS:GO server

Hey guys, I'm trying to set up a CS:GO dediacted server and I'm running into some problems. I can start the server fine and can see it in the server browser too. But when I connect via Lan IP it goes to the loading screen, fills the loading bar in 1 second and goes back to the main menu. The server ...
by Kami
Sun Jan 31, 2021 10:06 pm
Forum: Plugin Requests
Topic: [REQUEST]Hide Radar
Replies: 16
Views: 1549

Re: [REQUEST]Hide Radar

You could use

Syntax: Select all

SimpleMenu.get_user_queue(player.index).active_menu


This will give you any active menu, no matter if SimpleMenu, PagedMenu or ListMenu.
by Kami
Sun Jan 31, 2021 5:22 pm
Forum: Plugin Development Support
Topic: [CS:S/CSGO] How to get list of primaries and secondaries and use able in menu?
Replies: 7
Views: 826

Re: [CS:S/CSGO] How to get list of primaries and secondaries and use able in menu?

satoons way might actually be easier for making a buy menu (supposed you are trying that) as you can loop through the categories instead of checking for them afterwards or adding them manually. Here are some examples: from filters.weapons import WeaponClassIter for weapon in WeaponClassIter('...
by Kami
Sun Jan 31, 2021 4:34 pm
Forum: Plugin Development Support
Topic: [CS:S/CSGO] How to get list of primaries and secondaries and use able in menu?
Replies: 7
Views: 826

Re: [CS:S/CSGO] How to get list of primaries and secondaries and use able in menu?

Hey, I'm not sure if this is the best way to do it but you can give it a try: from weapons.manager import weapon_manager weapon_list = weapon_manager.ini['weapons'] for weapon in weapon_list: if 'cost' in weapon_list[weapon]: print(f"Weapon name: {weapon} | Cost: {weapon_lis...
by Kami
Sat Jan 30, 2021 2:11 pm
Forum: Plugin Development Support
Topic: [CS:S] Return type not working for shouldcollide
Replies: 4
Views: 605

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

Thank you for the example! Have to try if it works for my problem.
by Kami
Fri Jan 29, 2021 9:57 pm
Forum: Plugin Development Support
Topic: [CS:S] Return type not working for shouldcollide
Replies: 4
Views: 605

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

Thank you very much, this is exactly what I was looking for! I've seen this in a SourceMod plugin but I'm not that good with hooks yet so this is a huge help.

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.
by Kami
Thu Jan 28, 2021 7:31 pm
Forum: Plugin Development Support
Topic: [CS:S] Return type not working for shouldcollide
Replies: 4
Views: 605

[CS:S] Return type not working for shouldcollide

Hey guys, I'm trying to hook ShouldCollide with this code from entities.entity import Entity from entities.hooks import EntityCondition, EntityPreHook from memory import make_object from memory import Convention from memory import DataType @EntityPreHook( EntityCondition.is_player, lambda player...
by Kami
Wed Jan 27, 2021 8:20 pm
Forum: Plugin Releases
Topic: [ANY] Weapon Zoom
Replies: 26
Views: 2095

Re: [ANY] Weapon Zoom

You need to find the texture for the crosshair and then you can use this version: from commands.client import ClientCommand from entities.hooks import EntityCondition from entities.hooks import EntityPreHook from listeners import get_button_combination_status from listeners import ButtonStatus from ...
by Kami
Tue Jan 26, 2021 12:48 pm
Forum: Plugin Releases
Topic: [ANY] Weapon Zoom
Replies: 26
Views: 2095

Re: [ANY] Weapon Zoom

Just wanted to make sure it's okay for me to put the code on github :D

Thank you for the idea with the poster, I think it fits really well.

Image
by Kami
Tue Jan 26, 2021 5:18 am
Forum: Plugin Development Support
Topic: [HL2DM] set_model plays animation
Replies: 3
Views: 196

Re: [HL2DM] set_model plays animation

Awesome, thank you!

Go to advanced search