Giter VIP home page Giter VIP logo

l_ambicivs's Introduction

//--/ L_ambiCivs by LAxemann /--// A lightweight script suite that allows multiplayer-compatible civil population. Civilians will walk around urban areas after spawning into "their" house. Features a "script hook" for running a function on every spawned civilian or its assigned house. Features blacklisting areas and players. The script runs COMPLETELY SERVER-SIDE.

/* Quick Start */

  1. Drop the "L_ambiCivs" folder as well as the "initServer.sqf" into your mission folder. That's it. 1.1 If you already got an initServer.sqf, paste the following anywhere into the file: #include "L_ambiCivs\init.sqf"

/* Quick configuration */

  1. Navigate into the L_ambiCivs folder within your mission folder. You may want to look into three files: "config.sqf","classes.sqf" and "blacklists.sqf"
  2. Config.sqf: Basic settings like spawn distances and behaviour. (Tip: Increase the check intervals in case you experience performance issues with a large amount of players) 2.1: Assigning a function name to L_ambiCivs_customInitFunction will make the function run when a civilian spawns, passing the argument [civilian, assigned house].
  3. Classes.sqf: Civilian classes that will be spawned.
  4. Blacklist.sqf: Blacklisting areas civilians shouldn't spawn in and players that should be ignored by the script. !! All parameters can be changed on the fly during a mission !!

/* Known issues / limitations */

  • The script focuses on performance and by default does a simple job - it makes AI civilians walk around cities. Advanced behaviour has to be scripted manually.
  • Spawning units in ArmA always causes a micro-lag. The script is very efficient and can spawn civilians in a very rapid order by decreasing the check-intervals, but bear in mind that the micro-stuttering from spawning units will appear a lot more often this way.

/* License */ You are free to modify the script to your liking within your mission, but please mention the modification. Uploading a modification of the script as a "standalone" version is not permitted.

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.