Files

> > CS2D > Lua Scripts > Minimap Script
Files overviewCS2D overviewLua Scripts overview

English Minimap Script >

40 comments121 kb, 936 Downloads

old Minimap Script

EngiN33R
Moderator Off Offline

To continue the "cheaty" uploads, I present - the MINIMAP SCRIPT!

This script draws a minimap on a pre-set position (you can set it in the script) that shows everything including players.
It's like the default CS2D minimap, except it shows players, it has more settings, and you can scale it!

√ The map has three modes:
1. Show to all players on XY on the map;
2. Show to all players on XY on their HUDs;
3. Show to admins on XY on their HUDs.
The map will appear half-transparent.

flame ATTENTION! If you are the server (running a server through New Game), CS2D can lag when drawing the map - on command and each round start, and when updating player positions - every second - when there are more than 4 players. If you're running it on dedicated, the script may cause little ping spikes, although it wasn't tested.

√ Chat commands:
!initmap - to initialize the map.
!mapscale <scale> - to scale the map.
By default, there are three scales:
Scale 1 - each tile is 2x2 px
Scale 2 - each tile is 4x4 px
Scale 3 - each tile is 6x6 px
So type "!mapscale 1" without quotes to scale it to 1.

√ You can add your own scales in the images table. There's a comment telling you how to do that.

Missing file bug fixed.

> Report any bugs you find, especially with map's third mode (show on admins' HUD).

PS: there's also a TF2 splash waiting for you in the archive (second screenshot)
edited 3×, last 17.02.11 07:50:25 am
Approved by Seekay

Download Download

121 kb, 936 Downloads

Comments

40 comments
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

old

DsTyLe
User Off Offline

very nice work. I love it.
I like it!

old

Robotic-Brain
User Off Offline

he still wants the file

why don't you just include it in the download?

old

EngiN33R
Moderator Off Offline

It's fixed already. Redownload the mod.

old

connor34
User Off Offline

yes it wants a file
Lua Error:dofile("sys/lua/basicfuncs.lua") no such file or directory something liek that
I like it!

old

EngiN33R
Moderator Off Offline

Huh? It wants a file? Wat?

old

connor34
User Off Offline

its look like a radar hack but it isnt its a lua script thnx man i need it really mucht


WTF -- It wants a file
I like it!
edited 1×, last 13.02.11 08:06:17 pm

old

J4x
User Off Offline

AMAZING! its like in cs source
I like it!

old

R a G e
User Off Offline

It's there any way to put the image where the radar is , and only show team-mates?

old

JONY
User Off Offline

wow man! That's kinda amazing
I like it!

old

EngiN33R
Moderator Off Offline

@Dark Byte, my my, you're right, thanks!

old

archmage
User Off Offline

Great work!

I have a suggestion. You could instead of creating an image for each player and then erasing them when the player no longer exists, just create 32 images (at round start) if the player does not exists (or is dead) set the image's alpha level to 0.0 if the player does exist and is alive set the image's alpha to 1.0. That way would not cause as much lag.

Here is an example:
More >


Where pl_x_on_mm and pl_y_on_mm is the position for the image to be drawn on the mini map.
I like it!

old

oxytamine
User Off Offline

What a nice map hack tho.

old

EngiN33R
Moderator Off Offline

I feel kinda honored that I got a 5 from the game creator
Thank you very much, all of you, I'm going to make some updates for this, like showing the objects' positions.

old

DC
Admin Off Offline

@Deaglezz: the minimap is already part of cs2d. you can view it as spectator. of course you can't see it while you are alive because it's like a cheat

@upload: nice work! (even though this will cause much additional traffic and - as already said - probably some lags)
I like it!

old Xd

DemonShake
User Off Offline

Lua really difficult.
The map seems to the smallest detail.

Lua Study: 5/5
Lua Difficulty: 5/5
Lua Success: 5/5
Map Detail: 5/5

Namely:

Conclusion: 5/5

Nice Lua.
I like it!

old

Deaglezz
User Off Offline

Awesome
Note : DC should add this in next version of CS2D like other 3d game we can see the minimap
I like it!

old

Gholan
User Off Offline

O_o,i hate KIDS
they suck(only the ones who cheat,spam,flame,revenge-rate and especially hack(some might even visit adult websites))
i can't believe their parents allow them to use internet
I like it!

old

DannyDeth
User Off Offline

Cheating lua? Not really, it's for admins to see where people are
Cheating admins = little children.
I like it!

old

Gholan
User Off Offline

great,lol this is a cheating LUA
I like it!

old

DannyDeth
User Off Offline

Very good work Engi33r Keep it up, you and DarkByte are both very smart guys

EDIT: put in rating
I like it!
To the start Previous 1 2 Next To the start