Search found 157 matches

by Kami
Sun Jun 21, 2020 7:31 am
Forum: Plugin Requests
Topic: (HL2DM) zombies
Replies: 14
Views: 1473

Re: (HL2DM) zombies

You need to load zombie_waves and zombie_waves_editor. zombie_waves_editor had some outdated Translation code which I replaced with the new one. zombie_waves.py import json from core import PLATFORM from engines.server import global_vars from entities.entity import Entity from entities.hooks import ...
by Kami
Wed Jun 10, 2020 7:32 pm
Forum: Plugin Development Support
Topic: Coding a "Smokebomb"-like ability
Replies: 12
Views: 924

Re: Coding a "Smokebomb"-like ability

I think you could check for any keyboard key beeing pressed. I will try and figure that out later! Edit: This is what I came up with. No need to bind a command to a key, you can just press E and deploy your smokebomb. It has a cooldown of 5 seconds which you can change in the code. from players.enti...
by Kami
Wed Jun 10, 2020 6:56 pm
Forum: Plugin Development Support
Topic: Coding a "Smokebomb"-like ability
Replies: 12
Views: 924

Re: Coding a "Smokebomb"-like ability

Hey, that sounds like a cool idea. It could propably be expanded with other ninja style abilities like backstabbing or walljumps. For the smokes you can try this: from players.entity import Player from entities.entity import Entity from commands.typed import TypedSayCommand, TypedClientCommand @Type...
by Kami
Thu May 21, 2020 10:37 am
Forum: Plugin Development Support
Topic: Give weapon after respawn
Replies: 1
Views: 254

Re: Give weapon after respawn

Hey, player_death seems to be too late to fetch the weapon data. You can use player_hurt and check if the remaining health of the player is less or equal to 0. @Event('player_hurt') def player_hurt(ev): if int(ev['health']) <= 0: #dostuff For the command itsel...
by Kami
Wed May 29, 2019 6:11 pm
Forum: Plugin Requests
Topic: killstreaks for hl2dm
Replies: 8
Views: 10137

Re: killstreaks for hl2dm

The error happens when a player dies without an attacking player (suicide). The error should not be a problem but for cosmetic reasons try this: from events import Event from colors import Color from players.entity import Player from messages import HudMsg import core from listeners.tick import Dela...
by Kami
Thu May 23, 2019 6:48 pm
Forum: Plugin Requests
Topic: killstreaks for hl2dm
Replies: 8
Views: 10137

Re: killstreaks for hl2dm

Thanks. (I would recognize my crappy coding everywhere ;D)
by Kami
Tue May 14, 2019 5:03 pm
Forum: Plugin Releases
Topic: [CSS/CSGO] Warcraft: Source
Replies: 89
Views: 116664

Re: [CSS/CSGO] Warcraft: Source

So, after talking to Pwned, I decided to delete my post, so he can take his time to make sure the commands work correctly instead of adding all of them untested.
by Kami
Tue Apr 30, 2019 3:30 pm
Forum: Plugin Development Support
Topic: [CS:GO] how to get the number of real people in the team
Replies: 3
Views: 1164

Re: [CS:GO] how to get the number of real people in the team

Hey, this is how you could do it: def get_real_player_count(team_number): count = 0 for player in PlayerIter('human'): if player.team == team_number: count += 1 return count Available filters for PlayerIter should be: 'all', 'bot', 'human', 'alive', 'dead', 'un', 'spec', 't',...
by Kami
Sat Mar 30, 2019 7:59 pm
Forum: Plugin Requests
Topic: Last Man Standing
Replies: 14
Views: 12149

Re: Last Man Standing

And this plugin was written and tested on a HL2:DM server and it still loads fine there. I guess you made a mistake when copying it over.
by Kami
Sat Mar 30, 2019 7:56 pm
Forum: Plugin Requests
Topic: Last Man Standing
Replies: 14
Views: 12149

Re: Last Man Standing

Loads fine for me, not sure what your problem is. Try to copy the code again.
by Kami
Sat Mar 30, 2019 7:03 pm
Forum: Plugin Development Support
Topic: [HL2:DM] Mapchooser
Replies: 2
Views: 976

