Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
Ewgen

Подскажите где приготовление пищи

3 answers to this question

Recommended Posts

  • 0

scripts\4_World\Classes\Cooking Cooking.c

scripts\4_World\Classes\FoodStage FoodStage.c

scripts\4_World\Classes\UserActionsComponent\ActionComponents CAContinuousTimeCooking.c

Может эти?

 

Share this post


Link to post
Share on other sites





  • 0
5 часов назад, paranoyk сказал:

scripts\4_World\Classes\Cooking Cooking.c

scripts\4_World\Classes\FoodStage FoodStage.c

scripts\4_World\Classes\UserActionsComponent\ActionComponents CAContinuousTimeCooking.c

Может эти?

 

 

Да оно, затупил  в поиске ))

 

функцию смены жидкости не подскажете cooking_equipment.GetLIQUID(VODKA)

чтоб воду поменять на водку

 

нашел 

cooking_equipment.SetLiquidType(LIQUID_VODKA)

Edited by Ewgen (see edit history)

Share this post


Link to post
Share on other sites
  • 0

Но все равно делаю что то не так

        int apple_count = 0;
        if ( bottle_base )
        {
            
            //handle water boiling
            if ( cooking_equipment_temp >= LIQUID_BOILING_POINT )
            {
                //remove agents
                cooking_equipment.RemoveAllAgents();
                
                if ( cooking_equipment.GetQuantity() > 0 )
                {
                    is_water_boiling = true;
                    
                for( int y = 0; y < cooking_equipment.GetInventory().AttachmentCount(); y++ )
                    {
                    EntityAI attachment = cooking_equipment.GetInventory().GetAttachmentFromIndex( y );
                    if( attachment )
                        {
                        //Возможно, полученный результат нужно перевести в ItemBase и уже использовать эту переменную ниже
                        //ItemBase i_attachment = ItemBase.Cast( attachment );

                            if (attachment.IsKindOf("Apple"))
                            apple_count++;
                            }
                    }
                if (apple_count == 3)
                {    
                    cooking_equipment.AddQuantity( -2000 );
                    cooking_equipment.SetLiquidType(LIQUID_VODKA)
                    cooking_equipment.AddQuantity( -1000 );
                };            
            //handle audio visuals
            bottle_base.RefreshAudioVisualsOnClient( cooking_method, is_done, is_empty, is_burned );
            }
        }
    }    

 

Share this post


Link to post
Share on other sites

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

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.