RELEASE!!!

Friendly conversations, and everything that doesn't fit into the other forums.
  • 1
  • 2
18 posts Page 1 of 2
damik
Posts: 54
Joined: Thu Jun 23, 2016 12:02 pm
by damik » Sat Oct 20, 2018 3:05 am
marauder2k9
Posts: 211
Joined: Wed Feb 18, 2015 7:36 am
by marauder2k9 » Sun Oct 21, 2018 8:08 pm
CONGRATULATIONS!! another Torque3d release :D :D

Could u tell me how u set up the minimap?
damik
Posts: 54
Joined: Thu Jun 23, 2016 12:02 pm
by damik » Mon Oct 22, 2018 12:45 am
CONGRATULATIONS!! another Torque3d release :D :D

Could u tell me how u set up the minimap?
thanks :)

I am take Brian Roberts (Azaezel) radar code https://www.garagegames.com/community/f ... ent-855237
and add myself terrible code :oops:
this is a first version:
https://www.dropbox.com/s/3zs2xamq8u7zn ... l.zip?dl=0
marauder2k9
Posts: 211
Joined: Wed Feb 18, 2015 7:36 am
by marauder2k9 » Mon Oct 22, 2018 1:32 am
thank you!! that works perfectly! im looking to make a new version of this for rts games with a fogofwar
damik
Posts: 54
Joined: Thu Jun 23, 2016 12:02 pm
by damik » Mon Oct 22, 2018 11:23 am
thank you!! that works perfectly! im looking to make a new version of this for rts games with a fogofwar
tomorrow or the day after tomorrow I will find a version with a fogofwar
Image
marauder2k9
Posts: 211
Joined: Wed Feb 18, 2015 7:36 am
by marauder2k9 » Mon Oct 22, 2018 12:31 pm
that would be amazing!! please do as it would go along way to helping me finish my RTS game, its literally the only thing holding me back now that i have sorted out the audio :)
damik
Posts: 54
Joined: Thu Jun 23, 2016 12:02 pm
by damik » Tue Oct 23, 2018 1:30 am
that would be amazing!! please do as it would go along way to helping me finish my RTS game, its literally the only thing holding me back now that i have sorted out the audio :)
https://www.dropbox.com/s/ymae2kf6by2k2 ... r.zip?dl=0

1. In debug build NOT work !!!!

2. Use WinMerge program to see what change.

3. Example datablocks of different teams:

datablock PlayerData( AiBotGreen )
{
indTeam = 0;
Icon = "art/gui/minimap/Bot_green.png";
};

datablock PlayerData( AiBotRed )
{
indTeam = 1;
Icon = "art/gui/minimap/Bot_red.png";
};

4. Example make visible on minimap: In game\scripts\server\player.cs

function PlayerData::damage( %this, %obj, %sourceObject, %position, %damage, %damageType )
{
.
.
%obj.setVisibleForEnemyOnMiniMap();
.
.
}
marauder2k9
Posts: 211
Joined: Wed Feb 18, 2015 7:36 am
by marauder2k9 » Tue Oct 23, 2018 1:49 am
this is perfect!! ill use winmerge to see what was added and changed, i should be able to use this to feed data to shader based fog of war for the rendering side of it :D
JeffR
Steering Committee
Steering Committee
Posts: 863
Joined: Tue Feb 03, 2015 9:49 pm
 
by JeffR » Tue Oct 23, 2018 6:45 pm
Oh, very cool with the Fog of War bit. Nice work!
damik
Posts: 54
Joined: Thu Jun 23, 2016 12:02 pm
by damik » Tue Oct 23, 2018 9:20 pm
Oh, very cool with the Fog of War bit. Nice work!
Thanks, but i think this not universal solution and with not good code. Just example how i maked it in my game.
  • 1
  • 2
18 posts Page 1 of 2

Who is online

Users browsing this forum: No registered users and 6 guests