Re: [HL2:DM] Mapchooser

Code: Select all

FileNotFoundError: [Errno 2] No such file or directory: Path('../addons/source-python/plugins/supermod/cfg/mapconfigs/map_default.cfg')


map_default.cfg is missing.
by Kami
Sat Mar 30, 2019 7:01 pm
Forum: Plugin Requests
Topic: Last Man Standing
Replies: 14
Views: 12149

Re: Last Man Standing

from players.entity import Player from events import Event from events.hooks import PreEvent, EventAction from filters.players import PlayerIter from lms import config from messages import SayText2, HudMsg from listeners.tick import Delay,Repeat from commands.server import ServerCommand from comman...
by Kami
Thu Mar 28, 2019 12:13 pm
Forum: Plugin Requests
Topic: Last Man Standing
Replies: 14
Views: 12149

Re: Last Man Standing

Last Man Standing Plugin Config: points_per_kill - How many points you get per kill / Wieviele Punkte man pro Kill bekommt. points_third_place - How many points you get for third place / Wieviele Punkte der dritte Platz kriegt points_second_place - How many points you get for second place / Wieviele...
by Kami
Sun Mar 24, 2019 12:38 pm
Forum: Plugin Development Support
Topic: [TF2] Force start round in mp_tournament
Replies: 2
Views: 1957

Re: [TF2] Force start round in mp_tournament

Hey, have you tried if those options even work? I did some tests and while the class limits work, most of the other things do not. Also, if you want to force the round to start, you can simply use mp_restartgame. Judging from the fact, that this command even triggers the same countdown as both teams...
by Kami
Fri Nov 16, 2018 6:13 pm
Forum: Plugin Development Support
Topic: [CS:GO] player.friction
Replies: 7
Views: 3659

Re: [CS:GO] player.friction

Hey, I'm not sure if this works the same way it does in Sourcemod but it seems they can send different values of the same convar to different players. I found Player.send_convar_value(cvar_name, value) in the documentation, so you could propably try and do: player.send_convar_value("sv_fric...
by Kami
Sat Oct 13, 2018 3:44 pm
Forum: Plugin Requests
Topic: A little es help
Replies: 7
Views: 7782

Re: A little es help

I did some testing and it seems that not the removing itself is the problem. I can change maps as often as I want without crashing when I'm not on it, but once I actually join the server after the map has been "cleaned" it crashes, even on boot_camp. I guess that there is some essential en...
by Kami
Fri Oct 12, 2018 6:58 pm
Forum: Plugin Requests
Topic: A little es help
Replies: 7
Views: 7782

Re: A little es help

Could you name a map that crashes? I tried dms_spookface1 which you mentioned in another post but it works fine on that map!
by Kami
Sat Oct 06, 2018 5:50 pm
Forum: General Discussion
Topic: Downloadables
Replies: 5
Views: 3393

Re: Downloadables

I'm not sure if that is what is causing your problem but I experienced similar behavior before when files were added to the Downloadables which did not exists on the server. The server told the client to download the files (hence the downloading every map) but since the server did not have the files...
by Kami
Wed Oct 03, 2018 7:16 pm
Forum: Plugin Requests
Topic: [HL2:DM] spawn effect
Replies: 7
Views: 3539

Re: [HL2:DM] spawn effect

# Valid effects: # EFFECT = 1 # EFFECT = 2 # EFFECT = 3 EFFECT = 2 EFFECT_TIME = 5 import es import gamethread import random def player_spawn(ev): userid = int(ev['userid']) if EFFECT == 1: effect1(userid) elif EFFECT == 2: effect2(userid) elif EFFECT == 3: e...
by Kami
Wed Oct 03, 2018 3:51 pm
Forum: Plugin Requests
Topic: [HL2:DM] spawn effect
Replies: 7
Views: 3539

Re: [HL2:DM] spawn effect

I tried it with the emulator in CS:S and it showed me the effect. Your version did not work because you were missing the import.

Go to advanced search