Files

> > CS2D > Lua Scripts > Laser Pointer (Update 2)
Files overviewCS2D overviewLua Scripts overview

English Laser Pointer (Update 2) >

39 comments12 kb, 1,500 Downloads

old Laser Pointer (Update 2)

archmage
User Off Offline

This will create a laser pointer. It has wall detection (so the laser stops at walls) and an option for player detection (lags if several players). To enable it set ALLOW_TO_CHECK_PLAYER_POINTER_COLLISION to true.

Changes:
• use F4 to activate/deactivate the pointer
• "laser end" suggested by KingRhody90
• slightly faster
• Fixed the lag (it will only lag with man players using a laser)
• the pointers no longer stop at obstacles
• now it can optionally stop at players

important
read the readme for installation instructions.
edited 7×, last 07.11.11 02:12:10 am
Approved by DC

Download Download

12 kb, 1,500 Downloads

Comments

39 comments
Page
To the start Previous 1 2 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

LUCI
User Off Offline

Crash when press F4

old

FaZe_Fabian_MLG
BANNED Off Offline

its time to quickscope some players!
I like it!

old

Isaac42
User Off Offline

Good update!
I like it!

old

Vestas
User Off Offline

what do I do with the flare_fb and the plot file?

old

dragon13
User Off Offline

Nice its good
I like it!

old

BATTLEKOT
User Off Offline

ou yeah!
I like it!

old

Jeferes
User Off Offline

Nice Laser Update!
I like it!

old

MikuAuahDark
User Off Offline

i test at blank map and what happend? LAG + Not responding
I like it!

old

Sniper_x
User Off Offline

COOL . The game , now like a real cs . But make lag and CS2D is Not Responding!!
I like it!
edited 1×, last 19.01.12 03:02:55 pm

old

tom282f3
User Off Offline

This makes my server lags. LOL. BAD.
I like it!

old

Alistaire
User Off Offline

Lemme make you one which you can put on/off with comments --

----

change

1
addhook("serveraction", "action")

with

1
addhook("say", "saycommands")

and change

1
2
3
4
5
function action(id, a)
	if ( a == 3 ) then
		lsr_pntr_on[id] = not lsr_pntr_on[id]
	end
end

with

1
2
3
4
5
6
7
8
9
10
function saycommands(id,message)
	if message:sub(1,6)=="!laser" then
		if message:sub(8,9)=="on" then
			lsr_pntr_on[id] = true
		elseif message:sub(8,10)=="off" then
			lsr_pntr_on[id] = false
		end
	return 1;
	end
end

to make it turn on/off with saycommands
I like it!
edited 3×, last 02.01.12 10:55:52 am

old Idiot

ERROR_LT
User Off Offline

@user Omega Zero ,, I am not noob, you then. ,, <- Awesome combat you little Dork + if you dont know how to make it on/off by saying some kind of a command then stop saying that other people scripts are bad ! At least they make scripts than just say : This Script is bad BOO! So like I said Get a Life kid...
I like it!

old

tom282f3
User Off Offline

OMG: The best laser i can find!!!
@Omega Zero: Change it is achievable through lua editing.
I like it!

old

Omega Zero
User Off Offline

@user ERROR_LT: I am not noob, you then.
@user archmage: can make it to activate the laser and de-activate the laser by using commands, please?

old

Mirash
User Off Offline

Wow. Good execution of code! I'm impressed.
I like it!

old Good job

ERROR_LT
User Off Offline

good job with the update to turn it on by pressing f4 + dont listen to Omega Zero hes some kind of a noob (just saying ;D) that wants to make everything worse. because what happens if your in a middle in a fire fight? you would get killed faster then you would write : !pointer on . So other words awesome job
I like it!
To the start Previous 1 2 Next To the start