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
Sign in to follow this  
blizzard39065

Как заспавнить игрока со статусом промокший,мокрый?

Как заспавнить игрока со статусом промокший,мокрый? Пробовал спавнить его в воде, игра автоматом выкидывает на ближайший берег от указаной координаты из воды.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

init.c

Там где выдаются вещи

например itemBs.AddWet(itemBs.GetWetMax());

Share this post


Link to post
Share on other sites



  • 0
11.12.2022 в 06:39, Equadro сказал:

init.c

Там где выдаются вещи

например itemBs.AddWet(itemBs.GetWetMax());

Можно поподробнее? Я пробовал добавлять это, но данная конфигурация не дала желаемого результата.

Объясните пожалуйста в конкретном примере, например со стандартным спавном "штанов"

 

init.c

 

// pants
        itemClothing = player.FindAttachmentBySlotName( "Legs" );
        if ( itemClothing )
        {
            SetRandomHealth( itemClothing );

            itemEnt = itemClothing.GetInventory().CreateInInventory( "Heatpack" );
            SetRandomHealth( itemEnt );
            
            itemEnt = itemClothing.GetInventory().CreateInInventory("Hatchet");
            if ( itemEnt )
            {
            SetRandomHealth( itemEnt );
                itemBs.SetQuantity( 4 );
                itemBs.SetCleanness( 1 );
            }

            int throwDice = Math.RandomInt( 0, 2 );
            if ( throwDice == 0 )
                itemEnt = itemClothing.GetInventory().CreateInInventory( "dzn_tool_watch" );
            else
                itemEnt = itemClothing.GetInventory().CreateInInventory( "dzn_tool_watch2" );
        }

Share this post


Link to post
Share on other sites
  • 0

Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.

Думаю пример будет понятен?

TStringArray tops = {"Sweater_Blue","Sweater_Gray","Sweater_Green","Sweater_Red","TelnyashkaShirt"};
TStringArray pants = {"Jeans_Black","Jeans_BlueDark","Jeans_Blue","Jeans_Brown","Jeans_Green","Jeans_Grey"};
TStringArray shoes = {"AthleticShoes_Black","AthleticShoes_Blue","AthleticShoes_Brown","AthleticShoes_Green","AthleticShoes_Grey"};

EntityAI item1 = player.GetInventory().CreateInInventory(tops.GetRandomElement());
item1.SetHealth("","",25);
EntityAI item2 = player.GetInventory().CreateInInventory(pants.GetRandomElement());
item2.SetHealth("","",25);
EntityAI item3 = player.GetInventory().CreateInInventory(shoes.GetRandomElement());
	
item1.AddWet(item1.GetWetMax());
item2.AddWet(item2.GetWetMax());
item3.AddWet(item3.GetWetMax());

 

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
Sign in to follow this  

×
×
  • 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.