HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Observer and Unused player slot

04-12-2008, 07:50 PM#1
Troll-Brain
First i hate DOTA, but it's not the main of this post.
when you are an observer you get the first Unused player slot, but in the dota map it seems not.
Or at least the units have the right color.
i tried to change the colour of the units and the player but it doesn't work.
I don't want to lost my time to read the ugly unprotected code of the DOTA map , so plz tell me how he did that

if i must, i'm not afraid to edit the war3map.j directly
04-12-2008, 08:20 PM#2
Toadcop
Quote:
First i hate DOTA
why ? :'( actually if things are so you must hate who play it. no one force you to do something with it.

i remember in dota it's weird realised. aka the 2 cpu players are get neutral (some players above 11 player) and observers are 0,6 player.

here i found the place xD
Collapse JASS:
if GetPlayerState(III0[0],PLAYER_STATE_OBSERVER)!=0 or GetPlayerState(II10[0],PLAYER_STATE_OBSERVER)!=0 then
set I0OI=true
set III0[0]=Player(13)
set II10[0]=Player(14)
set O1O01O=Player(0)
set O1OIOO=Player(6)
call SetAllyColorFilterState(0)

yes the Sentinels and Undead are 13,14 players

... after 5 minutes.
yes it's easy.

playerslots 0 and 6 are not intialized. so if you turn observers ON war3 automaticaly adds it. after this in the map are some checks to make normal compability etc.

so in fact dota easly can be 6 vs 6 players. aka anything needed is allready done.
04-12-2008, 09:13 PM#3
DioD
Unused slots dont need to stay after used...
04-12-2008, 11:58 PM#4
PandaMine
You can still create units for players even if they are not designated as player slots (as Toadcop said)
04-16-2008, 05:02 PM#5
Troll-Brain
thx for answer but who know what is the action(s) that i need to display the player's name when the mouse is above an unit.
If you are a player (not an observer), in the dota map you can see the name of the Player(13) and the player(14).
SetPlayerName works well but when the mouse is above any unit of these neutral players, i don't see their name, even if i'm a player
04-16-2008, 09:09 PM#6
DioD
Neutrals do not display its name also they always black on minimap if second(?) minimap filtering is set.
04-17-2008, 04:58 PM#7
Troll-Brain
Zoom (requires log in)
Attached Images
File type: pngscreen.PNG (121.0 KB)
04-17-2008, 05:06 PM#8
Malf
So what's the problem? You can already see the player name when you're the player.

And DioD, they aren't black on the minimap as far as I know.
04-17-2008, 05:15 PM#9
Troll-Brain
Quote:
Originally Posted by Malf
So what's the problem? You can already see the player name when you're the player.

And DioD, they aren't black on the minimap as far as I know.

the problem is that i can't make that !!! (read the post before this one).
04-26-2008, 01:39 PM#10
Troll-Brain
up
04-27-2008, 10:23 PM#11
Pyrogasm
Did you try changing the player names locally?
04-27-2008, 10:31 PM#12
Switch33
Quote:
when the mouse is above any unit of these neutral players, i don't see their name, even if i'm a player

Um.. change the classification of the unit to what a neutral item shop has or in other words change the classification on the unit to Mechanical, Neutral it should display names like you want then.(You might not even need the Mechanical part i'm almost sure it's the neutral part of classification that shows names like that with mouse over units.)
04-29-2008, 05:28 PM#13
Troll-Brain
Quote:
Did you try changing the player names locally?
no but i don't see the point of that, i said that i could change the name

Quote:
Um.. change the classification of the unit to what a neutral item shop has or in other words change the classification on the unit to Mechanical, Neutral it should display names like you want then.(You might not even need the Mechanical part i'm almost sure it's the neutral part of classification that shows names like that with mouse over units.)


Indeed neutral classification is important but it is not so easy.

For the neutral hostile player, the name appears whatever the unit, even without attribute neutral.

for the passive neutral player, the name is displayed if the unit has the neutral classification and it is a building.

for the other neutral players it just doesn't work ...

Maybe there is an other tip