Skip to content

Commit

Permalink
Merge pull request dklollol#75 from dklollol/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
perfk authored Aug 12, 2016
2 parents c07fbcf + 2afe7e6 commit 6d7a730
Show file tree
Hide file tree
Showing 19 changed files with 768 additions and 135 deletions.
38 changes: 18 additions & 20 deletions core/functions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,24 @@ FNC_EventSpawned = {

};

FNC_EventRespawned = {

private ["_new"];

_new = _this select 0;

if (!(_new getVariable "FW_Dead")) then {

_new call FNC_EventSpawned;

} else {

_new call FNC_UntrackUnit;

};

};

FNC_EventDisconnect = {

private ["_unit", "_side", "_type", "_total", "_current"];
Expand Down Expand Up @@ -154,33 +172,13 @@ FNC_EventDisconnect = {
};

} forEach FW_Teams;

deleteVehicle _unit;

};

false

};

FNC_EventRespawned = {

private ["_new"];

_new = _this select 0;

if (!(_new getVariable "FW_Dead")) then {

_new call FNC_EventSpawned;

} else {

_new call FNC_UntrackUnit;

};

};

FNC_TrackUnit = {

private ["_unit"];
Expand Down
4 changes: 3 additions & 1 deletion core/init.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ if (isServer) then {
FW_EventRespawnedHandle = addMissionEventHandler ["EntityRespawned", {_this call FNC_EventRespawned;}];
FW_EventKilledHandle = addMissionEventHandler ["EntityKilled", {_this call FNC_EventKilled;}];

FW_EventDisconnectHandle = addMissionEventHandler ["HandleDisconnect", {_this call FNC_EventDisconnect;}];

};

if (!isDedicated) then {
Expand Down Expand Up @@ -51,7 +53,7 @@ if (!isDedicated) then {

//Makes the player go into spectator mode when dead or respawn if he has respawn tickets
FW_KilledEh = player addEventHandler ["Killed", {"" spawn FNC_SpectateCheck;}];
FW_RespawnEh = player addEventHandler ["Respawn", {"" call FNC_SpectatePrep;}];
FW_RespawnEh = player addEventHandler ["Respawn", {_this call FNC_SpectatePrep;}];

//Various settings
player addRating 100000; //Makes sure ai doesnt turn hostile when teamkilling
Expand Down
2 changes: 1 addition & 1 deletion core/menu.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The Olsen Framework is a simple framework designed for ArmA 3. It supports modul
Find out more about the framework on GitHub.<br/>
github.com/dklollol/Olsen-Framework-Arma-3<br/>
<br/>
Current Version: 3.0.6
Current Version: 3.1.0
";

player createDiaryRecord ["FW_Menu", ["Framework Info", _info]];
2 changes: 1 addition & 1 deletion core/preInitFunctions.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FW_DebugMessages = [];

FNC_UntrackUnit = {
FNC_NotTrackUnit = {

private ["_unit"];

Expand Down
11 changes: 0 additions & 11 deletions customization/missionSettings.hpp

This file was deleted.

3 changes: 1 addition & 2 deletions description.ext
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#define description

#include "core\description.hpp" //DO NOT REMOVE
#include "customization\missionSettings.hpp" //DO NOT REMOVE
#include "modules\modules.sqf" //DO NOT REMOVE

#undef description
Expand Down Expand Up @@ -32,4 +31,4 @@ class Params {
#include "core\description.hpp" //DO NOT REMOVE
#include "modules\modules.sqf" //DO NOT REMOVE

};
};
Loading

0 comments on commit 6d7a730

Please sign in to comment.