
HL2:DM deathoverlay
- daren adler
- Senior Member
- Posts: 348
- Joined: Sat May 18, 2019 7:42 pm
HL2:DM deathoverlay
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. 

-
- Senior Member
- Posts: 315
- Joined: Sun May 17, 2020 7:56 am
- Location: Finland
- Contact:
Re: HL2:DM deathoverlay
Hi, try this:
It have 3seconds delay to cancel overlay, after it show overplay first(Untested code).
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.
- daren adler
- Senior Member
- Posts: 348
- Joined: Sat May 18, 2019 7:42 pm
Re: HL2:DM deathoverlay
OK will give it a try, again thank you.
- daren adler
- Senior Member
- Posts: 348
- Joined: Sat May 18, 2019 7:42 pm
Re: HL2:DM deathoverlay
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?
also, should it be called overlay and not overplay?
-
- Senior Member
- Posts: 315
- Joined: Sun May 17, 2020 7:56 am
- Location: Finland
- Contact:
Re: HL2:DM deathoverlay
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
Edit: Fixed the path in the post i gave the code
- daren adler
- Senior Member
- Posts: 348
- Joined: Sat May 18, 2019 7:42 pm
Re: HL2:DM deathoverlay
ok thank you. i will give it a try again.
- daren adler
- Senior Member
- Posts: 348
- Joined: Sat May 18, 2019 7:42 pm
Re: HL2:DM deathoverlay
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.
-
- Senior Member
- Posts: 315
- Joined: Sun May 17, 2020 7:56 am
- Location: Finland
- Contact:
Re: HL2:DM deathoverlay
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.
I need to know whole path for material show for example: materials/folder/folder/file.vmt.
- daren adler
- Senior Member
- Posts: 348
- Joined: Sat May 18, 2019 7:42 pm
Re: HL2:DM deathoverlay
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
here they are https://www.dropbox.com/s/jnxkbshpuwgx0 ... s.zip?dl=0
here is the server 108.61.232.14:27015
-
- Senior Member
- Posts: 315
- Joined: Sun May 17, 2020 7:56 am
- Location: Finland
- Contact:
Re: HL2:DM deathoverlay
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
- daren adler
- Senior Member
- Posts: 348
- Joined: Sat May 18, 2019 7:42 pm
Re: HL2:DM deathoverlay
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.
-
- Senior Member
- Posts: 315
- Joined: Sun May 17, 2020 7:56 am
- Location: Finland
- Contact:
Re: HL2:DM deathoverlay
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')
- daren adler
- Senior Member
- Posts: 348
- Joined: Sat May 18, 2019 7:42 pm
Re: HL2:DM deathoverlay
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'.
-
- Senior Member
- Posts: 315
- Joined: Sun May 17, 2020 7:56 am
- Location: Finland
- Contact:
Re: HL2:DM deathoverlay
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
- daren adler
- Senior Member
- Posts: 348
- Joined: Sat May 18, 2019 7:42 pm
Re: HL2:DM deathoverlay
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?.
-
- Senior Member
- Posts: 315
- Joined: Sun May 17, 2020 7:56 am
- Location: Finland
- Contact:
Re: HL2:DM deathoverlay
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
https://drive.google.com/file/d/1Q9VQg7wdvjk-3XPNGVTmW9olNeSk5i14/view?usp=sharing
Once you have extracted the files, load command is sp plugin load deathoverlay
- daren adler
- Senior Member
- Posts: 348
- Joined: Sat May 18, 2019 7:42 pm
Re: HL2:DM deathoverlay
OK, got it to work. Thank you.
Who is online
Users browsing this forum: No registered users and 66 guests