Page 1 of 1
HL2:DM OVERKILL
Posted: Fri Aug 20, 2021 2:28 am
by daren adler
Hello out there scripters

Was wondering if someone could make me a overkill plugin for my linux hl2 TDM Server. I have a overkill overlay right here
https://www.dropbox.com/s/ov4xd8z20l7hwgj/overkill.zip?dl=0 . Thank you and have a great week.

Re: HL2:DM OVERKILL
Posted: Fri Aug 20, 2021 3:45 pm
by cssbestrpg
Hello,
should the plugin work like when kill a player it would show a overlay?
Edit:
If the plugin need show overlay when kill try this code then:
Syntax: Select all
from events import Event
from players.entity import Player
from stringtables.downloads import Downloadables
def load():
dl = Downloadables()
dl.add("materials/x/killstreaks_v2/overkill-1.vmt")
dl.add("materials/x/killstreaks_v2/overkill-1.vtf")
@Event('player_death')
def player_death(args):
attacker = args['attacker']
if attacker > 0:
player = Player.from_userid(attacker)
player.client_command('r_screenoverlay x/killstreaks_v2/overkill-1.vmt')
player.delay(5, reset_overlay, (attacker,))
def reset_overlay(attacker):
Player.from_userid(attacker).client_command('r_screenoverlay 0')
Re: HL2:DM OVERKILL
Posted: Fri Aug 20, 2021 9:39 pm
by daren adler
if you do more damage than nessisary to kill someone thats overkill, you have it right tho,,thank you,,could you make it so if i kill more then 2 or more at a time it shows the overkill.
Re: HL2:DM OVERKILL
Posted: Sat Aug 21, 2021 8:04 am
by cssbestrpg
daren adler wrote:if you do more damage than nessisary to kill someone thats overkill, you have it right tho,,thank you,,could you make it so if i kill more then 2 or more at a time it shows the overkill.
Try this one, it should show overkill when kill more than 1 at same time
Syntax: Select all
from events import Event
from players.entity import Player
from stringtables.downloads import Downloadables
class OverkillPlayer(Player):
caching = True
def __init__(self, index):
super().__init__(index)
self.is_overkill = 0
def load():
dl = Downloadables()
dl.add("materials/x/killstreaks_v2/overkill-1.vmt")
dl.add("materials/x/killstreaks_v2/overkill-1.vtf")
@Event('player_death')
def player_death(args):
attacker = args['attacker']
if attacker > 0:
player = OverkillPlayer.from_userid(attacker)
if player.is_overkill:
player.is_overkill += 1
else:
player.is_overkill = 1
if player.is_overkill > 1:
player.client_command('r_screenoverlay x/killstreaks_v2/overkill-1.vmt')
player.delay(5, reset_overlay, (attacker,))
player.delay(1, reset_overkill, (attacker,))
def reset_overlay(attacker):
player = OverkillPlayer.from_userid(attacker)
player.client_command('r_screenoverlay 0')
def reset_overkill(attacker):
player = OverkillPlayer.from_userid(attacker)
player.is_overkill = 0
Re: HL2:DM OVERKILL
Posted: Sat Aug 21, 2021 3:14 pm
by daren adler
Thank you i will give it a try, thank you so much. Could you maybe make a Simultaneous Kill script also ?. Its if 2 players kill each other at same time. You are getting better and better at this.
Re: HL2:DM OVERKILL
Posted: Sat Aug 21, 2021 4:08 pm
by cssbestrpg
I would make it, but i do not know how i can check in 2kills same time from victim to killer.
Re: HL2:DM OVERKILL
Posted: Sat Aug 21, 2021 4:58 pm
by daren adler
Ive had it before, but i think it was old eventscripts,,ill check and see if i can find a was to show ya.
Ok i remember is was the old keeper streaks, the site is down,so i cant show ya.
I checked the overkill scrip and great job my friend, it works good.

Re: HL2:DM OVERKILL
Posted: Sun Sep 05, 2021 4:26 am
by daren adler
Could you add overkill sound when it happens ?, Heres the sound, it would go sound/79/overkill.mp3
https://www.dropbox.com/s/h91ybe1u9df9q ... s.zip?dl=0 . Thank you.
Re: HL2:DM OVERKILL
Posted: Sun Sep 05, 2021 7:37 am
by cssbestrpg
Syntax: Select all
from events import Event
from players.entity import Player
from stringtables.downloads import Downloadables
from engines.sound import Sound
overkill = Sound('79/overkill.mp3')
class OverkillPlayer(Player):
caching = True
def __init__(self, index):
super().__init__(index)
self.is_overkill = 0
def load():
dl = Downloadables()
dl.add("materials/x/killstreaks_v2/overkill-1.vmt")
dl.add("materials/x/killstreaks_v2/overkill-1.vtf")
dl.add("sound/79/overkill.mp3")
@Event('player_death')
def player_death(args):
attacker = args['attacker']
if attacker > 0:
player = OverkillPlayer.from_userid(attacker)
if player.is_overkill:
player.is_overkill += 1
else:
player.is_overkill = 1
if player.is_overkill > 1:
overkill.play(player.index)
player.client_command('r_screenoverlay x/killstreaks_v2/overkill-1.vmt')
player.delay(5, reset_overlay, (attacker,))
player.delay(1, reset_overkill, (attacker,))
def reset_overlay(attacker):
player = OverkillPlayer.from_userid(attacker)
player.client_command('r_screenoverlay 0')
def reset_overkill(attacker):
player = OverkillPlayer.from_userid(attacker)
player.is_overkill = 0
Re: HL2:DM OVERKILL
Posted: Sun Sep 05, 2021 9:49 pm
by daren adler
Re: HL2:DM OVERKILL
Posted: Tue Sep 07, 2021 4:30 pm
by cssbestrpg
Well i am glad i could help
