English Laser Pointer (Update 2) icon

39 comments
27.11.10 06:25:54 am
like 21 like it!
12 kb, 1,436 Downloads
archmage
User
Offline Off
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.
imageimageimageimageimage
edited 7×, last 07.11.11 02:12:10 am
ok This file has been reviewed and approved by DC (28.12.15 01:54:49 pm)

Comments

39 comments
Goto 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
30.12.11 02:19:37 pm
Up
Omega Zero
User
Offline Off
can you change this? i don't wanna press f4 to activate laser, can you change it to say !pointer on/off to activate or de-activate it?
09.10.11 03:11:28 pm
like I like it!
Up
ZXavier88Z
User
Offline Off
My Judgement
Negatives
-> You didn't smoothen the laser
-> Make the laser transparent
-> Make a laser end so the victim would fairly know he's aimed(a laser end is an end of a laser so if everytime the laser aims on a wall. the wall enlightens with color red. so yeah i expect laser ends)
-> You have to implement something to turn it on/off

This works effectively on aim_maps. or if you're going to practice. so yeah good luck improving. I am expecting better enhancements
18.09.11 10:19:43 am
Up
Bauer
BANNED
Offline Off
It dont work |: please help I change it to true but dont go
18.12.10 07:34:50 am
like I like it!
Up
Tomo-mate46
User
Offline Off
could you make it you have to turn it on so the bots wont have it at the start. so there is less lagg
13.12.10 03:02:41 pm
like I like it!
Up
Roooster
User
Offline Off
Nice! havent seen this before, yet another win by DarkByte!
edited 1×, last 11.06.11 05:26:41 pm
28.11.10 08:46:11 pm
Up
archmage
User
Offline Off
Lol yeah I will use that instead
edited 1×, last 07.11.11 01:01:18 am
28.11.10 07:30:59 pm
like I like it!
Up
Banaan
User
Offline Off
Code:
1
2
3
function ConvertCoord(x)
     return (x-(x%32)+32)/32;
end


How about this

Code:
1
2
3
function ConvertCoord(x)
     return math.floor(x/32)
end
28.11.10 09:40:38 am
like I like it!
Up
Snake_Eater
User
Offline Off
If I could this...
Dark Byte you show that nothing impossible
28.11.10 03:36:55 am
like I like it!
Up
UnderDog - The ninja - ES
GAME BANNED
Offline Off
Nice to kill more easy, i put it in my personal lua.
27.11.10 06:27:14 pm
Up
archmage
User
Offline Off
I had the idea of using a single image and just rescaling it to fit. But I also thought that it would still be iterating through the loops so I did not think it would gain speed that way. Though I have added code to prevent it from redrawing and reiterating if the player has not moved or rotated.
27.11.10 04:22:53 pm
Up
carloskiller
User
Offline Off
mm how do i do that in what program?
27.11.10 04:20:26 pm
like I like it!
Up
kNedLiik
User
Offline Off
Try use this..
Edited flacko code to make it F2 on/off
Spoiler >
27.11.10 03:32:57 pm
Up
carloskiller
User
Offline Off
it looks cool but i want to know how to activate the laser if you respond me i give u 5\5
27.11.10 10:41:43 am
Up
Flacko
User
Offline Off
This is my old script:
http://pastebin.com/LkR7b3ty
Could be of some use.
27.11.10 10:01:42 am
like I like it!
Up
Banaan
User
Offline Off
sweet code
haven't tried it out but the code looks good.

I was bored once, so I created a similar thing, except instead of a pointer I drew lines to all my enemies, including health (using color) and distance (transparency). Even on my crappy computer I had no lag whatsoever, not even when using the "always" hook.

The lag is caused by creating, coloring and removing a lot of images. In my script, I created one image of 40 × 1 px (I think) for each enemy, and continuously set it's size, color, alpha and pos. (size until enemy that is). Only when the enemy (or I) died, the image was removed.

If you want I can PM you the code (though it's a lot longer than yours).

The idea and the code are really good, only the efficiency could be better
27.11.10 06:53:12 am
like I like it!
Up
NKN
User
Offline Off
wow i see first screenshot fps 38 second 23 third 17 and fourth 13, 15 seconds later crash
27.11.10 06:32:25 am
Up
archmage
User
Offline Off
Every frame. That might explain the lag...

@Kel9290
I would if it were possible.
27.11.10 06:27:45 am
Up
Admir
User
Offline Off
is the wall detection update in milisecond or?
27.11.10 06:27:14 am
like I like it!
Up
Kel9290
User
Offline Off
cool but add transparent (if you can)
To the start Previous 1 2 Next To the start