mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
6cdb9633d4
new compiler with optional v2 format more like BI's added expanded startup init logic moved mirror setup to own function inside epoch core moved server init code to main gamemode init logic.
40 lines
768 B
Plaintext
40 lines
768 B
Plaintext
/*
|
|
Author: Aaron Clark - EpochMod.com
|
|
|
|
Contributors:
|
|
|
|
Description:
|
|
Initalize Player
|
|
|
|
Licence:
|
|
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
|
|
|
|
Github:
|
|
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/init/fn_postinit.sqf
|
|
*/
|
|
if (isDedicated) then {
|
|
// dedicated server
|
|
call compile preprocessFileLineNumbers "\epoch_server\init\server_init.sqf";
|
|
} else {
|
|
if (hasInterface) then {
|
|
|
|
if (isMultiplayer) then {
|
|
// start multiplayer game
|
|
call compile preprocessFileLineNumbers "epoch_code\init\client_init.sqf";
|
|
};
|
|
|
|
if (isServer) then {
|
|
// listen server host
|
|
|
|
} else {
|
|
// all players
|
|
|
|
|
|
};
|
|
} else {
|
|
// Headless Clients
|
|
|
|
};
|
|
};
|
|
true
|