Base No Radio

This commit is contained in:
PabstMirror 2015-01-13 21:04:25 -06:00
parent 2df8f4f1fb
commit bcd4a72013
8 changed files with 42 additions and 21 deletions

View File

@ -1,20 +0,0 @@
class CfgPatches {
class AGM_NoRadio {
units[] = {};
weapons[] = {};
requiredVersion = 0.60;
requiredAddons[] = {AGM_Core};
version = "0.95";
versionStr = "0.95";
versionAr[] = {0,95,0};
author[] = {"commy2"};
authorUrl = "https://github.com/commy2/";
};
};
class Extended_PostInit_EventHandlers {
class AGM_NoRadio {
clientInit = "call compile preprocessFileLineNumbers '\AGM_NoRadio\clientInit.sqf'";
serverInit = "call compile preprocessFileLineNumbers '\AGM_NoRadio\serverInit.sqf'";
};
};

View File

@ -1,3 +1,2 @@
#include "script_component.hpp" #include "script_component.hpp"
NO_DEDICATED;

View File

@ -0,0 +1 @@
z\ace\addons\noradio

View File

@ -0,0 +1,6 @@
class Extended_PostInit_EventHandlers {
class ADDON {
clientInit = "call compile preprocessFileLineNumbers '\AGM_NoRadio\clientInit.sqf'";
serverInit = "call compile preprocessFileLineNumbers '\AGM_NoRadio\serverInit.sqf'";
};
};

View File

@ -1,5 +1,7 @@
// by commy2 // by commy2
#include "script_component.hpp"
0 spawn { 0 spawn {
waitUntil {!isNull AGM_player}; waitUntil {!isNull AGM_player};

View File

@ -1,5 +1,7 @@
// by commy2 // by commy2
#include "script_component.hpp"
addMissionEventHandler ["HandleDisconnect", { addMissionEventHandler ["HandleDisconnect", {
if !((_this select 0) getVariable ["AGM_isUnconscious", false]) then { if !((_this select 0) getVariable ["AGM_isUnconscious", false]) then {
_this call AGM_Core_fnc_unmuteUnit; _this call AGM_Core_fnc_unmuteUnit;

17
addons/noradio/config.cpp Normal file
View File

@ -0,0 +1,17 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {AGM_Core};
version = "0.95";
versionStr = "0.95";
versionAr[] = {0,95,0};
author[] = {"commy2"};
authorUrl = "https://github.com/commy2/";
};
};
#include "CfgEventhandlers.hpp"

View File

@ -0,0 +1,14 @@
#define COMPONENT noradio
#include "\z\ace\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL
#ifdef DEBUG_ENABLED_COMMON
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_ENABLED_COMMON
#define DEBUG_SETTINGS DEBUG_ENABLED_COMMON
#endif
#include "\z\ace\addons\main\script_macros.hpp"