Search found 331 matches

by VinciT
Mon Aug 31, 2020 2:11 am
Forum: Plugin Development Support
Topic: [CSGO/ANY] Firing an event to a specific client
Replies: 4
Views: 2676

[CSGO/ANY] Firing an event to a specific client

In SourceMod, there's EventManager::FireEventToClient() : void EventManager::FireEventToClient(EventInfo *pInfo, IClient *pClient) { // The IClient vtable is +sizeof(void *) from the IGameEventListener2 (CBaseClient) vtable due to multiple inheritance. IGameEventListener2 *pG...
by VinciT
Sun Aug 30, 2020 9:36 pm
Forum: Plugin Releases
Topic: Round_end_sound
Replies: 6
Views: 5059

Re: Round_end_sound

The Downloadables class has the quite useful add_directory() function, which you can use to reduce the size of setDL():

Syntax: Select all

dl = Downloadables()
dl.add_directory('sound/round_end_sound')
by VinciT
Sun Aug 30, 2020 9:23 pm
Forum: Plugin Requests
Topic: 'NPC' that upon use will say it's unique name.
Replies: 3
Views: 2702

Re: 'NPC' that upon use will say it's unique name.

Awesome! Glad I could help.
Grubbsy wrote:I also thank you for the warm welcome, I've been lurking here using anything I can for help that's already here on the forums lol.
I know the feeling, I'm usually a lurker myself (plus the forums are chock full of useful information).
by VinciT
Sun Aug 30, 2020 8:48 pm
Forum: Plugin Requests
Topic: [HL2:DM] Little Silent Hill
Replies: 77
Views: 44730

Re: [HL2:DM] Little Silent Hill

The values you used should work fine. I think the issue might be the fact that the delay/timer to start the event gets reset whenever the map changes, a new round starts, as well as whenever the server becomes empty. And since you used values from 5 to 20 minutes, there's a high chance the delay is ...
by VinciT
Sun Aug 30, 2020 4:17 am
Forum: Plugin Requests
Topic: 'NPC' that upon use will say it's unique name.
Replies: 3
Views: 2702

Re: 'NPC' that upon use will say it's unique name.

Hi Grubbsy! Seeing as this is your first post, I'd like to welcome you to the Source.Python community! :smile: The following snippet should achieve what you're looking for: # ../named_npc/named_npc.py # Python import random # Source.Python from commands import CommandReturn from commands.client impo...
by VinciT
Fri Aug 28, 2020 4:27 am
Forum: Plugin Requests
Topic: [HL2:DM] Cough and Shake
Replies: 3
Views: 3058

Re: [HL2:DM] Cough and Shake

When you say smoke and dust, are you referring to map based entities/effects?
by VinciT
Fri Aug 28, 2020 3:06 am
Forum: Plugin Requests
Topic: [HL2:DM] Little Silent Hill
Replies: 77
Views: 44730

Re: [HL2:DM] Little Silent Hill

Here's my interpretation of your request: https://youtu.be/PyAhoOmxWd0 # ../silent_hill/silent_hill.py # Python import random # Source.Python from colors import Color from commands.server import ServerCommand from core import PLATFORM from engines.precache import Model from engines.server import ser...
by VinciT
Sun Aug 09, 2020 6:44 pm
Forum: Plugin Requests
Topic: alphaprops
Replies: 2
Views: 2373

Re: alphaprops

Hi daren, I think this should do the trick: # ../alpha_props/alpha_props.py # Source.Python from entities.constants import RenderMode from listeners import OnEntityOutput # Transparency of the picked up object. (0 - 255) PICKED_UP_ALPHA = 120 # Outputs that are fired when a player picks up a...
by VinciT
Fri Aug 07, 2020 4:44 pm
Forum: Plugin Requests
Topic: [Cs:s] Grenades Buy limit
Replies: 3
Views: 2854

Re: [Cs:s] Grenades Buy limit

Awesome, glad I could help. :smile:
by VinciT
Thu Aug 06, 2020 11:30 pm
Forum: Plugin Requests
Topic: [Cs:s] Grenades Buy limit
Replies: 3
Views: 2854

Re: [Cs:s] Grenades Buy limit

Hi, give this a try: # ../nade_limit/nade_limit.py # Source.Python from cvars import ConVar from engines.sound import Sound from entities.hooks import EntityPreHook, EntityCondition from events import Event from messages import SayText2 from players.entity import Player MAX_HEGRENADES = 1 MAX_FLASHB...
by VinciT
Thu Aug 06, 2020 7:38 pm
Forum: Plugin Requests
Topic: [HL2:DM] Killsound
Replies: 9
Views: 17700

