samp.directory
← Skripte und Bibliotheken

Naseband/SAMP-MapDrawer2D

Draws a 2D Map of the World using ColAndreas

Bibliothek★ 7aktualisiert Apr. 2020Keine LizenzPawn
Auf GitHub öffnen

Dieses Repository hat keine Lizenzdatei. Es ist öffentlich lesbar, aber das allein gibt noch keine Erlaubnis, es weiterzuverwenden.

Im Pawn-Compiler ausprobieren →

Fügt seine Include-Dateien samt der Bibliotheken, von denen es abhängt, dem Pawn-Compiler in deinem Browser hinzu, bereit zum Einbinden in ein Skript.

README.md

SAMP-MapDrawer2D

Draws a 2D Map of the World using ColAndreas

Load as Filterscript to begin drawing a BMP File.

You can configure resolution, World Bounds, Colors and more in the script.

If your Script does not already use ColAndreas for your maps, set the GRAB_OBJECTS define to true to grab all Streamer Objects from the specified virtual world and temporarily create them as Collision Objects.

OC.inc

This Include contains an Array for all Model Categories (including SAMP Objects). The FS uses it to draw colors based on them.

farray.inc

FArray offers an Array-like file system to buffer lots of data somewhere else than the stack or header. They are slower, but they offer theoretically unlimited space which can be (de)allocated at any time.

Note: Create a folder called fa inside your scriptfiles directory.

Example

This is a Map generated by this Script, colors are based on Categories (Roads are Red, Railroads are Blue) and the steepness of the terrain. Most roads in the desert are missing, because most of them are part of a large terrain model (making it impossible to tell them apart from other model types sadly). However you could use the GPS Plugin (or data from GPS.dat) to color them.

Diese Seite wird aus dem erstellt, was GitHub über das Repository veröffentlicht. samp.directory hostet den Code nicht. Ein Problem mit diesem Eintrag melden