English [xNir] Security Cameras icon

10 comments
18.07.16 11:34:13 pm
like 7 like it!
248 kb, 70 Downloads
xNir
User
Offline Off
> 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>

Code:
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 !
imageimage
edited 3×, last 18.07.16 11:36:20 pm
ok This file has been reviewed and approved by Sparty (19.07.16 06:02:52 am)

Comments

10 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
24.08.16 02:23:56 pm
like I like it!
Up
MOHAMEDm20
GAME BANNED
Offline Off
i like it but u better make cool camera design
24.08.16 12:09:59 pm
Up
xNir
User
Offline Off
Thanks for your feedbacks.
23.08.16 08:43:24 pm
like I like it!
Up
floria
User
Offline Off
You are a beast. Nice script and 100% original
24.07.16 08:21:52 am
like I like it!
Up
Boolean
GAME BANNED
Offline Off
Nice one, would be better there's configurable image.
19.07.16 03:15:09 pm
like I like it!
Up
Mora_rus
User
Offline Off
@user xNir: Yes, this.
and also camera radius. for example you set it's rot 90 and set the angle:
minus = -3,
plus = 22,
19.07.16 01:51:59 pm
Up
xNir
User
Offline Off
@_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.
19.07.16 12:43:08 pm
like I like it!
Up
Mora_rus
User
Offline Off
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.)
19.07.16 11:44:26 am
like I like it!
Up
Jite
User
Offline Off
Nice script o.x
19.07.16 09:08:49 am
like I like it!
Up
THEMUD
User
Offline Off
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.
19.07.16 05:19:22 am
like I like it!
Up
Lobwver
User
Offline Off
Really nice file dear Nir
To the start Previous 1 Next To the start