Search found 261 matches
- Wed Jan 27, 2021 8:20 pm
- Forum: Plugin Releases
- Topic: [ANY] Weapon Zoom
- Replies: 27
- Views: 35287
Re: [ANY] Weapon Zoom
You need to find the texture for the crosshair and then you can use this version: from commands.client import ClientCommand from entities.hooks import EntityCondition from entities.hooks import EntityPreHook from listeners import get_button_combination_status from listeners import ButtonStatus from ...
- Tue Jan 26, 2021 12:48 pm
- Forum: Plugin Releases
- Topic: [ANY] Weapon Zoom
- Replies: 27
- Views: 35287
Re: [ANY] Weapon Zoom
Just wanted to make sure it's okay for me to put the code on github :D
Thank you for the idea with the poster, I think it fits really well.
Thank you for the idea with the poster, I think it fits really well.
- Tue Jan 26, 2021 5:18 am
- Forum: Plugin Development Support
- Topic: [HL2DM] set_model plays animation
- Replies: 3
- Views: 5683
Re: [HL2DM] set_model plays animation
Awesome, thank you!
- Mon Jan 25, 2021 8:15 pm
- Forum: Plugin Development Support
- Topic: [HL2DM] set_model plays animation
- Replies: 3
- Views: 5683
[HL2DM] set_model plays animation
Hey guys, I'm trying to use this code to change the player model in hl2dm. from events import Event from players.entity import Player import random from engines.precache import Model @Event('player_spawn') def _spawn(ev): player = Player.from_userid(ev['userid']...
- Mon Jan 25, 2021 1:23 pm
- Forum: Plugin Releases
- Topic: [ANY] Weapon Zoom
- Replies: 27
- Views: 35287
Re: [ANY] Weapon Zoom
Hey daren, I just tested L'In20Cible's version and it works perfectly, so you can use that. @L'In20Cible: I gotta be honest, I'm not sure what the etiquette is in this kind of situation. Am I supposed to add your code to my github, even though you wrote it? I don't want to be rude but I'm really not...
- Sat Jan 23, 2021 12:49 am
- Forum: Plugin Releases
- Topic: [ANY] Weapon Zoom
- Replies: 27
- Views: 35287
Re: [ANY] Weapon Zoom
Thank you for your feedback! I tried to include some of your tips. My current code is: # ============================================================================= # >> IMPORTS # ============================================================================= from commands.client import ClientComman...
- Fri Jan 22, 2021 8:14 pm
- Forum: Plugin Releases
- Topic: [ANY] Weapon Zoom
- Replies: 27
- Views: 35287
Re: [ANY] Weapon Zoom
That is a great idea, thank you! I updated the plugin and it now has a clientcommand "do_zoom" which will execute the zoom. You can now do: zoom_button = None to disable the use of buttons to rely on the clientcommand alone. To use the clientcommand you can do: bind "mouse4" &quo...
- Thu Jan 21, 2021 8:48 pm
- Forum: Plugin Releases
- Topic: [ANY] Weapon Zoom
- Replies: 27
- Views: 35287
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.
- Thu Jan 14, 2021 6:35 am
- Forum: API Design
- Topic: [HL2DM] Restrictions
- Replies: 3
- Views: 21816
Re: [HL2DM] Restrictions
Thank you very much! It works perfectly now.
- Wed Jan 13, 2021 7:39 pm
- Forum: API Design
- Topic: [HL2DM] Restrictions
- Replies: 3
- Views: 21816
[HL2DM] Restrictions
Hey guys, I recently noticed that the restrictions package does not work with HL2DM as some things are different there. There is no buy_internal for example. Also the team index for deathmatch is always 0 which will result in "KeyError: '"0" is neither a team number nor an alias."...
- Wed Jan 13, 2021 7:36 pm
- Forum: Plugin Development Support
- Topic: [CS:S] Blocking item pickup notification
- Replies: 8
- Views: 4729
Re: [CS:S] Blocking item pickup notification
Thank you very much for taking the time to explain it to me!
- Wed Jan 13, 2021 6:42 am
- Forum: Plugin Development Support
- Topic: [CS:S] Blocking item pickup notification
- Replies: 8
- Views: 4729
Re: [CS:S] Blocking item pickup notification
Yes the endgoal is infinite ammo for weapon_flashbang and this seems to be exactly what I needed! Thank you very much. It never occured to me that I could just block ammo consumption.
Could you maybe explain, how you found out which function you needed to hook?
Could you maybe explain, how you found out which function you needed to hook?
- Tue Jan 12, 2021 9:48 pm
- Forum: Plugin Development Support
- Topic: [CS:S] Blocking item pickup notification
- Replies: 8
- Views: 4729
Re: [CS:S] Blocking item pickup notification
It seems that setting ammo for grenades counts as giving new ones. So everytime i add ammo, it shows as a picked up weapon. ResetHUD can actually remove the Image but its not reliable (I have to send multiple ResetHUDs to remove the image without blinking). I've seen servers where it does not show f...
- Tue Jan 12, 2021 8:27 pm
- Forum: Plugin Development Support
- Topic: [CS:S] Blocking item pickup notification
- Replies: 8
- Views: 4729
Re: [CS:S] Blocking item pickup notification
Thank you for the reply!
I tried your code but sadly it did not work. I even tried to use EventAction.BLOCK to just block the event completely which didn't work either.
I tried your code but sadly it did not work. I even tried to use EventAction.BLOCK to just block the event completely which didn't work either.
- Tue Jan 12, 2021 6:38 pm
- Forum: Plugin Development Support
- Topic: [CS:S] Blocking item pickup notification
- Replies: 8
- Views: 4729
[CS:S] Blocking item pickup notification
Hey guys, I'd like to block the hud element that notifies you when you pick up a weapon (the yellow picture of the weapon you picked up on the right). I tried using hidehudflags, ResetHUD and the ItemPickup Usermesage with no luck. Maybe someone here knows how to achieve this. Thank you! An alternat...
- Fri Jan 01, 2021 3:31 pm
- Forum: Plugin Development Support
- Topic: [HL2DM] Menus not showing plain text
- Replies: 4
- Views: 3016
Re: [HL2DM] Menus not showing plain text
Okay, it seems that it is possible to display text and menu options in the same menu:
Any idea how that would work? As shown above, adding text to a Menu will not display the text at all.
Any idea how that would work? As shown above, adding text to a Menu will not display the text at all.
- Thu Dec 31, 2020 4:44 pm
- Forum: Plugin Development Support
- Topic: [HL2DM] Menus not showing plain text
- Replies: 4
- Views: 3016
Re: [HL2DM] Menus not showing plain text
You are right! Thank you very much for your help.
- Thu Dec 31, 2020 3:41 pm
- Forum: Plugin Development Support
- Topic: [HL2DM] Menus not showing plain text
- Replies: 4
- Views: 3016
[HL2DM] Menus not showing plain text
Hey guys, I have been trying to add plain text to an ESC Menu in hl2dm but have been failing to do so. With Ayutos ES Emulator it works but I could not figure out why it does. I used this code for testing: from events import Event from players.entity import Player from menus import SimpleMenu from m...
- Mon Dec 28, 2020 3:03 pm
- Forum: Plugin Releases
- Topic: [HL2DM] Scoreboard
- Replies: 8
- Views: 16668
Re: [HL2DM] Scoreboard
Hey, I fixed the error in scoreboard.
- Mon Dec 28, 2020 2:56 pm
- Forum: Plugin Requests
- Topic: [Cs:s] Automatic mapcycle.txt creator
- Replies: 3
- Views: 2977
Re: [Cs:s] Automatic mapcycle.txt creator
Hey, you can try this: from commands.server import ServerCommand from os import listdir from paths import GAME_PATH MAP_PATH = GAME_PATH+"\maps" CFG_PATH = GAME_PATH+"\cfg" @ServerCommand('mapcycle_create') def _mapcycle_create(command): mapcycle_file = op...