Skip to content

Commit

Permalink
Afghanmode (#255)
Browse files Browse the repository at this point in the history
* inital afghanmode commit

* second afghanmode commit

* fickediefackfack

* push

* add deko and decals

* vehicles keys and tfar radios
  • Loading branch information
nomisum authored Dec 8, 2019
1 parent 10c20f1 commit 943541c
Show file tree
Hide file tree
Showing 11 changed files with 679 additions and 14 deletions.
1 change: 1 addition & 0 deletions BC_buyables/cfgFunctions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class BC_buyables {
class clientInit { preInit = 1; };
class configureBluforStartVehicle;
class configureOpforStartVehicle;
class mudschaVehicleDeko;
class serverInit { postInit = 1; };
};
};
4 changes: 3 additions & 1 deletion BC_buyables/factions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
#include "factions\bwGM.hpp"
#include "factions\usa.hpp"
#include "factions\bwTank.hpp"
#include "factions\sovjetGM.hpp"

/// OPFOR
#include "factions\nvaGM.hpp"
#include "factions\russia.hpp"
#include "factions\russiaTank.hpp"
#include "factions\russiaTank.hpp"
#include "factions\mudscha.hpp"
87 changes: 87 additions & 0 deletions BC_buyables/factions/mudscha.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
//a different set of buyables
class mudscha {
side = "Opfor";
loadout = "mudscha";
mode = "conquer";

// needs to be in every faction
class StartVehicle {
deployAction = "";
retractAction = "";
condition = "false";
driverGps = "false";
disableTIEquipment = "true";
terminalPositionOffset = "[0.3,-2.85,0.7]";
terminalVectorDirAndUp = "[[0,1,0.3],[0,0,0.7]]";


class gm_gc_army_ural44202_ols {
condition = "true";
vehicleInit = "[[],[]]";
code = "[(_this select 0)] call BC_buyables_fnc_configureOpforStartVehicle; (_this select 0) setObjectTextureGlobal [0, '#(rgb,8,8,3)color(0.2,0.1,0.1,1)']; [_this select 0,'',5,0] call gm_core_vehicles_fnc_vehicleMarkingsUpdateAttributes; [_this select 0] call BC_buyables_fnc_mudschaVehicleDeko;";
};
};

class Logistics {
displayName = "Logistics";
kindOf = "Vehicles";
maxBuyCount = 9;
minPlayerCount = 0;

class RDS_Lada_Civ_03 {
displayName = "Lada";
description = "The workhorse of your army.";
price = 10;
stock = 7;
spawnEmpty = 1;
wheelCargo = 2;
condition = "true";
vehicleInit = "[['gm_gc_oli',1], ['cover_hide_unhide',0,'winch_unhide',0,'roofRack_unhide',0,'camonet_01_unhide',0,'coldWeatherKit_unhide',0,'fuelcan_1_1_unhide',0,'fuelcan_1_2_unhide',0,'lightGuard_unhide',1,'toolbox_unhide',1,'tools_unhide',1]]";
};

class RDS_JAWA353_Civ_01 {
displayName = "Motorcycle";
description = "Faster and smaller footprint but cant transport as many.";
price = 10;
stock = 7;
spawnEmpty = 1;
wheelCargo = 2;
condition = "true";
vehicleInit = "[['gm_gc_oli',1], ['sirenLights_01_unhide',0]]";
};
};


class Recon {
displayName = "Recon";
kindOf = "Vehicles";
maxBuyCount = 1;
minPlayerCount = 0;

class LOP_ISTS_OPF_T34 {
displayName = "T-34";
description = "Armored but fucking bad tank.";
price = 10;
stock = 3;
wheelCargo = 2;
spawnEmpty = 1;
condition = "true";
};

};

class Special {
displayName = "Special";
kindOf = "Special";
maxBuyCount = 1;

class Land_BagFence_Round_F {
kindOf = "Special";
displayName = "Defense Pack";
description = "Sandbag-Fortificatons and 2 Axes for cutting vegetation in Radio Truck.";
stock = 1;
code = "diag_log str (_this); (_this select 1) addItemCargoGlobal ['grad_axe', 2]; [(_this select 1), 'land_gm_tanktrap_01', 9] call grad_fortifications_fnc_addFort; [(_this select 1), 'land_gm_sandbags_01_low_01', 9] call grad_fortifications_fnc_addFort; [(_this select 1), 'land_gm_sandbags_01_round_01', 3] call grad_fortifications_fnc_addFort;";
spawnEmpty = 1;
};
};
};
107 changes: 107 additions & 0 deletions BC_buyables/factions/sovjetGM.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
//a different set of buyables
class sovjetGM {
side = "Blufor";
loadout = "sovjetGM";
mode = "conquer";

// needs to be in every faction
class StartVehicle {
deployAction = "";
retractAction = "";
condition = "false";
driverGps = "false";
crewHelmet = "gm_gc_army_headgear_crewhat_80_blk";
disableTIEquipment = "true";
terminalPositionOffset = "[0.3,-2.85,0.7]";
terminalVectorDirAndUp = "[[0,1,0.3],[0,0,0.7]]";


class gm_gc_army_btr60pa {
condition = "true";
code = "[(_this select 0)] call BC_buyables_fnc_configureBluforStartVehicle; (_this select 0) setObjectTextureGlobal [0, '#(rgb,8,8,3)color(0.25,0.2,0.1,1)']; (_this select 0) setObjectTextureGlobal [1, '#(rgb,8,8,3)color(0.25,0.2,0.1,1)']; [_this select 0,'gm_insignia_ur_star_01',5,0] call gm_core_vehicles_fnc_vehicleMarkingsUpdateAttributes;";
crewHelmet = "gm_gc_army_headgear_crewhat_80_blk";
};
};

class Logistics {
displayName = "Logistics";
kindOf = "Vehicles";
maxBuyCount = 9;
minPlayerCount = 0;

class gm_gc_army_ural4320_cargo {
displayName = "Ural";
description = "The workhorse of your army.";
price = 10;
stock = 7;
spawnEmpty = 1;
wheelCargo = 2;
condition = "true";
code = "(_this select 0) setObjectTextureGlobal [0, '#(rgb,8,8,3)color(0.25,0.2,0.1,1)']; (_this select 0) setObjectTextureGlobal [1, '#(rgb,8,8,3)color(0.25,0.2,0.1,1)']; [_this select 0,'gm_insignia_ur_star_01',5,0] call gm_core_vehicles_fnc_vehicleMarkingsUpdateAttributes;";

};

class gm_ge_army_k125 {
displayName = "Motorcycle";
description = "The workhorse of your army.";
price = 10;
stock = 7;
spawnEmpty = 1;
wheelCargo = 2;
condition = "true";
code = "(_this select 0) setObjectTextureGlobal [0, '#(rgb,8,8,3)color(0.25,0.2,0.1,1)']; (_this select 0) setObjectTextureGlobal [1, '#(rgb,8,8,3)color(0.25,0.2,0.1,1)']; [_this select 0,'gm_insignia_ur_star_01',5,0] call gm_core_vehicles_fnc_vehicleMarkingsUpdateAttributes;";

};
};


class Recon {
displayName = "Recon";
kindOf = "Vehicles";
maxBuyCount = 1;
minPlayerCount = 0;

class gm_gc_army_brdm2 {
displayName = "BRDM-2";
description = "Armed armored transporter.";
price = 10;
stock = 3;
wheelCargo = 2;
spawnEmpty = 1;
condition = "true";
crewHelmet = "gm_gc_army_headgear_crewhat_80_blk";
code = "(_this select 0) setObjectTextureGlobal [0, '#(rgb,8,8,3)color(0.25,0.2,0.1,1)']; (_this select 0) setObjectTextureGlobal [1, '#(rgb,8,8,3)color(0.25,0.2,0.1,1)']; [_this select 0,'gm_insignia_ur_star_01',5,0] call gm_core_vehicles_fnc_vehicleMarkingsUpdateAttributes;";

};

class gm_gc_army_btr60pb {
displayName = "BTR-60";
description = "Armed armored transporter.";
price = 10;
stock = 3;
wheelCargo = 2;
spawnEmpty = 1;
condition = "true";
vehicleInit = "";
crewHelmet = "gm_gc_army_headgear_crewhat_80_blk";
code = "(_this select 0) setObjectTextureGlobal [0, '#(rgb,8,8,3)color(0.25,0.2,0.1,1)']; (_this select 0) setObjectTextureGlobal [1, '#(rgb,8,8,3)color(0.25,0.2,0.1,1)']; [_this select 0,'gm_insignia_ur_star_01',5,0] call gm_core_vehicles_fnc_vehicleMarkingsUpdateAttributes;";

};

};

class Special {
displayName = "Special";
kindOf = "Special";
maxBuyCount = 1;

class Land_BagFence_Round_F {
kindOf = "Special";
displayName = "Defense Pack";
description = "Sandbag-Fortificatons and 2 Axes for cutting vegetation in Radio Truck.";
stock = 1;
code = "diag_log str (_this); (_this select 1) addItemCargoGlobal ['grad_axe', 2]; [(_this select 1), 'land_gm_tanktrap_01', 9] call grad_fortifications_fnc_addFort; [(_this select 1), 'land_gm_sandbags_01_low_01', 9] call grad_fortifications_fnc_addFort; [(_this select 1), 'land_gm_sandbags_01_round_01', 3] call grad_fortifications_fnc_addFort;";
spawnEmpty = 1;
};
};
};
3 changes: 3 additions & 0 deletions BC_buyables/functions/fn_clientInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ if (!hasInterface) exitWith {};
diag_log format ["_factionsOpfor %1", _factionsOpfor];
diag_log format ["_buyablesOpfor %1", _buyablesOpfor];

diag_log format ["_factionsBlufor %1", _factionsBlufor];
diag_log format ["_buyablesBlufor %1", _buyablesBlufor];

if (_side == west) then {
[_startVehicle,
_buyablesBlufor,
Expand Down
14 changes: 14 additions & 0 deletions BC_buyables/functions/fn_mudschaVehicleDeko.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
params ["_vehicle"];

{
private _type = _x select 0;
private _offset = _x select 1;
private _vectorDirAndUp = _x select 2;
private _dummy = _type createVehicle [0,0,0];

_dummy attachTo [_vehicle, _offset];
_dummy setVectorDirAndUp _vectorDirAndUp;
} forEach [
["OmniDirectionalAntenna_01_sand_F",[-0.0223389,0.429688,2.95189],[[0,1,0],[0,0,1]]],
["Land_V3S_wreck_F",[-0.501587,-1.62744,-0.1276],[[0,1,0],[0,0,1]]]
];
14 changes: 7 additions & 7 deletions BC_buyables/params.hpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
class BUYABLES_BLUFOR
{
title = "Blufor";
values[] = {0, 1, 2};
texts[] = {"bwGM", "USA", "BWTanks"};
default = 1;
values[] = {0, 1, 2, 3};
texts[] = {"bwGM", "USA", "BW Tanks", "sovjetGM"};
default = 3;
};

class BUYABLES_OPFOR
{
title = "Opfor";
values[] = {0, 1, 2};
texts[] = {"nvaGM", "Russia", "RussiaTanks"};
default = 1;
};
values[] = {0, 1, 2, 3};
texts[] = {"nvaGM", "Russia", "Russia Tanks", "mudscha"};
default = 3;
};
5 changes: 4 additions & 1 deletion BC_loadouts/factions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
#include "factions\bwGM.hpp"
#include "factions\nvaGM.hpp"

#include "factions\bwFle.hpp"
#include "factions\bwFle.hpp"

#include "factions\mudscha.hpp"
#include "factions\sovjetGM.hpp"
Loading

0 comments on commit 943541c

Please sign in to comment.