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 !!
Everything is explained inside the README.txt !
Versions
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.
Installation
1. Download the archive
2. Extract the content of the archive into your cs2d root folder.
3. Edit the config file.
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
2
3
4
5
6
7
8
camera.Locations = { 	["de_dust"] = { 		{ 			pos = { 656, 2408 }, 			type = camera.MOBILE, 		}, 	} }
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
248 kb, 470 Downloads