mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
1b12d37284
Hacking the BI respawn framework to support a spectator setting was intrusive and limiting. Instead of using a setting, I've opted to introduce a new respawn template that can be used within BI's respawn framework. The benefits of this approach are: - Compatibility isn't a concern, that responsibility is shifted onto mission designers. - Mission designers can use the functionality of the BI framework alongside the spectator system (combining templates, using different templates for different sides, etc.). - If a custom respawn framework is used, then this doesn't change anything. Custom frameworks are still fully supported via the public functions provided. - Remains simple to set up, just requires a description.ext edit
26 lines
623 B
C++
26 lines
623 B
C++
#include "script_component.hpp"
|
|
|
|
class CfgPatches {
|
|
class ADDON {
|
|
units[] = {};
|
|
weapons[] = {};
|
|
requiredVersion = REQUIRED_VERSION;
|
|
requiredAddons[] = {"ace_common"};
|
|
author[] = {"F3 Project","Head","SilentSpike","voiper"};
|
|
authorUrl = "https://github.com/acemod";
|
|
VERSION_CONFIG;
|
|
};
|
|
};
|
|
|
|
#include "ACE_Settings.hpp"
|
|
#include "CfgEventHandlers.hpp"
|
|
#include "CfgVehicles.hpp"
|
|
#include "ui\interface.hpp"
|
|
|
|
class CfgRespawnTemplates {
|
|
class ADDON {
|
|
onPlayerKilled = QFUNC(respawnTemplate);
|
|
onPlayerRespawn = QFUNC(respawnTemplate);
|
|
};
|
|
};
|