English [GEN/FUN] Team Crosshairs 1.0a icon

11 comments
03.10.16 02:01:12 am
like 8 like it!
3 kb, 64 Downloads
VADemon
User
Offline Off
[General / FUN] Crosshairs

To make it short:

> You can see your team mates' crosshairs. Cool. (Video)
As spectator you can see everybody's crosshairs. Even cooler.
Special unnecessary feature: you can see your own cursor with the additional network delay. Yay!



∗ Commands:
!crosshairs or !crosshair or !pointer - help message
!crosshairs ghost - (toggle) show your own cursor as image (off by default)
!crosshairs seeteam - (toggle) show your team mates' cursors (on by default)

∗ Installation
Drop crosshairs.lua into /sys/lua/autorun/ folder

∗ Want more features?
Like showing enemy cursors, fancier cursor image and etc? PM me.

° Does it cause lag?
It shouldn't unless you're playing from Mars. Cursor images are only updated when needed. Additionally, I've built-in a "lag reducer" for people with >200ms ping (configurable). For them it will only request player data every 100ms (also configurable). For "fast" players with low ping the request are made on cs2d lua hook always
In case you want to slow down the requests for all players, set "crosshairs.pingboundary" to 0, so that every player is considered slow.

° Limitations
The cursors for spectators will appear laggy because spectators' positions are sent every second or so by CS2D. I think I can't do anything about this

° Changelog
1.0a: Fix bug in isfriendly() functions, it didn't work correctly in Deathmatch

PS: I only wonder if this can be really useful for teamwork on construction/zombie servers.
edited 6×, last 03.10.16 04:05:41 pm
ok This file has been reviewed and approved by Sparty (03.10.16 06:04:03 am)

Comments

11 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
06.10.16 11:08:34 pm
like I like it!
Up
Pagyra
User
Offline Off
Hmm it work with bots?
05.10.16 10:15:53 pm
Up
VADemon
User
Offline Off
Will do. I couldn't do this without a separate crosshair image, so I will have to add one (optional).
05.10.16 03:58:52 pm
like I like it!
Up
_Yank
User
Offline Off
Would use 10/10
make it use random colors for each player
03.10.16 08:59:44 pm
like I like it!
Up
Jite
User
Offline Off
Nice.
03.10.16 07:51:25 pm
like I like it!
Up
kerker
User
Offline Off
Cool! I can`t say more, lmao.
03.10.16 03:48:50 pm
like I like it!
Up
Cure Pikachu
User
Offline Off
@user VADemon: That's good to know. Thanks.
Spoiler >
edited 1×, last 03.10.16 04:25:33 pm
03.10.16 03:07:38 pm
Up
VADemon
User
Offline Off
Thanks guys!


@user Cure Pikachu: Thanks for telling about string value... I h8 user DC for this. That comparison would have always returned true
More, Cure Pikachu >
03.10.16 09:18:53 am
like I like it!
Up
HPB
User
Offline Off
This really interesting.
03.10.16 08:22:07 am
like I like it!
Up
SANTER
User
Offline Off
good work dude
03.10.16 03:18:16 am
like I like it!
Up
Cure Pikachu
User
Offline Off
user VADemon has written:
/sys/lua/autorun/

There, fixed your typo.

Definitely a different take from file cs2d Arbitration Tool (7) and file cs2d pointer spec mod (10), which is nice. Especially for using the default crosshair.
Though team-based crosshair colors will be nice, at least for spectator mode.
More >
03.10.16 02:39:15 am
like I like it!
Up
Jedediastwo
User
Offline Off
Good script
To the start Previous 1 Next To the start