Skip to content

Commit

Permalink
Added leaflets and poster for public relations (#250)
Browse files Browse the repository at this point in the history
* Added leaflets system

* Added enlist posters and leaflet item

* Fixed BIS tab

* Fixed copy paste tab
  • Loading branch information
AndreasBrostrom authored Jul 21, 2024
1 parent 430dfff commit 2bd910a
Show file tree
Hide file tree
Showing 17 changed files with 124 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/leaflets/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
z\cav\addons\leaflets
8 changes: 8 additions & 0 deletions addons/leaflets/CfgLeaflets.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class CfgLeaflets {
scriptCav_Enlist = QPATHTOF(scripts\Cav_Enlist.sqf);
class Cav_Enlist {
text = "7TH CAVALRY GAMING<br /><br />WANTS YOU!<br />Enlist today<br />7cav.us<br /><br />More then just a clan, it's a way of life";
author = ECSTRING(main,cavmodteam);
texture = QPATHTOEF(textures,data\posters\cav_enlist_today_ca.paa);
};
};
13 changes: 13 additions & 0 deletions addons/leaflets/CfgMagazines.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class CfgMagazines {
class 1Rnd_Leaflets_West_F;
class Cav_1Rnd_Leaflets_Enlist_F: 1Rnd_Leaflets_West_F {
author = ECSTRING(main,cavmodteam);
leafletClass = "Cav_Enlist";
};

class Pylon_1Rnd_Leaflets_West_F;
class Cav_Pylon_1Rnd_Leaflets_Enlist_F: Pylon_1Rnd_Leaflets_West_F {
displayName = CSTRING(Cav_Pylon_1Rnd_Leaflets_Enlist_F);
leafletClass = "Cav_Enlist";
};
};
7 changes: 7 additions & 0 deletions addons/leaflets/CfgWeapons.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

class CfgWeapons {
class Bomb_04_Plane_CAS_01_F;
class Bomb_Leaflets: Bomb_04_Plane_CAS_01_F {
magazines[] += {"cav_1Rnd_Leaflets_Enlist_F", "cav_Pylon_1Rnd_Leaflets_Enlist_F"};
};
};
23 changes: 23 additions & 0 deletions addons/leaflets/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {
"cav_main",
"cav_common",
"cav_textures"
};
author = ECSTRING(Main,ModTeam);
authors[] = {"Brostrom.A (Evul)"};
url = ECSTRING(Main,Url);
VERSION_CONFIG;
};
};

#include "CfgLeaflets.hpp"
#include "CfgMagazines.hpp"
#include "CfgWeapons.hpp"
6 changes: 6 additions & 0 deletions addons/leaflets/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#define COMPONENT leaflets
#define COMPONENT_BEAUTIFIED Leaflets

#include "\z\cav\addons\main\script_mod.hpp"
#include "\z\cav\addons\main\script_macros.hpp"
#include "script_macros.hpp"
Empty file.
3 changes: 3 additions & 0 deletions addons/leaflets/scripts/Cav_Leaflet_Enlist.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if ((_this select 2) < 1) then {
["init",[_this,"Cav_Enlist"]] remoteExec ["bis_fnc_initLeaflet"];
};
7 changes: 7 additions & 0 deletions addons/leaflets/stringtable.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project name="Cav">
<Package name="Leaflets">
<Key ID="STR_Cav_Leaflets_Cav_Pylon_1Rnd_Leaflets_Enlist_F">
<English>Leaflets (Cav - Enlist Today)</English>
</Key>
</Package>
</Project>
1 change: 1 addition & 0 deletions addons/objects/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
z\cav\addons\objects
16 changes: 16 additions & 0 deletions addons/objects/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class CfgVehicles {
class Land_Leaflet_03_F;
class Cav_Poster_Small_Enlist_Today_F: Land_Leaflet_03_F {
displayName = CSTRING(Cav_Poster_Small_Enlist_Today_F);
author = ECSTRING(main,cavmodteam);
editorPreview = QPATHTOEF(textures,data\posters\cav_enlist_today_ca.paa);
hiddenSelectionsTextures[] = {QPATHTOF(data\cav_leaflets_item_enlist_today_ca.paa)};
};
class Land_Poster_05_F;
class Cav_Poster_Big_Enlist_Today_F: Land_Poster_05_F {
displayName = CSTRING(Cav_Poster_Big_Enlist_Today_F);
author = ECSTRING(main,cavmodteam);
editorPreview = QPATHTOEF(textures,data\posters\cav_enlist_today_ca.paa);
hiddenSelectionsTextures[] = {QPATHTOF(data\cav_poster_05_item_enlist_today_ca.paa)};
};
};
24 changes: 24 additions & 0 deletions addons/objects/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {
"Cav_Poster_Small_Enlist_Today_F",
"Cav_Poster_Big_Enlist_Today_F"
};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {
"cav_main",
"cav_common",
"cav_textures"
};
author = ECSTRING(Main,ModTeam);
authors[] = {"Brostrom.A (Evul)"};
url = ECSTRING(Main,Url);
VERSION_CONFIG;
};
};

#include "CfgVehicles.hpp"
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions addons/objects/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#define COMPONENT objects
#define COMPONENT_BEAUTIFIED Objects

#include "\z\cav\addons\main\script_mod.hpp"
#include "\z\cav\addons\main\script_macros.hpp"
10 changes: 10 additions & 0 deletions addons/objects/stringtable.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project name="Cav">
<Package name="Objects">
<Key ID="STR_Cav_Objects_Cav_Poster_Small_Enlist_Today_F">
<English>Leaflet (Cav - Enlist Today)</English>
</Key>
<Key ID="STR_Cav_Objects_Cav_Poster_Big_Enlist_Today_F">
<English>Poster (Cav - Enlist Today)</English>
</Key>
</Package>
</Project>
Binary file not shown.

0 comments on commit 2bd910a

Please sign in to comment.