Jump to content

Space Cake Mod


Nox

Recommended Posts

Hello Need Some Help Plz

 

This Is my Spacecake.sqf

 

private ["_onLadder","_itemorignal","_hasdrinkitem","_hasoutput","_config","_text","_sfx","_dis","_itemtodrop","_nearByPile","_item","_display"];
 
disableserialization;
call gear_ui_init;
 
_onLadder =     (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
if (_onLadder) exitWith {cutText [(localize "str_player_21") , "PLAIN DOWN"]};
 
_itemorignal = _this;
_hasitem = ItemDrogue in magazines player;
 
_config = configFile >> "CfgMagazines" >> _itemorignal;
_text = getText (_config >> "displayName");
 
//getting type of sfx (now just drink od soda open and drink)
_sfx =  getText (_config >> "sfx");
 
player playmove "ActsPercMstpSnonWnonDnon_DancingDuoIvan";//playActionNow "PutDown";
player removeMagazine _itemorignal;
sleep 1;
playSound "rain";
sleep 1;
playSound "eat3";
sleep 5;
playSound "cough2";
playSound "scream4";
sleep 3;
playSound "panic0";
sleep 5;
playSound "panic1";
sleep 9;
playSound "scream4";
sleep 3;
playSound "scream4";
sleep 3;
playSound "scream4";
 
//add infection
if (_itemorignal == "ItemDrogue") then {
    r_player_infected = true;
player setVariable["USEC_infected",true,true];
};
 
player setVariable ["messing",[dayz_hunger,dayz_thirst],true];
 
dayz_lastDrink = time;
dayz_thirst = 0;
 
dayz_lastMeal = time;
dayz_hunger = 0;
 
if (r_player_blood / r_player_bloodTotal >= 0.2) then {
(_display displayCtrl 1300) ctrlShow true;
};

 

 

I want To add : Bleeding 100 chance but i can't find the Bleeding variable.

 

Well Actually, you can use CupCake to Deal With Mamie Nova to take "ItemDrogue" (Space Cake)

 

My Next step is To creat the Space Cake.

 

But All I Try it's a big Fail.

- I can Have My SpaceCake By without restriction.

 

I want to use my knife to cut Grass on (Building name GreenHouse)

 

Actually when i right clic on my knife i've Harvest Grass

 

If (_Near == "Greenhouse") then

Random = 50%

If (Random > 50%) Then

AddMagasin = Grass

Else Text = You don't have chance.

 

Every one can help my ?

 

Just to show my how it's work, after i'm going to make the same thing with Alcool :p

 

Thx for Everyone

Link to comment
Share on other sites

  • 5 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...