Search found 247 matches

by Kami
Tue Jul 27, 2021 6:50 pm
Forum: Plugin Development Support
Topic: [Cs:s] Effects showing certain user
Replies: 10
Views: 375

Re: [Cs:s] Effects showing certain user

Glad you got it working! This way could potentialy be more stressful on the server as you are now creating a new beam for every person that has effects enabled. If you got 10 players on the server that have effects enabled that would make 10 beams instead of just one beam that shows to all players t...
by Kami
Mon Jul 26, 2021 6:35 pm
Forum: Plugin Development Support
Topic: [Cs:s] Effects showing certain user
Replies: 10
Views: 375

Re: [Cs:s] Effects showing certain user

Okay, so I tried to think of a quick fix and this is what I came up with. You can add this new function that will either create a new list of indexes or use an existing list of userids to create a list of corresponding indexes. def getIndexList(list=None): if list == None: for i in PlayerIte...
by Kami
Mon Jul 26, 2021 5:30 pm
Forum: Plugin Development Support
Topic: [Cs:s] Effects showing certain user
Replies: 10
Views: 375

Re: [Cs:s] Effects showing certain user

Yeah, that's because you use the same function somewhere else in your code too. Didn't think about that. You could instead revert your getUseridList and simply create a new function: def getIndexList(): for i in PlayerIter.iterator(): yield i.index then you do def getEffectUsers(...
by Kami
Mon Jul 26, 2021 4:20 pm
Forum: Plugin Development Support
Topic: [Cs:s] Effects showing certain user
Replies: 10
Views: 375

Re: [Cs:s] Effects showing certain user

I guess you could just try and change

Syntax: Select all

yield i.userid


to

Syntax: Select all

yield i.index
by Kami
Mon Apr 05, 2021 11:33 am
Forum: Plugin Releases
Topic: Hostage Noblock
Replies: 2
Views: 429

Re: Hostage Noblock

You can simplify this a little by using an is_filter for EntityIter like this: from events import Event from filters.entities import EntityIter from entities.constants import CollisionGroup @Event('round_start') def round_start(args): for i in EntityIter('hostage_enti...
by Kami
Thu Apr 01, 2021 7:56 pm
Forum: Plugin Requests
Topic: HL2:DM - RANDOM BOT WEAPONS
Replies: 2
Views: 409

Re: HL2:DM - RANDOM BOT WEAPONS

Hey daren, you can give this a try: import random from events import Event from listeners import OnLevelInit from engines.server import queue_command_string types = ['pistol','crowbar','stunstick','frag','smg1','ar2','shotgun','rpg',...
by Kami
Tue Mar 16, 2021 10:22 am
Forum: Plugin Requests
Topic: Half-Life 2 Deathmatch - God mode
Replies: 13
Views: 1885

Re: Half-Life 2 Deathmatch - God mode

Hey daren, that problem should be solved with L'In20Cible's version.

Thanks for the tips! I didn't know about the caching, that will be very useful for the future!
by Kami
Mon Mar 15, 2021 6:50 pm
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.consecutive...
by Kami
Fri Mar 12, 2021 9:13 am
Forum: Plugin Requests
Topic: [HL2:DM] Deathmsg Help
Replies: 45
Views: 28688

Re: [HL2:DM] Deathmsg Help

This should fix your errors: # ============================================================================= # >> IMPORTS # ============================================================================= from colors import RED, YELLOW from cvars.public import PublicConVar from events import Event from...
by Kami
Sun Feb 21, 2021 2:23 pm
Forum: Plugin Development Support
Topic: [CS:S] Spawning bubbles in a square.
Replies: 0
Views: 1051

[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: 987

[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: 4
Views: 963

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: 907

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: 907

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: 907

[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: 971

[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: 27872

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: 27872

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: 27872

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: 27872

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 ...

Go to advanced search