npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

grad-sectors

v0.0.1

Published

Arma3 sector framework

Downloads

4

Readme

grad-sectors

sector control implementation

based on @McDiods TvT Template but standalone and with flags

might be merged into template later on as it tries to be non-destructive

dependencies

  • https://github.com/gruppe-adler/grad-points

Configuration

in the description.ext add the following to define custom flag textures for each side default is "\A3\Data_F\Flags\Flag_red_CO.paa"

class cfgGradSectors {
    flagTextureBlufor = "";
    flagTextureOpfor = "\A3\Data_F\Flags\Flag_red_CO.paa";
    flagTextureIndependent = "\A3\Data_F\Flags\Flag_CSAT_CO.paa";
    flagTextureCivilian = "";
};

Create Sector

Size and position of a sectors is defined with a Trigger. Alle settings of the Trigger are kept besides size and form. Then an Area Entity is created (Systems >> Logic Entities >> Locations >> Area) and synced with all Triggers which should get the same sector settings.

Add Function

Now we doubleclick the Area Entity and fill the init field with the createSector function:

Syntax

[area,sector name,reward,reward per second,lock after capture,capture sides,owner,notify,onsectorcaptured,sectordata,capturemode] call grad_sectors_fnc_createSector

Parameter

Parameter | Erklärung ----------|----------- area | object - Area Entity (in init field the variable this) sector name | string (optional) - name of the sector (default: "") reward | number (optional) - amount of points a side gets for taking the point (default: 1) reward per second | number (optional) - amount of points a side gets for holding the point PER SECOND. (default: 0) lock after capture | bool (optional) - if the sector can be reconquered (default: false) capture sides | array (optional) - sides that can conquer the sector (default: [WEST,EAST,INDEPENDENT]) owner | side (optional) - side that holds the sector at game start. (default: sideUnknown) notify | boolean (optional) - if a hint is displayed to all players when sector is taken onsectorcaptured | code (optional) - custom code executed when sector is taken. Params are [_trigger,_newOwner,_oldOwner] sectordata | string - (optional) - can be used to write data into the sector, gets added as setVariable "grad_sectors_sectordata" capturemode | [number(,number - only for capture mode 1)] - 0/1/2 == capture mode, strength/time/flag, 0-9999 captureTime

Capture Modes in detail

0 - Strength

Side with more units inside the trigger captures instantly

1 - Time

Side with more units inside trigger captures with a delay (second number in array for time in seconds)

2 - Flag

Side that raises own flag captures instantly

Example

[this,"fuelstation",10,0,true,[WEST,EAST],independent, true, {}, "", [1,10]] call grad_sectors_fnc_createSector;