Files

> > CS2D > Lua Scripts > [xNir] Security Cameras
Files overviewCS2D overviewLua Scripts overview

English [xNir] Security Cameras >

10 comments248 kb, 437 Downloads

old [xNir] Security Cameras

xNir
User Off Offline

> Description <
This script allows you to place security cameras on the map.
These cameras have a lot of parameters which can be customized.
For instance, the starting rotation, the laser range and color,
the camera type and so on.
At the moment, the cameras just play an alarm sound if a player
walked into a camera laser.
You can also destroy these cameras !!

INFO
Everything is explained inside the README.txt !

spam Versions
v1.0.0 - 07.18.2016 >


illegal Rules
√ You can use/edit this script on your server.
√ You are allowed to copy some parts of this script.
× You are not allowed to say this script as yours.

off-topic Installation
1. Download the archive
2. Extract the content of the archive into your cs2d root folder.
3. Edit the config file.

flame How to add Cameras on my server ?

I want to add one default camera on de_dust
What I need it's the position in pixels of my camera.
Then the type of the camera:
camera.IDLE: a camera which doesn't move
camera.MOBILE: a camera which moves
Finally add these lines in the config file: <sys/lua/camera/cfg/config.cfg>

1
2
3
4
5
6
7
8
camera.Locations = {
	["de_dust"] = {
		{
			pos = { 656, 2408 },
			type = camera.MOBILE,
		},
	}
}

INFO
Cameras spawn on each restart !
If you don't see cameras restart the round first !
edited 3×, last 18.07.16 11:36:20 pm
Approved by Sparty

Download Download

248 kb, 437 Downloads

Comments

10 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

MOHAMEDm20
GAME BANNED Off Offline

i like it but u better make cool camera design
I like it!

old

xNir
User Off Offline

Thanks for your feedbacks.

old

floria
User Off Offline

You are a beast. Nice script and 100% original
I like it!

old

Baloon
GAME BANNED Off Offline

Nice one, would be better there's configurable image.
I like it!

old

Mora
User Off Offline

@user xNir: Yes, this.
and also camera radius. for example you set it's rot 90 and set the angle:
minus = -3,
plus = 22,
I like it!

old

xNir
User Off Offline

@_T Yes, I know I'm bad on designing cool graphics stuff.
Actually, I'm rather a scripter than a designer.

@Mora_rus So, you mean cameras with differents sprites ?
May I'll implement this in the future.

old

Mora
User Off Offline

Maybe you have to add in the table with camera this:
image = "gfx/cam/camera1.png",

so you can use image dir. as
img[id]=image(camera.Locations[i].image..""
(or however it is.)
I like it!

old

Jite
User Off Offline

Nice script o.x
I like it!

old

THEMUD
User Off Offline

The script itself looks amazing, but in the graphically term the cameras are bad.
You could let someone who is specialist with making stuff like these to do it for you.
I like it!

old

Lobwver
User Off Offline

Really nice file dear Nir
I like it!
To the start Previous 1 Next To the start