Files

> > CS2D > Lua Scripts > [GEN/FUN] Team Crosshairs 1.0a
Files overviewCS2D overviewLua Scripts overview

English [GEN/FUN] Team Crosshairs 1.0a >

12 comments3 kb, 445 Downloads

old [GEN/FUN] Team Crosshairs 1.0a

VADemon
User Off Offline

[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
Approved by Sparty

Download Download

3 kb, 445 Downloads

Comments

12 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

glitchgod
User Off Offline

how do i change the crosshair

old

Pagyra
User Off Offline

Hmm it work with bots?
I like it!

old Colored pointers

VADemon
User Off Offline

Will do. I couldn't do this without a separate crosshair image, so I will have to add one (optional).

old

_Yank
User Off Offline

Would use 10/10
make it use random colors for each player
I like it!

old

kerker
User Off Offline

Cool! I can`t say more, lmao.
I like it!

old

Cure Pikachu
User Off Offline

@user VADemon: That's good to know. Thanks.
Spoiler >
I like it!
edited 1×, last 03.10.16 04:25:33 pm

old

VADemon
User Off Offline

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 >

old

HPB
User Off Offline

This really interesting.
I like it!

old

SANTER
User Off Offline

good work dude
I like it!

old

Cure Pikachu
User Off Offline

user VADemon has written
/sys/lua/autorun/

There, fixed your typo.

Definitely a different take from file cs2d Arbitration Tool and file cs2d pointer spec mod , which is nice. Especially for using the default crosshair.
Though team-based crosshair colors will be nice, at least for spectator mode.
More >
I like it!

old

Jedediastwo
User Off Offline

Good script
I like it!
To the start Previous 1 Next To the start