Forum

> > CS2D > Scripts > Request - Scripts.
Forums overviewCS2D overview Scripts overviewLog in to reply

English Request - Scripts.

2 replies
To the start Previous 1 Next To the start

old Request - Scripts.

boong
User Off Offline

Quote
Well, I was wondering if you can create the following scripts:

- Play music on each end of a round, CT won the round plays a song, play another song won TR (short Obvious Music, 10 sec max).

- When do Doublekill, Ultrakill, etc, besides playing each sound, display an image in the center of the screen.
Example:


If anyone can create and post will be grateful.

old Re: Request - Scripts.

miere
User Off Offline

Quote
user boong has written
- When do Doublekill, Ultrakill, etc, besides playing each sound, display an image in the center of the screen.

there is script in sys/lua/samples folder called utsfx.lua. Through, this script displays text, showing huge images is bad idea.

old Re: Request - Scripts.

Happy eyes
User Off Offline

Quote
First one: (Thanks user EngiN33R)
1
2
3
4
5
6
7
8
addhook("endround", "music")
function music(mode)
	if mode == 1 or mode%10 == 0 then
		parse('sv_sound terroristwin.wav')
	elseif mode == 2 or mode%10 == 1 then
		parse('sv_sound counterterroristwin.wav')
	end
end

For the second you need to edit a sample script and add something like this:
1
2
3
4
5
6
local img
img = image('gfx/UNSTOPPABLE.png',240,360,2)
image_alpha(img,0)
tween_scale(img,500,1)
timer(5000,"parse","lua tween_scale("..img..",1000,0)")
timer(6000,"parse","lua freeimage("..img..")")
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview