Coder Social home page Coder Social logo

map-highlight's Introduction

Map Highlighting Include

With this include you can highlight areas on the ingame map. 4 GangZones will quickly expand from the specified location, creating a ping effect. This ping effect can be customized, you can change the speed, distance, width, color, direction and delay. Since GangZones cannot actually be moved, the script repeatedly creates and destroys them to create a similar effect. In the current version only global GangZones are supported.

Functions

CreateMapHighlight(Float:x, Float:y, color, Float:distance, Float:width, interval, direction, max_steps, pause_time, playerid)

x, y: the 2D position of the center

color: RGBA color

distance: distance in m which the ping will travel

width: the width of the zones in m

interval: interval in ms in which the zones will be updated

direction: positive values will move the zones away from the center, negative values will move them towards the center

max_steps: the total number of steps the zones will take (they travel 1 step per interval)

pause_time: delay in ms for which the animation will pause after completing one iteration, 0 for none

playerid: the PlayerID for which the zones will show, -1 for all players

returns: ID of the MapHighlight, -1 if no free slot was found

DestroyMapHighlight(mhlid)

mhlid: the ID of the MapHighlight to destroy

returns: 1 if it was valid, 0 if not

IsValidMapHighlight(mhlid)

mhlid: the ID of the MapHighlight

returns: 1 if it is valid, 0 if not

SetMapHighlightPlayerID(mhlid, playerid)

mhlid: the ID to set the PlayerID of

playerid: the PlayerID to show the zones to, -1 for all players

map-highlight's People

Contributors

naseband avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.