Search found 331 matches

by VinciT
Sat Feb 13, 2021 3:49 pm
Forum: Plugin Requests
Topic: [REQUEST]Hide Radar
Replies: 21
Views: 13832

Re: [REQUEST]Hide Radar

Awesome! I'm glad it's working as expected. :smile:
by VinciT
Wed Feb 03, 2021 9:03 am
Forum: Plugin Requests
Topic: [REQUEST]Hide Radar
Replies: 21
Views: 13832

Re: [REQUEST]Hide Radar

Alright, I've reworked the plugin to use the UserMessage hooks: # ../adaptive_radar/adaptive_radar.py # Python from time import time # Source.Python from commands.client import ClientCommand from core import GAME_NAME from cvars import ConVar from entities.hooks import EntityCondition, EntityPreHook...
by VinciT
Tue Feb 02, 2021 10:25 pm
Forum: Plugin Development Support
Topic: [CS:GO] Warmup HudDestination
Replies: 1
Views: 2312

Re: [CS:GO] Warmup HudDestination

Not sure about the warmup message specifically, but you can get something that resembles that: # ../win_message/win_message.py # Source.Python from events.manager import game_event_manager from players.entity import Player def send_win_message(message='', recipients=None): "&quo...
by VinciT
Mon Feb 01, 2021 7:40 am
Forum: Plugin Requests
Topic: [REQUEST]Hide Radar
Replies: 21
Views: 13832

Re: [REQUEST]Hide Radar

Awesome, it works! I'll redo the plugin tomorrow when I wake up to use the hook instead of the repeater. I'll attempt to implement the ShowMenuImpl class as well. Thank you so much L'In20Cible.
by VinciT
Mon Feb 01, 2021 7:22 am
Forum: Plugin Requests
Topic: [REQUEST]Hide Radar
Replies: 21
Views: 13832

Re: [REQUEST]Hide Radar

A hook on the ShowMenu usermessage would definitely be the best option. Not only it seems like an overall better approach to me than a constant lookup through repeats, it also has the merit of also detecting menus sent by SM, etc. That was my initial idea, but I was greeted by this: # ../showmenu_h...
by VinciT
Mon Feb 01, 2021 5:38 am
Forum: Plugin Requests
Topic: [REQUEST]Hide Radar
Replies: 21
Views: 13832

Re: [REQUEST]Hide Radar

SimpleMenu.get_user_queue(player.index).active_menu Thank you Kami, this is exactly what I was looking for. :grin: No problem Joe, I'm glad it's working as expected. I've updated the plugin with a method to hide the player's money/buyzone icon, but I haven't figured out how to hide the host...
by VinciT
Sun Jan 31, 2021 9:49 pm
Forum: Plugin Requests
Topic: [REQUEST]Hide Radar
Replies: 21
Views: 13832

Re: [REQUEST]Hide Radar

Hi Joe, give this a try (should work in both CSS and CSGO): # ../adaptive_radar/adaptive_radar.py # Python from time import time # Source.Python from core import GAME_NAME from cvars import ConVar from events import Event from menus import SimpleMenu from players.constants import HideHudFlags from p...
by VinciT
Fri Jan 29, 2021 5:14 pm
Forum: Plugin Development Support
Topic: [CS:S] Return type not working for shouldcollide
Replies: 4
Views: 3049

Re: [CS:S] Return type not working for shouldcollide

2. Is there a way to check for the colliding entity? If you want to see which entities are colliding, you'll have to switch to PassServerEntityFilter() : # ../player_collision/player_collision.py # Source.Python from core import PLATFORM from memory import Convention, DataType, find_binary from mem...
by VinciT
Tue Jan 26, 2021 1:57 pm
Forum: Plugin Releases
Topic: [ANY] Weapon Zoom
Replies: 27
Views: 27686

Re: [ANY] Weapon Zoom

Hahahahahaha that's brilliant!
by VinciT
Tue Jan 26, 2021 1:29 am
Forum: Plugin Requests
Topic: [CS:GO] Color flashlight with adjustable radius
Replies: 10
Views: 10996

Re: [CS:GO] Color flashlight with adjustable radius

This should fix players not being able to see others' flashlights: # ../flashlight/flashlight.py # Python from colorsys import hsv_to_rgb # Source.Python from colors import Color from commands import CommandReturn from commands.client import ClientCommand from entities.entity import Entity from enti...
by VinciT
Tue Jan 26, 2021 1:06 am
Forum: Plugin Development Support
Topic: [HL2DM] set_model plays animation
Replies: 3
Views: 5586

