Search found 184 matches

by VinciT
Sun Aug 09, 2020 6:44 pm
Forum: Plugin Requests
Topic: alphaprops
Replies: 2
Views: 17

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

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

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

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

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: 14
Views: 12998

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: 14
Views: 12998

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: 14
Views: 12998

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: 14
Views: 12998

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

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

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

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

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 ...
by VinciT
Sat Jun 20, 2020 9:31 am
Forum: Plugin Releases
Topic: [CSGO] Curving Flash
Replies: 7
Views: 1305

Re: [CSGO] Curving Flash

That is indeed a cool idea, well done! :smile: Thank you! That said, you know me... here are some points: I would expect nothing less. :grin: ../curving_flash.py#L27 : That method isn't static, so this should rather be: player.view_angle.get_angle_vectors(None, right, None) Oh that's nice. ...
by VinciT
Thu Jun 18, 2020 5:43 am
Forum: Plugin Releases
Topic: [CSGO] Curving Flash
Replies: 7
Views: 1305

Re: [CSGO] Curving Flash

Thanks! I'm glad you enjoyed the video, it was really fun to make!
by VinciT
Wed Jun 17, 2020 5:28 pm
Forum: Plugin Development Support
Topic: [CSGO] Determine if player's crosshair is on the other player's head
Replies: 2
Views: 246

Re: [CSGO] Determine if player's crosshair is on the other player's head

Hi khaimovmr, here's a small function you can add to your custom Player class: # ../headshot_trace/headshot_trace.py # Source.Python from commands.client import ClientCommand from entities.entity import BaseEntity from players.dictionary import PlayerDictionary from players.entity import Player clas...
by VinciT
Wed Jun 17, 2020 4:33 pm
Forum: Plugin Development Support
Topic: CS:GO DM - Detecting player invulnerability
Replies: 2
Views: 294

Re: CS:GO DM - Detecting player invulnerability

Checking the m_bGunGameImmunity property should work:

Syntax: Select all

from players.entity import Player

if player.get_property_bool('m_bGunGameImmunity'):
# Player has godmode - do something.
by VinciT
Wed Jun 17, 2020 5:28 am
Forum: Plugin Releases
Topic: [CSGO] Curving Flash
Replies: 7
Views: 1305

Re: [CSGO] Curving Flash

Thank you Ayuto! That really means a lot to me. :grin:
by VinciT
Tue Jun 16, 2020 6:28 am
Forum: Plugin Releases
Topic: [CSGO] Curving Flash
Replies: 7
Views: 1305

[CSGO] Curving Flash

https://i.imgur.com/3EVdIiD.png Tired of bouncing flashbangs off walls to get that perfect pop flash? Say no more! With Curving Flash, you'll have the ability to execute the perfect pop flash every time. While holding a flashbang, press the weapon inspect key (F by default) to switch the throwing m...
by VinciT
Tue Jun 16, 2020 12:07 am
Forum: Plugin Development Support
Topic: CSGO : Adding Parachutes (from DZ) into DM
Replies: 5
Views: 423

Re: CSGO : Adding Parachutes (from DZ) into DM

Haha, I guess I was thinking about pushing players away from the deathpits. Your way seems more reasonable, here you go: # ../chute/chute.py # Source.Python from commands.client import ClientCommand from cvars import ConVar from engines.server import engine_server from entities.constants import WORL...

Go to advanced search