GithubHelp home page GithubHelp logo

Mortar usage about antistasi-1.x HOT 2 OPEN

a3antistasi avatar a3antistasi commented on August 22, 2024
Mortar usage

from antistasi-1.x.

Comments (2)

Barbolani77 avatar Barbolani77 commented on August 22, 2024 1

Code from WOTP, 100% portable, if you make excessive rounds from the same position, you earn a wonderful QRF (remember in WOTP are very refined) and a nice reveal for the nearby units.

Reading the 300 mts makes me thing half of the community knows that thing, and makes me think about that number should be random (to some point) so you never feel safe of avoiding the terrible Defend Petros Mission.

_veh addEventHandler ["Fired", { _mortero = _this select 0; _datos = _mortero getVariable ["detection",[[0,0,0],0]]; _posicion = position _mortero; _chance = _datos select 1; if ((_posicion distance (_datos select 0)) < 300) then { _chance = _chance + 3; } else { _chance = 0; }; if (random 100 < _chance) then { {if ((side _x == malos) or (side _x == muyMalos)) then {_x reveal [_mortero,4]}} forEach allUnits; if (_mortero distance posHQ < 300) then { if (!("DEF_HQ" in misiones)) then { _lider = leader (gunner _mortero); if (!isPlayer _lider) then { [] remoteExec ["ataqueHQ",HCattack]; } else { if ([_lider] call isMember) then {[] remoteExec ["ataqueHQ",HCattack]}; }; }; } else { _bases = (aeropuertos - mrkSDK) select {(getMarkerPos _x distance _posDestino < 15000) and ((spawner getVariable _x != 0)) and (dateToNumber date > server getVariable _x)}; if (count _bases > 0) then { _base = [_bases,_posicion] call BIS_fnc_nearestPosition; _lado = if (_base in mrkNATO) then {malos} else {muyMalos}; [getPosASL _mortero,_lado,"Normal"] remoteExec ["patrolCA",HCattack]; }; }; }; _mortero setVariable ["detection",[_posicion,_chance]]; }];

from antistasi-1.x.

DukeVenator avatar DukeVenator commented on August 22, 2024

I would make it so that if you keep firing from the same postion they investigate
If I shoot a mortar from 5km away how would they know I was there? on the first few shots?

But if I keep firing its not hard to figure out a direction?

So maybe a unalerted patrol goes looking in the general area?
Also two words: Money Farm

from antistasi-1.x.

Related Issues (20)

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.