Re: [HL2DM] set_model plays animation

Hi Kami, I believe this should give you the desired result: # ../set_model/set_model.py # Source.Python from core import PLATFORM from core.cache import cached_property from engines.server import engine_server from events import Event from memory import Convention, DataType from memory.helpers impor...
by VinciT
Mon Jan 25, 2021 6:40 am
Forum: Plugin Requests
Topic: [HL2:DM] Little Silent Hill
Replies: 77
Views: 44836

Re: [HL2:DM] Little Silent Hill

Hi daren, here's a quick and dirty way to disable the fog, find these lines (347 - 350): # Change to a thick fog similar to the one from Silent Hill. # (credit: killer89 - https://gamebanana.com/prefabs/1308 ) self._delays['final_flash'] = Delay( SIREN_TIME, self.change_fog, (...
by VinciT
Sun Jan 24, 2021 5:13 am
Forum: Plugin Requests
Topic: [CS:GO] Color flashlight with adjustable radius
Replies: 10
Views: 10996

Re: [CS:GO] Color flashlight with adjustable radius

Hi daren, the code above uses the +lookatweapon command for toggling the flashlight, which is only bound by default in CSGO. You can bind that command to a key to get it to work, but we also have to fix how the color based on the player's steamid is handled, as HL2DM uses a different format - steami...
by VinciT
Sat Jan 23, 2021 11:29 pm
Forum: Plugin Requests
Topic: [CS:GO] Color flashlight with adjustable radius
Replies: 10
Views: 10996

Re: [CS:GO] Color flashlight with adjustable radius

Hi jocik, give this a try: # ../flashlight/flashlight.py # Python from colorsys import hsv_to_rgb # Source.Python from colors import Color from commands import CommandReturn from commands.client import ClientCommand from entities.entity import Entity from listeners import OnNetworkedEntityDeleted fr...
by VinciT
Fri Jan 22, 2021 7:28 pm
Forum: Plugin Releases
Topic: [ANY] Weapon Zoom
Replies: 27
Views: 27686

Re: [ANY] Weapon Zoom

No you are right you can use zoom for any weapon you want, that's why I linked to the buttons. I need to look into this on the weekend. Not sure if you can set buttons via name directly (like real life name of the button) or if you have to use the PlayerButtons. No, that's not possible. The client ...
by VinciT
Sat Jan 02, 2021 12:20 am
Forum: Plugin Development Support
Topic: [HL2DM] Menus not showing plain text
Replies: 4
Views: 2937

Re: [HL2DM] Menus not showing plain text

You can achieve that with DialogMenu() : # ../menu_example/menu_example.py # Source.Python from colors import Color from commands import CommandReturn from commands.client import ClientCommand from messages import DialogMenu from players.entity import Player DialogMenu( title='Menu Title'...
by VinciT
Wed Dec 23, 2020 9:43 pm
Forum: Plugin Requests
Topic: [HL2:DM] Crossbow
Replies: 96
Views: 85334

Re: [HL2:DM] Crossbow

I've updated the plugin in the previous post to fix the issues you ran into.
by VinciT
Sun Dec 20, 2020 5:30 pm
Forum: Plugin Development Support
Topic: [Cs:s] How to block weapon pick up
Replies: 4
Views: 2611

Re: [Cs:s] How to block weapon pick up

There's an excellent post by satoon101 describing how weapon restriction works. This is what you're looking for: # ../weapon_restrict_example/weapon_restrict_example.py # Source.Python from filters.weapons import WeaponClassIter from weapons.restrictions import WeaponRestrictionHandler my_handler = ...
by VinciT
Sun Dec 20, 2020 4:55 pm
Forum: Plugin Requests
Topic: [HL2:DM] Crossbow
Replies: 96
Views: 85334

Re: [HL2:DM] Crossbow

It appears you are running an older version of SP. Try running the sp update server command or update it manually to resolve the issue.
by VinciT
Sat Dec 19, 2020 10:32 pm
Forum: Plugin Requests
Topic: [HL2:DM] Crossbow
Replies: 96
Views: 85334

Re: [HL2:DM] Crossbow

This should fix the error you received: # ../lights/lights.py # Python from random import choice from colorsys import hsv_to_rgb # Source.Python from colors import Color from effects.base import TempEntity from effects.hooks import TempEntityPreHook from engines.precache import Model from entities.c...

Go to advanced search