Re: [HL2:DM] Killsound

the only thing i did, i added a 1 or 0 before the sound to turn it on and off If you want to use the numbers as a toggle for the sounds, give this a try: # ../killsound/killsound.py # Source.Python from events import Event from players.entity import Player VOLUME = 1.0 # How quickly does the sound ...
by VinciT
Thu Aug 06, 2020 2:15 am
Forum: Plugin Requests
Topic: [HL2:DM] Killsound
Replies: 9
Views: 17700

Re: [HL2:DM] Killsound

Here you go, without the burning ragdolls: # ../killsound/killsound.py # Source.Python from events import Event from players.entity import Player VOLUME = 1.0 # How quickly does the sound fade based on distance? # (0: no fading at all, can be heard across the whole map) ATTENUATION = 0.5 WEA...
by VinciT
Fri Jul 31, 2020 8:13 pm
Forum: Plugin Requests
Topic: [HL2:DM] Heartbeat
Replies: 23
Views: 27347

Re: [HL2:DM] Heartbeat

Seems like the OnClientDisconnect listener is too late sometimes. I've gotten rid of it, as the player_death event gets called when the player disconnects as well. I've also adjusted the attenuation so the heartbeat sound can be heard from a greater distance. https://www.youtube.com/watch?v=A6qcuEJn...
by VinciT
Wed Jul 29, 2020 2:54 am
Forum: Plugin Requests
Topic: [HL2:DM] Heartbeat
Replies: 23
Views: 27347

Re: [HL2:DM] Heartbeat

I've been trying to make it work with playgamesound, but whenever another sound plays, the heartbeat gets cut off. Is this the behavior you want?
by VinciT
Sun Jul 26, 2020 6:42 pm
Forum: Plugin Requests
Topic: [HL2:DM] Heartbeat
Replies: 23
Views: 27347

Re: [HL2:DM] Heartbeat

You should be able to hear your own heartbeat, unless you disabled it for yourself by typing any of the following in chat: !heartbeat , /heartbeat , !hb , /hb . https://www.youtube.com/watch?v=BqNuychQbO0 Are you using a different server (fastdl) for your files? Check your in-game console and see if...
by VinciT
Sun Jul 26, 2020 1:15 am
Forum: Plugin Requests
Topic: [HL2:DM] Heartbeat
Replies: 23
Views: 27347

Re: [HL2:DM] Heartbeat

Sorry! I thought I had replied to this thread. The sounds should get downloaded by players: downloads = Downloadables() # Make sure the players download the heartbeat sounds. downloads.add_directory('sound/hb') Since I tested the sounds without any other sounds playing, the v...
by VinciT
Thu Jul 09, 2020 3:15 am
Forum: Plugin Development Support
Topic: How to make Player model invisible?
Replies: 7
Views: 4055

Re: How to make Player model invisible?

Give this a try: # ../invis/invis.py # Python from time import time # Source.Python from events import Event from players.entity import Player from entities.constants import EntityEffects from messages import HintText, SayText2 class PlayerInvis(Player): """Custom Player class...
by VinciT
Sun Jul 05, 2020 1:29 am
Forum: Plugin Development Support
Topic: How to make Player model invisible?
Replies: 7
Views: 4055

Re: How to make Player model invisible?

If you want all the terrorists to be invisible, use this: # ../invis/invis.py # Source.Python from colors import Color from events import Event from players.entity import Player INVISIBLE = Color(255, 255, 255, 0) @Event('player_spawn') def player_spawn(event): player...
by VinciT
Sun Jun 28, 2020 3:51 am
Forum: General Discussion
Topic: [TF2] Extending the Player class
Replies: 11
Views: 7052

Re: [TF2] Extending the Player class

How will I be able to get this to work with PlayerIter? I would want it to return the TF2 player class instead of the generic orangebox one That should happen automatically as soon as you create the TF2 Player class. As you can see here , SP will look for a game-specific Player class and load it if...
by VinciT
Sat Jun 27, 2020 8:30 pm
Forum: General Discussion
Topic: [TF2] Extending the Player class
Replies: 11
Views: 7052

Re: [TF2] Extending the Player class

Similar to the Player classes for CSGO and CSS , you can create one for Team Fortress 2 ( source-python/packages/source-python/players/orangebox/tf.py ). As for enums, there's already data for teams , you can use that as a template for creating one for classes. The class properties you're using are ...

Go to advanced search