HL2:DM OVERKILL

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: 253
Joined: Sat May 18, 2019 7:42 pm

HL2:DM OVERKILL

Postby daren adler » Fri Aug 20, 2021 2:28 am

Hello out there scripters :wink: 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. :cool: :cool:
cssbestrpg
Senior Member
Posts: 168
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: HL2:DM OVERKILL

Postby cssbestrpg » Fri Aug 20, 2021 3:45 pm

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')
User avatar
daren adler
Senior Member
Posts: 253
Joined: Sat May 18, 2019 7:42 pm

Re: HL2:DM OVERKILL

Postby daren adler » Fri Aug 20, 2021 9:39 pm

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.
cssbestrpg
Senior Member
Posts: 168
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: HL2:DM OVERKILL

Postby cssbestrpg » Sat Aug 21, 2021 8:04 am

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
User avatar
daren adler
Senior Member
Posts: 253
Joined: Sat May 18, 2019 7:42 pm

Re: HL2:DM OVERKILL

Postby daren adler » Sat Aug 21, 2021 3:14 pm

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.
cssbestrpg
Senior Member
Posts: 168
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: HL2:DM OVERKILL

Postby cssbestrpg » Sat Aug 21, 2021 4:08 pm

I would make it, but i do not know how i can check in 2kills same time from victim to killer.
User avatar
daren adler
Senior Member
Posts: 253
Joined: Sat May 18, 2019 7:42 pm

Re: HL2:DM OVERKILL

Postby daren adler » Sat Aug 21, 2021 4:58 pm

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. :cool: :cool:
User avatar
daren adler
Senior Member
Posts: 253
Joined: Sat May 18, 2019 7:42 pm

Re: HL2:DM OVERKILL

Postby daren adler » Sun Sep 05, 2021 4:26 am

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.
cssbestrpg
Senior Member
Posts: 168
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: HL2:DM OVERKILL

Postby cssbestrpg » Sun Sep 05, 2021 7:37 am

daren adler wrote: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.


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
User avatar
daren adler
Senior Member
Posts: 253
Joined: Sat May 18, 2019 7:42 pm

Re: HL2:DM OVERKILL

Postby daren adler » Sun Sep 05, 2021 9:49 pm

Very good job my friend :wink: :wink: Works great :smile: :smile:
cssbestrpg
Senior Member
Posts: 168
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: HL2:DM OVERKILL

Postby cssbestrpg » Tue Sep 07, 2021 4:30 pm

daren adler wrote:Very good job my friend :wink: :wink: Works great :smile: :smile:

Well i am glad i could help :smile:

Return to “Plugin Requests”

Who is online

Users browsing this forum: No registered users and 1 guest