Dateien

> > CS2D > Lua Scripts > Minimap Script
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch Minimap Script >

40 Kommentare121 kb, 889 Downloads

alt 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)
3× editiert, zuletzt 17.02.11 07:50:25
Zugelassen von Seekay

Download Download

121 kb, 889 Downloads

Kommentare

40 Kommentare
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

JoseehPeola
User Off Offline

How to instal? stupid quest

alt

Alpha Beta
User Off Offline

Looks nice.
Ich mag es!

alt

Misho
User Off Offline

Nice and COOL

P.S >
Ich mag es!

alt

EvO
User Off Offline

Wow Its Nice Script

I Like It ; )
Ich mag es!

alt

Mirash
User Off Offline

Dude. Your code is very complex. Nice. :3
Ich mag es!

alt

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.
Ich mag es!

alt

Mario_Chiko
User Off Offline

yeah, it awesome
Ich mag es!

alt

Tajifun
User Off Offline

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

Amazing script!
Ich mag es!

alt

DemonicWare
User Off Offline

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

but it should only show temates not enemys!

alt epic

Apache uwu
User Off Offline

ur epic u should go epic urself in a pool of epicness and then just win
Ich mag es!

alt

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.
Ich mag es!

alt 1/5

str
User Off Offline

1/5 This is useless.. and CRAP!

alt

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

alt

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...
Ich mag es!

alt

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

alt

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 hat geschrieben
5-1 = 4

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

EDIT 1: File is back in place.

alt

Robotic-Brain
User Off Offline

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

Mehr >


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:

Mehr >


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
4× editiert, zuletzt 16.02.11 19:39:28

alt

connor34
User Off Offline

it dont work it still wants the file x(
Lua Error:('sys/lua/basicfunc.lua'): No such file or directory.
Ich mag es!
Zum Anfang Vorherige 1 2 Nächste Zum Anfang