Search found 261 matches

by Kami
Sun Sep 27, 2020 3:52 pm
Forum: Plugin Development Support
Topic: Setting owner_handle of projectiles
Replies: 5
Views: 3971

Re: Setting owner_handle of projectiles

Have you tried the code with another type of projectile? I'm not sure but I think molotov_projectile creates a new entity called inferno when it explodes. Which would mean that the damage does not come from the projectile but the new entity. I couldn't test that theory though.
by Kami
Sun Aug 23, 2020 10:51 am
Forum: Plugin Releases
Topic: GunGame v1.3.2
Replies: 46
Views: 72650

Re: GunGame v1.3.0

Did you edit the configuration value for multi level gravity?

You can find it in under cfg\source-python\gungame\included_plugins\gg_multi_level.cfg

100% is the default which equals disabled.
by Kami
Fri Aug 21, 2020 10:47 am
Forum: Plugin Releases
Topic: Syphon
Replies: 7
Views: 8793

Re: Syphon

You were really close! I also added a maximum check for armor, as it has the same problem as health. # ============================================================================= # >> IMPORTS # ============================================================================= from players.entity import...
by Kami
Tue Aug 18, 2020 8:40 pm
Forum: Plugin Releases
Topic: Syphon
Replies: 7
Views: 8793

Re: Syphon

Hey, I did some quick updates to make this work with the newest version of SourcePython, I hope this helps :) # ============================================================================= # >> IMPORTS # ============================================================================= from players.enti...
by Kami
Sun Jun 21, 2020 7:31 am
Forum: Plugin Requests
Topic: (HL2DM) zombies
Replies: 14
Views: 9214

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

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

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

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

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

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: 106
Views: 290652

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

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

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

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

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

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

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

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

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

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

Go to advanced search