HL2:DM deathoverlay

A place for requesting new Source.Python plugins to be made for your server.

Please request only one plugin per thread.
User avatar
daren adler
Senior Member
Posts: 328
Joined: Sat May 18, 2019 7:42 pm

HL2:DM deathoverlay

Postby daren adler » Wed May 12, 2021 2:33 pm

Hello game scripters, i would like a overlay for death, and only the victum see it. I am using x/killstreaks_v1/failure.vmt. Thank you and have a great week. :grin:
cssbestrpg
Senior Member
Posts: 287
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: HL2:DM deathoverlay

Postby cssbestrpg » Wed May 12, 2021 4:42 pm

Hi, try this:
It have 3seconds delay to cancel overlay, after it show overplay first(Untested code).

Syntax: Select all

from events import Event
from players.entity import Player
from stringtables.downloads import Downloadables

show_overplay = 'materials/x/killstreaks_v1/failure.vmt'

remove_timer = 3 # How long delay will be

def load():
dl = Downloadables()
dl.add("materials/x/killstreaks_v1/failure.vmt")

@Event('player_death')
def player_death(args):
victim = args.get_int('userid')
player = Player.from_userid(victim)
player.client_command('r_screenoverlay %s' % show_overplay)
player.delay(remove_timer, cancel_overplay, (victim,))

def cancel_overplay(victim):
player = Player.from_userid(victim)
player.client_command('r_screenoverlay 0')
Last edited by cssbestrpg on Wed May 12, 2021 6:47 pm, edited 4 times in total.
User avatar
daren adler
Senior Member
Posts: 328
Joined: Sat May 18, 2019 7:42 pm

Re: HL2:DM deathoverlay

Postby daren adler » Wed May 12, 2021 4:45 pm

OK will give it a try, again thank you.
User avatar
daren adler
Senior Member
Posts: 328
Joined: Sat May 18, 2019 7:42 pm

Re: HL2:DM deathoverlay

Postby daren adler » Wed May 12, 2021 4:59 pm

I tryed it and it dont show the overlay or anything, no errors in log, and it tryes to dl the materials all the time (x/killstreaks_v1/failure.vmt)

also, should it be called overlay and not overplay?
cssbestrpg
Senior Member
Posts: 287
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: HL2:DM deathoverlay

Postby cssbestrpg » Wed May 12, 2021 5:05 pm

I just need to fix the path for material, since no errors. When i fix the path it should then work fine
Edit: Fixed the path in the post i gave the code
User avatar
daren adler
Senior Member
Posts: 328
Joined: Sat May 18, 2019 7:42 pm

Re: HL2:DM deathoverlay

Postby daren adler » Wed May 12, 2021 6:01 pm

ok thank you. i will give it a try again.
User avatar
daren adler
Senior Member
Posts: 328
Joined: Sat May 18, 2019 7:42 pm

Re: HL2:DM deathoverlay

Postby daren adler » Wed May 12, 2021 6:14 pm

No errors, but when bots kill me no overlay..it all looks like it should work, so i //(stopped) my other overlays and still no go, Thank you for trying tho.
cssbestrpg
Senior Member
Posts: 287
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: HL2:DM deathoverlay

Postby cssbestrpg » Wed May 12, 2021 6:23 pm

Its weird not working, the code suppose work fine, unless the material path is still incorrectly.
I need to know whole path for material show for example: materials/folder/folder/file.vmt.
User avatar
daren adler
Senior Member
Posts: 328
Joined: Sat May 18, 2019 7:42 pm

Re: HL2:DM deathoverlay

Postby daren adler » Wed May 12, 2021 6:42 pm

Goes materials/x/killstreaks_v1/failure.vmt and vtf
here they are https://www.dropbox.com/s/jnxkbshpuwgx0 ... s.zip?dl=0
here is the server 108.61.232.14:27015
cssbestrpg
Senior Member
Posts: 287
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: HL2:DM deathoverlay

Postby cssbestrpg » Wed May 12, 2021 7:05 pm

Well i have edited my post which have the code, updated the path for materials stuff. I hope it now works, if doesn't work, then i have no clue why its not working
User avatar
daren adler
Senior Member
Posts: 328
Joined: Sat May 18, 2019 7:42 pm

Re: HL2:DM deathoverlay

Postby daren adler » Wed May 12, 2021 7:27 pm

Ok, ya i d not know y either, i kno ur a good script maker, probly my side of trouble, ty. Nope did not work, thanks for trying.
cssbestrpg
Senior Member
Posts: 287
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: HL2:DM deathoverlay

