Dateien

> > CS2D > Lua Scripts > [xNir] Security Cameras
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch [xNir] Security Cameras >

10 Kommentare248 kb, 437 Downloads

alt [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 !
3× editiert, zuletzt 18.07.16 23:36:20
Zugelassen von Sparty

Download Download

248 kb, 437 Downloads

Kommentare

10 Kommentare
Zum Anfang Vorherige 1 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

MOHAMEDm20
GAME BANNED Off Offline

i like it but u better make cool camera design
Ich mag es!

alt

xNir
User Off Offline

Thanks for your feedbacks.

alt

floria
User Off Offline

You are a beast. Nice script and 100% original
Ich mag es!

alt

Baloon
GAME BANNED Off Offline

Nice one, would be better there's configurable image.
Ich mag es!

alt

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,
Ich mag es!

alt

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.

alt

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.)
Ich mag es!

alt

Jite
User Off Offline

Nice script o.x
Ich mag es!

alt

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.
Ich mag es!

alt

Lobwver
User Off Offline

Really nice file dear Nir
Ich mag es!
Zum Anfang Vorherige 1 Nächste Zum Anfang