Files

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

English Minimap Script >

40 comments121 kb, 888 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, 888 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

JoseehPeola
User Off Offline

How to instal? stupid quest

old

Alpha Beta
User Off Offline

Looks nice.
I like it!

old

Misho
User Off Offline

Nice and COOL

P.S >
I like it!

old

EvO
User Off Offline

Wow Its Nice Script

I Like It ; )
I like it!

old

Mirash
User Off Offline

Dude. Your code is very complex. Nice. :3
I like it!

old

Obviously Exactly Myself
User Off Offline

It's just awesome, but so cheaty that people won't come to my server, so I won't download.
I like it!

old

Mario_Chiko
User Off Offline

yeah, it awesome
I like it!

old

Tajifun
User Off Offline

@str
Uhm... WTF is wrong with you?

Amazing script!
I like it!

old

DemonicWare
User Off Offline

yea good job! this will may help a lot to clan wars!

but it should only show temates not enemys!

old epic

Apache uwu
User Off Offline

ur epic u should go epic urself in a pool of epicness and then just win
I like it!

old

maPmaKer
User Off Offline

So now we can all see where are our enemies on the map - cool script , maybe more for fun because it would be unfair to see where are your enemies.
I like it!

old 1/5

str
User Off Offline

1/5 This is useless.. and CRAP!

old

Robotic-Brain
User Off Offline

the other script isn't mine either
i searched in both files and found the bug in his one

is it such a big problem if someone has found a bug?
if i had programmed this and you told me "hey there's a bug" i would be happy (ok maybe not because i don't like bugs) but i would correct it

and as you can see in my post I would rate 4 because it is indeed an amazing script but with a bug

oh and my solution was editing this script so both can run

old

JONY
User Off Offline

@Robotic-Brain,
if it crushes your server, guess what is solution to this problem? Then turn off your other scripts or don't use this one! It's an amazing script and he worked on it not for somebody like you to rate it 1/5...
I like it!

old

Robotic-Brain
User Off Offline

ehh.. I Edited the Post
first I thought: "cool a minimap" so 4 Points but then: "Oh damn it crashes my server" so I updated the rating

and I don't "teach" you, I just say, that you must keep in mind, that your script is propably not the only one running on a server

old

EngiN33R
Moderator Off Offline

Oi, I made it in 5 hours, what the hell did you expect? And sir, I code how I want, don't teach ME how to code. And I'm aware that the file is missing, but I don't know why.
Robotic-Brain has written
5-1 = 4

And your rating is 1. Is it just me, or 4 =/= 1?

EDIT 1: File is back in place.

old

Robotic-Brain
User Off Offline

*sigh*
I figured out how the missing functions have to work and created the file by myself

More >


paste this into a file called basicfuncs.lua and it should work


Btw. its a nice script but there are 2 bugs:
1. the basicfuncs file is missing -> -1
2. you don't see dyn_walls and breakables (like in the normal map)

5-1 = 4

EDIT:

OMG what the hell?
my bots don't work anymore

look at this:

More >


you can't just overwrite DC's functions
that's the reason why you should code like this:
1
2
3
4
5
6
7
8
9
10
11
12
if myownmod == nil then
	mymod={}
	function mymod.myfunc1()
		-- content goes here
	end
	
	mymod.myfunc2 = function ()
		-- content goes here
	end
else
	error("Mod does already exist!")
end


P.S.: I'll rate again if this is fixed
edited 4×, last 16.02.11 07:39:28 pm

old

connor34
User Off Offline

it dont work it still wants the file x(
Lua Error:('sys/lua/basicfunc.lua'): No such file or directory.
I like it!
To the start Previous 1 2 Next To the start