Difference between revisions of "Category:Eric's Mission Framework (EMF)"

From cluster wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
This framework is merely just a collection of functions I've written for various CC missions over the last 2 years I've been in CC. It is a weird collection of spaghetti code and extremely buggy code overall that get's changed constantly to work better for a mission.
{{CMF Feature|Obsolete|Since EMF/CMF v2.1.0 everything in this category should be considered obsolete.}}
This framework is merely just a collection of functions I've written for various CC missions over the last few years I've been in CC. It is a weird collection of spaghetti code and extremely buggy code overall that get's changed constantly to work better for a mission.


== How to install ==
== How to install ==
If you are fancy tech guy who has installed git you can just git clone this repository into your mission root directory, or if you aren't that fancy just download the zip and extract into your root mission directory.
If you are fancy tech guy who has installed git you can just git clone this repository into your mission root directory, or if you aren't that fancy just download the zip and extract into your root mission directory.
== Getting started ==
EMF relies on your understanding of Arma 3's event scripts. Therefor i will list all of them underneath along with a short description. To see the initialization order see: [https://community.bistudio.com/wiki/Initialization_Order BI Wiki: Initialization Order]
=== emf_config.cpp ===
This file is to define default EMF properties. For the time being it's only used to set the DEBUG level and respawn delay but this may change in the future.
=== init.sqf ===
mission initialization, executed on server side when mission is started (before briefing screen).
=== initPlayerLocal.sqf ===
JIP initialization, executed locally when player joins mission.
=== onPlayerKilled.sqf ===
Executed locally when player is killed in a singleplayer or in a multiplayer mission.
=== onPlayerRespawn.sqf ===
Executed locally when player respawns in a singleplayer or in a multiplayer mission with "BASE" respawn type.
=== init3DEN.sqf ===
Executed when loading a scenario in Eden Editor if the file is present. Useful for executing scenario-specific editor functionality. Not included in EMF but is mentioned here since it really helps when using color corrections.


== Events ==
== Events ==
EMF has currently got 3 events available inside the events directory.
EMF has currently got 3 events available. These events are located in the "events" directory (''<missionRoot>/events/'').


=== onGameStart ===
=== onGameStart ===
This event is called when safestart is disabled (when EMF_missionSafeStart is set to true).
This event is called when safestart is disabled (when EMF_missionSafeStart is set to true).  


=== onPlayerKilled ===
=== onPlayerKilled ===
Line 51: Line 31:
=== flashbangOverride ===
=== flashbangOverride ===
This function overrides the default flashbang explosion. Which flashbangs to affect can be configured or disabled using the emf_flashbang_grenades variable.
This function overrides the default flashbang explosion. Which flashbangs to affect can be configured or disabled using the emf_flashbang_grenades variable.
__NOTOC__

Latest revision as of 13:16, 21 December 2022

🕖
The following information is obsolete. Reason: Since EMF/CMF v2.1.0 everything in this category should be considered obsolete.

This framework is merely just a collection of functions I've written for various CC missions over the last few years I've been in CC. It is a weird collection of spaghetti code and extremely buggy code overall that get's changed constantly to work better for a mission.

How to install

If you are fancy tech guy who has installed git you can just git clone this repository into your mission root directory, or if you aren't that fancy just download the zip and extract into your root mission directory.

Events

EMF has currently got 3 events available. These events are located in the "events" directory (<missionRoot>/events/).

onGameStart

This event is called when safestart is disabled (when EMF_missionSafeStart is set to true).

onPlayerKilled

This event is called when the local player gets killed.

onPlayerRespawn

This event is called when the local player respawns.

Init Scripts

Some scripts in EMF are run on mission initialization (can be disabled in XEH_PREP in the init function directory). I will list them underneath with a short description of what they do.

setSkill

A function that sets AI skills to use area suppression instead of accurate suppression

resizeMapMarkers

Keep marker size consistent, can be disabled by client.

mapSwitchTextures

This changes the player's default map texture to drawn instead of satellite.

flashbangOverride

This function overrides the default flashbang explosion. Which flashbangs to affect can be configured or disabled using the emf_flashbang_grenades variable.


Subcategories

This category has the following 2 subcategories, out of 2 total.