Laser Pointer (Update 2) 
39 comments 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.
Changes:






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

Comments
39 commentsLog in!
You need to log in to be able to write comments!Log in

COOL . The game , now like a real cs
. But make lag and CS2D is Not Responding!!

edited 1×, last 19.01.12 03:02:55 pm

Lemme make you one which you can put on/off with comments --
----
change
with
and change
with
to make it turn on/off with saycommands
----
change
Code:
1
addhook("serveraction", "action")
with
Code:
1
addhook("say", "saycommands")
and change
Code:
1
2
3
4
5
2
3
4
5
function action(id, a)
if ( a == 3 ) then
lsr_pntr_on[id] = not lsr_pntr_on[id]
end
end
if ( a == 3 ) then
lsr_pntr_on[id] = not lsr_pntr_on[id]
end
end
with
Code:
1
2
3
4
5
6
7
8
9
10
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
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
edited 3×, last 02.01.12 10:55:52 am
02.01.12 08:43:59 am

@
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...



OMG: The best laser i can find!!!
@Omega Zero: Change it is achievable through lua editing.
@Omega Zero: Change it is achievable through lua editing.
30.12.11 05:50:03 pm

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
