Files

> > CS2D > Lua Scripts > Scan training
Files overviewCS2D overviewLua Scripts overview

English Scan training >

10 comments2 kb, 455 Downloads

old Scan training

united
User Off Offline

Originally based on the Laserpointer Script by Plookerbooy and the Hitzone Script Example by Unreal Software, I've done a few modifications and created the following script which aims to help (competitive) players train their off-screen scanning angles to level up their gameplay.

I've decided not to keep this to myself but rather make it open source and invite whoever is interested to improve it and work on new features.

> Installation

1) Download "scans.lua" and save it in cs2d/sys/lua
2) Download "line.bmp" and save it in cs2d/gfx
3) Open CS2D, go to "New Game" -> "More settings" and search for "mp_luaserver" option and change it to "scans.lua"
4) Enjoy!


∗ 19/12/2017 - Version 1.0 @Github
Spoiler >

ADDED
Press E to spawn a hitzone dummy.
ADDED
Line turns green when no walls are interfering with the trajectory of the line.
ADDED
Line turns red when there is a wall between the dummy and the player.
ADDED
If you're the only player in the server, pressing E again will make the previous dummy disappear and generate a new one.
ADDED
Current dummies have infinite health.
ADDED
When hitting a dummy a sv_msg will appear, indicating you've hit it.


> Current Issues & Future plans

° Running the script with multiple players in the server makes hitzone dummies not clear when creating a new one, thus, eventually having those all over the place
° Using the flashlight (or some other button), there should be the possibility to make the current dummy disappear without the need of creating a new one (currently commented out in the code).
° Dummies currently have infinite health. It would be good to have the possibility to switch between infinite health and 100hp with kevlar and helmet.
° Being able to spawn multiple dummies at the same time could be good
° Currently the laser line goes from the center of the player to the center of the dummy. It would be better if it went from the center of the player (where the shots come from) and then be as wide as the dummy hitzone, proyecting in an angle instead of a straight line.



Feel free to contribute, comment, suggest, criticize and modify the script.
Ideas are welcome too !
Approved by Sparty

Download Download

2 kb, 455 Downloads

Comments

10 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

script favor
User Off Offline

@user j0kER aR:
•First : I'm not an admin.
•Second : You are an infant , 12 or 13 years old. :).
•Third : Go and do some homework,good for you.

Good boy

P.S : Go drink some milk and grow up.

old

script favor
User Off Offline

@user j0kER aR: If you are continuing like this behaviour you will get trashed with banned users.

old

j0kER aR
User Off Offline

user script favor I do not give a shit who understands what I write or who does not!

user united knows what I write, I do not care if you understand or not

old

script favor
User Off Offline

It only spam the hits,DWI it's useless.

@user j0kER aR: Why spainsh language, other people cannot understand what ur writing , maybe insutling ... as i understand from "Mierda" .

old

j0kER aR
User Off Offline

Huy pero que lindo que esta esto! es como ver un pedazo de mierda guionado en un lua, alta mierda, al unico que le puede gustar esto es al gordo puto de @user Paset: que a ese gordo puto le faltan las 2 manos y los otros 2 boludos que le dieron like te lo dieron de lastima nomas, 18 descargas, vos paset y tus otros amigos boluditos, saludo negro virgo

old

Flema
User Off Offline

asdasdasd
I like it!
edited 1×, last 23.02.18 01:43:36 am

old

SANTER
User Off Offline

capo toma mi like
I like it!

old

ksan_leon
User Off Offline

Good job dude! I hope it will help people who want to be professional in this game.
I like it!

old

Spankerino
User Off Offline

thank you ♥
I like it!
To the start Previous 1 Next To the start