Fix duplicate action check with vanilla objects

+ typo fix
This commit is contained in:
icomrade
2016-07-27 11:08:50 -04:00
parent 49222ac415
commit bd91044e7b
12 changed files with 16 additions and 16 deletions

View File

@@ -14,7 +14,7 @@ class TrapBear : CA_Magazine
class Build
{
text = $STR_ACTION_BUILD;
script = "spawn player_build; r_action_count = r_action_count + 1;";
script = "spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
require[] = {"ItemToolbox"};
consume[] = {"TrapBear"};
create = "BearTrap_DZ";

View File

@@ -14,7 +14,7 @@ class ItemCamoNet : CA_Magazine
class Build
{
text = $STR_BUILD_CAMONET;
script = "spawn player_build; r_action_count = r_action_count + 1;";
script = "spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
require[] = {"ItemToolbox"};
consume[] = {"ItemCamoNet"};
create = "CamoNet_DZ";
@@ -34,7 +34,7 @@ class ItemCamoNet : CA_Magazine
class Build
{
text = $STR_BUILD_CAMONET;
script = "; ['ItemCamoNetGrey','Build'] spawn player_build; r_action_count = r_action_count + 1;";
script = "; ['ItemCamoNetGrey','Build'] spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
require[] = {"ItemToolbox"};
consume[] = {"ItemCamoNetGrey"};
create = "CamoNet_DZ";

View File

@@ -15,7 +15,7 @@ class ItemGenerator : CA_Magazine
class Build
{
text = $STR_ACTION_BUILD;
script = "spawn player_build; r_action_count = r_action_count + 1;";
script = "spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
require[] = {"ItemToolbox"};
consume[] = {"ItemGenerator"};
create = "Generator_DZ";

View File

@@ -14,7 +14,7 @@ class ItemSandbag : CA_Magazine
class Build
{
text = $STR_ACTION_BUILD;
script = "spawn player_build; r_action_count = r_action_count + 1;";
script = "spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
require[] = {"ItemEtool"};
consume[] = {"ItemSandbag"};
create = "Sandbag1_DZ";
@@ -24,7 +24,7 @@ class ItemSandbag : CA_Magazine
class Build2
{
text = $STR_CREATE_STASH;
script = "; [_id,'Build2'] spawn player_build; r_action_count = r_action_count + 1;";
script = "; [_id,'Build2'] spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
require[] = {"ItemEtool"};
consume[] = {"ItemSandbag"};
create = "StashSmall";

View File

@@ -14,7 +14,7 @@ class ItemTankTrap : CA_Magazine
class Build
{
text = $STR_ACTION_BUILD;
script = "spawn player_build; r_action_count = r_action_count + 1;";
script = "spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
require[] = {"ItemToolbox"};
consume[] = {"ItemTankTrap"};
create = "Hedgehog_DZ";

View File

@@ -14,7 +14,7 @@ class ItemTent : CA_Magazine
class Build
{
text = $STR_PITCH_TENT;
script = "spawn player_build; r_action_count = r_action_count + 1;";
script = "spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
require[] = {};
consume[] = {"ItemTent"};
create = "TentStorage";
@@ -56,7 +56,7 @@ class ItemDomeTent : CA_Magazine
class Build
{
text = $STR_PITCH_DOME_TENT;
script = "spawn player_build; r_action_count = r_action_count + 1;";
script = "spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
require[] = {};
consume[] = {"ItemDomeTent"};
create = "DomeTentStorage";
@@ -92,7 +92,7 @@ class ItemDesertTent : CA_Magazine
class Build
{
text = $STR_PITCH_DESERT_TENT;
script = "spawn player_build; r_action_count = r_action_count + 1;";
script = "spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
require[] = {};
consume[] = {"ItemDesertTent"};
create = "DesertTentStorage";

View File

@@ -14,7 +14,7 @@ class ItemTrapTripwireCans : CA_Magazine
class Build
{
text = $STR_ACTION_BUILD;
script = "spawn player_build; r_action_count = r_action_count + 1;";
script = "spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
require[] = {"ItemToolbox"};
consume[] = {"ItemTrapTripwireCans"};
create = "Trap_Cans";

View File

@@ -14,7 +14,7 @@ class ItemWire : CA_Magazine
class Build
{
text = $STR_ACTION_BUILD;
script = "spawn player_build; r_action_count = r_action_count + 1;";
script = "spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
require[] = {"ItemToolbox"};
consume[] = {"ItemWire"};
create = "Fort_RazorWire"; // 1.8.7 uses Wire_cat1

View File

@@ -12,7 +12,7 @@ class ItemWorkBench : CA_Magazine
class ItemActions {
class Build {
text = $STR_BLD_build_ItemWorkBench;//"place WorkBench"
script = "spawn player_build; r_action_count = r_action_count + 1;";
script = "spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
require[] = {};
consume[] = {"ItemWorkBench"};
create = "WorkBench";

View File

@@ -15,7 +15,7 @@ class ItemEtool : ItemCore
class Build
{
text = "Build Sandbag Fence";
script = "spawn player_build; r_action_count = r_action_count + 1;";
script = "spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
require[] = {"ItemEtool"};
consume[] = {"ItemSandbag"};
create = "Sandbag1_DZ";

View File

@@ -16,7 +16,7 @@ class ItemShovel : ItemCore
class Build
{
text = "Build Sandbag Fence";
script = "spawn player_build; r_action_count = r_action_count + 1;";
script = "spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
require[] = {"ItemShovel"};
consume[] = {"ItemSandbag"};
create = "Sandbag1_DZ";

View File

@@ -50,7 +50,7 @@ if (_hasToolbox) then {
if (_damage < 1) then {
_BreakableParts = ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitGlass5","HitGlass6","HitLGlass","HitRGlass","HitEngine","HitFuel","HitHRotor"];
if (_hitpoint in _BreakableParts) then {
if ((random 1) < (_damage * 0.9)) then { //max 90% change to break
if ((random 1) < (_damage * 0.9)) then { //max 90% chance to break
_isOK = true;
_brokenPart = true;
} else {