Author Topic: neat little marker thingy  (Read 1657 times)

Offline HaXtOr

  • Sr. Member
  • ****
  • Posts: 423
    • http://www.wtfmoogle.com
neat little marker thingy
« on: December 07, 2004, 03:39:07 PM »
TethysGame::PlaceMarker(unit to assign this marker,locx,locy,type of marker);
this puts a nifty little marker on the map that you can have units protect or goto for a mission objective. the possibilitys are fun as you may also have units pop up here at random and attack you as a "transporter thingy"  

Offline Eddy-B

  • Hero Member
  • *****
  • Posts: 1186
    • http://www.eddy-b.com
neat little marker thingy
« Reply #1 on: December 07, 2004, 03:49:27 PM »
well the transporter idea is neat !!
Did you alos figure out what the marker id does ?
Rule #1:  Eddy is always right
Rule #2: If you think he's wrong, see rule #1
--------------------

Outpost : Renegades - Eddy-B.com - Electronics Pit[/siz

Offline BlackBox

  • Administrator
  • Hero Member
  • *****
  • Posts: 3093
neat little marker thingy
« Reply #2 on: December 07, 2004, 03:56:13 PM »
Yes. We already found this out, and I have this in the newest SDK (yet unreleased):

The official additions should read:
at the top of Outpost2DLL.h:
Code: [Select]
// Marker Types
#define marker_cir 0 // circular
#define marker_dna 1 // dna strand
#define marker_lab 2 // beaker


in the TethysGame class declaration of Outpost2DLL.h:
Code: [Select]
static int __fastcall PlaceMarker(class Unit &, int x, int y, int markerType);

markerType MUST be one of those #defines at the top. Any other value will cause the game to crash.
The Unit parameter is useless as far as I saw, it has absolutely no effect on the marker. (I don't even think it's used in the official DLLs)

The marker doesn't really have any ties to a unit at all, in the game.

Note this is a marker only and doesn't serve as a "transporter" by itself.