Postby cssbestrpg » Thu May 13, 2021 4:52 pm

Great news i manage to fix the code, i just tested it and it works fine

Syntax: Select all

from events import Event
from players.entity import Player
from stringtables.downloads import Downloadables

remove_timer = 3 # How long delay will be

def load():
dl = Downloadables()
dl.add("materials/x/killstreaks_v1/failure.vmt")

@Event('player_death')
def player_death(args):
victim = args.get_int('userid')
player = Player.from_userid(victim)
player.client_command('r_screenoverlay x/killstreaks_v1/failure.vmt')
player.delay(remove_timer, cancel_overplay, (victim,))

def cancel_overplay(victim):
player = Player.from_userid(victim)
player.client_command('r_screenoverlay 0')
User avatar
daren adler
Senior Member
Posts: 328
Joined: Sat May 18, 2019 7:42 pm

Re: HL2:DM deathoverlay

Postby daren adler » Thu May 13, 2021 8:17 pm

Great, I will give it a try, thank you. UPDATE- Its still seems not to show, no errors and it loads and everything. I think its something on my side man, heres what i am using from your guys, maybe one of them is conflicting with it, but again thank you for all your help.

Code: Select all

2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Loading plugin 'alpha_props'...
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'alpha_props'.
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Loading plugin 'deathmsg'...
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'deathmsg'.
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Loading plugin 'deathoverlay'...
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'deathoverlay'.
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Loading plugin 'dissolver'...
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'dissolver'.
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Loading plugin 'es_emulator'...
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'es_emulator'.
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Loading plugin 'fiery_bolts'...
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'fiery_bolts'.
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Loading plugin 'fragcloud'...
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'fragcloud'.
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Loading plugin 'headshot'...
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'headshot'.
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Loading plugin 'killcam'...
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'killcam'.
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Loading plugin 'killmessage'...
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'killmessage'.
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Loading plugin 'killstreak_god'...
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'killstreak_god'.
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Loading plugin 'nade_trail'...
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'nade_trail'.
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Loading plugin 'npc_points'...
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'npc_points'.
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Loading plugin 'randombotweapons'...
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'randombotweapons'.
2021-05-13 16:20:50 - sp   -   MESSAGE   [SP] Loading plugin 'random_skybox'...
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'random_skybox'.
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Loading plugin 'sawblade_trail'...
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'sawblade_trail'.
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Loading plugin 'scoreboard'...
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'scoreboard'.
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Loading plugin 'silent_hill'...
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'silent_hill'.
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Loading plugin 'spawn_effect'...
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'spawn_effect'.
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Loading plugin 'temp_clawscanner'...
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'temp_clawscanner'.
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Loading plugin 'throwables'...
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'throwables'.
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Loading plugin 'weapon_effects'...
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'weapon_effects'.
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Loading plugin 'zoom'...
2021-05-13 16:20:51 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'zoom'.
cssbestrpg
Senior Member
Posts: 287
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: HL2:DM deathoverlay

Postby cssbestrpg » Thu May 13, 2021 9:11 pm

Weird in my side work fine, tested earlier before did post the code, but it might have conflict of some of your plugins you have loaded
User avatar
daren adler
Senior Member
Posts: 328
Joined: Sat May 18, 2019 7:42 pm

Re: HL2:DM deathoverlay

Postby daren adler » Tue Jun 29, 2021 8:25 pm

I blocked all of the sp plugins and turned off the sm plugins and still it wont work,,i even tryed it on my home server(windows) and my rented (linux) and both did not work, what i am guessing is that it wont work for bots???, I know you said it worked on your side, so i have no idea,,can someone please help?.
cssbestrpg
Senior Member
Posts: 287
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: HL2:DM deathoverlay

Postby cssbestrpg » Wed Jun 30, 2021 10:08 am

Try this one i have made the path so install it correctly when extract the location where addons folder is
https://drive.google.com/file/d/1Q9VQg7wdvjk-3XPNGVTmW9olNeSk5i14/view?usp=sharing

Once you have extracted the files, load command is sp plugin load deathoverlay
User avatar
daren adler
Senior Member
Posts: 328
Joined: Sat May 18, 2019 7:42 pm

Re: HL2:DM deathoverlay

Postby daren adler » Thu Jul 08, 2021 4:43 pm

OK, got it to work. Thank you.

Return to “Plugin Requests”

Who is online

Users browsing this forum: No registered users and 20 guests