Files

> > CS2D > Lua Scripts > Better UTSFX for Standard Mode
Files overviewCS2D overviewLua Scripts overview

English Better UTSFX for Standard Mode >

6 comments989 b, 35 Downloads

old Better UTSFX for Standard Mode

BcY
Reviewer Off Offline

• Better and optimized version of UTSFX script for your server.

REMOVED
Timing from the original script
• Your kill streak will not be reset even if you can't keep it for 3 seconds.

You can simply add more levels by editing:
1
2
3
4
5
6
7
8
9
levels = {}
levels[2] = {"173255047","made a Doublekill!","fun/doublekill.wav"}
levels[3] = {"026255525","made a Multikill!","fun/multikill.wav"}
levels[4] = {"000206209","made a Killingspree!@C","fun/killingspree.wav"}
levels[5] = {"132112255","is on Rampage!@C","fun/rampage.wav"}
levels[6] = {"138043226","is UNSTOPPABLE!@C","fun/unstoppable.wav"}
levels[7] = {"138043226","made a Ultrakill!@C","fun/ultrakill.wav"}
levels[8] = {"138043226","made a MO-O-O-O-ONSTERKILL-ILL-ILL!@C","fun/monsterkill.wav"}
--levels[9] = {"138043226","made a MO-O-O-O-ONSTERKILL-ILL-ILL!@C","fun/monsterkill.wav"}
√ You can edit it freely.
√ You can claim it yours.
√ You can share it wherever you want.
edited 1×, last 05.01.24 12:25:06 am
Approved by Gaios

Download Download

989 b, 35 Downloads

Comments

6 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Cure Pikachu
User Off Offline

Makes me want to bring out my own version, lol
...if only one isn't already on the archives.
edited 1×, last 08.04.24 03:35:59 am

old

BcY
Reviewer Off Offline

Yeah, you're right! Since we're not gonna call level table outside of the script it can be also localized.

old

Gaios
Reviewer Off Offline

You could make as many local function as you can there. Also the
levels
global variable could be renamed to something other... or better: use
local levels = []

old

BcY
Reviewer Off Offline

I did the localization on the same line, it can also be done this way. It's an optimization to make things works slightly faster.

Yeah, you're right! Thank you for reminding me! I thought that since this one is only for Standard Mode, it's not necessary to keep the timing.

old

DC
Admin Off Offline

Nice idea to make it easy to add more levels!

But wait wait wait.. what is this in line 1?
local parse, msg, msg2 = parse, msg, msg2

That looks bad. It's a lot of useless (and even duplicate) declarations and you even assign "parse" to "msg2" which sounds pretty wild (and wrong). Why are you doing that?

You also removed the timing from the original script but didn't mention that detail anywhere. In the original script multi kills only count when they are done within 3 seconds. In your script it does not matter at all. I think this should be mentioned in the description.

Also bad indentation in some lines.
To the start Previous 1 Next To the start