Advertisement
Guest User

Untitled

a guest
Jul 11th, 2010
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.86 KB | None | 0 0
  1. //Single-shot support demo - modelled after CE6_EyeOfTheHurricane.Zargabad
  2. scriptName "init.sqf: 1";
  3. if (isnull player) exitwith {};
  4.  
  5. if (isserver) then //will be executed on server only
  6. {
  7.     //Enable all supports, set to false what you don't need
  8.     BIS_SSM_AmmoDrop_AVAILABLE_WEST =   TRUE; publicVariable "BIS_SSM_AmmoDrop_AVAILABLE_WEST";
  9.     BIS_SSM_UnitsDrop_AVAILABLE_WEST =  TRUE; publicVariable "BIS_SSM_UnitsDrop_AVAILABLE_WEST";
  10.     BIS_SSM_Airstrike_AVAILABLE_WEST =  TRUE; publicVariable "BIS_SSM_Airstrike_AVAILABLE_WEST";
  11.     BIS_SSM_Mortar_AVAILABLE_WEST =     TRUE; publicVariable "BIS_SSM_Mortar_AVAILABLE_WEST";
  12.     BIS_SSM_Artillery_AVAILABLE_WEST =  TRUE; publicVariable "BIS_SSM_Artillery_AVAILABLE_WEST";
  13.     BIS_SSM_CeaseFire_AVAILABLE_WEST =  TRUE; publicVariable "BIS_SSM_CeaseFire_AVAILABLE_WEST";
  14.     //if you need supports for EAST or GUERRILLA, add them here
  15.  
  16.     //EXPRESSION is run when a support is called. If we put a disable call in expression,
  17.     //it has the effect of limiting the support to one use.
  18.     //To avoid duplicating code we can use the same expression for all of the supports.
  19.     //Support type is passed by SSM to the expression as a parameter, which we can extract with select
  20.     BIS_SSM_expression = {
  21.         _type = _this select 1;
  22.         missionnamespace setvariable [format ["BIS_SSM_%1_ENABLED_%2",_type,side player],false];
  23.         _sqf = [] call BIS_SSM_fnc_updateMenu;
  24.     };
  25.     //use the same expression for every support
  26.     BIS_SSM_AmmoDrop_EXPRESSION = BIS_SSM_expression;
  27.     BIS_SSM_UnitsDrop_EXPRESSION = BIS_SSM_expression;
  28.     BIS_SSM_Airstrike_EXPRESSION = BIS_SSM_expression;
  29.     BIS_SSM_Mortar_EXPRESSION = BIS_SSM_expression;
  30.     BIS_SSM_Artillery_EXPRESSION = BIS_SSM_expression;
  31.     //if you have supports for EAST or GUERRILLA, add their expression settings here
  32.     //BIS_SSM_expression can be used for them as well
  33.  
  34.     //update support menu
  35.     [] call BIS_SSM_fnc_updateMenu;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement