Files

> > CS2D > Lua Scripts > Env_Laser v1.0
Files overviewCS2D overviewLua Scripts overview

English Env_Laser v1.0 >

7 comments2 kb, 551 Downloads

old Env_Laser v1.0

MikuAuahDark
User Off Offline

Env_Laser entity script by user MikuAuahDark

∗ Description ∗
Just like the name, it creates a laser at specific angle
Because addtional entities request are not allowed then i create this LUA

∗ Features ∗
> Laserbeam effect
> Can be triggered like another entities
> No twice analyze
> Uses cs2d lua hook ms100 NOT always
> Uses Trigger_Use

∗ How to Install ∗
Extract Env_Laser.lua at specificed folder and edit server.lua to execute Env_Laser.lua when server started

∗ Reserved Global Variables ∗
• Env_Laser
• Env_Laser_IsScanned
• Env_Laser_scan
• Env_Laser_Draw_Laser
• Env_Laser_Toggle

∗ Information ∗
Hooks: 3(cs2d lua hook ms100,cs2d lua hook triggerentity,cs2d lua hook startround)
Lines: 81

∗ How to Create Env_Laser ∗
1. Create Trigger_Use entity
2. On Trigger field enter this
1
Env_Laser status
Where status can be "on" or "off"(case-insensitive)
3. Env_Laser only work on specific button type. Env_Laser only work on button type Lighted_Color. So set it
4. The most important, the direction of the laser. Note that the direction is reversed(Choosing Bottom shows the laser at north). You can set this by Setting the Alignment option at entity setting
5. You can also give it name, so it can be turned on/off by map(Skip this if not needed)
6. Press OK, Save your map, and test it.

∗ Rules ∗
√ You can use it for your server
√ You can edit it
√ You can upload at another website, say user MikuAuahDark made it
× You can't say this is yours
× You can't upload on another website without put me on credits

∗ Notes ∗
1. Bugs? Feedbacks? on comments please, don't at PM
2. Many lasers can cause lags. Be careful.
3. Currently Env_Laser_desc.lua doesn't available this time. Maybe tomorrow

∗ Version History ∗
> v1.0
> >
ADDED
Initial Release

∗ Another MikuAuahDark Scripts ∗
> file cs2d Timer Extra function(timerEx) v4.0
> file cs2d [UNUSED] Get Player Rank v1.4
> file cs2d Weapon Hudtxt v1.0
> file cs2d Improved Badwords v2.0
edited 4×, last 03.11.13 01:10:54 am
Approved by Infinite Rain

Download Download

2 kb, 551 Downloads

Comments

7 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

_Lima_
User Off Offline

Oh nice.
I like it!

old

DaisukeOno
User Off Offline

You're Indonesian Is't ?
I like it!

old

Geneor
User Off Offline

• LOL
I like it!

old

Dimas541
User Off Offline

gosh, it's like attack "Shoop Da Whoops" and skill "SilauMan"
I like it!

old

Dovahkin
User Off Offline

Impressive.
I like it!
To the start Previous 1 Next To the start