Illusiveman14

Earthquake vs. Base

12 posts in this topic

Will the earthquakes destroy bases? If so, is there anything that can be done besides turning off the earthquakes?

Share this post


Link to post
Share on other sites

No, only things that destroy bases are the appropriate charges.   Unless you build in a map spawned building, then you are fooked. 

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

We had the earthquakes destroy many, many floor panels at our base, and we finally had to turn the earthquakes off.

Share this post


Link to post
Share on other sites

you can tone the earthquake down in  _magnitude =

Spoiler

/**
 * ExileServer_system_event_earthQuake_start
 *
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_i","_magnitude","_maxPlayers","_n","_player","_buildings","_building"];
for "_i" from 1 to 4 do
{
    format ["Earth Quake - Rumble %1...", _i] call ExileServer_util_log;
    _magnitude = 9 - _i;
    ["playEarthQuakeEffectRequest", [_magnitude]] call ExileServer_system_network_send_broadcast;
    uiSleep 4;
    _maxPlayers = (random (count allPlayers)) max 1;
    for "_n" from 1 to _maxPlayers do
    {
        _player = selectRandom allPlayers;
        if !(isNull _player) then 
        {
            _buildings = _player nearObjects ["Building", 300];
            if !(_buildings isEqualTo []) then 
            {
                {
                    _building = _x;
                    if ((random 100) < ([6, 3, 2, 1] select (_i - 1))) then 
                    {
                        if !((getPos _building) call ExileClient_util_world_isInTraderZone) then
                        {
                            _building setDamage 1;
                        };
                    };
                }
                forEach _buildings;
            };
        };
    };
    if (_i < 4) then
    {
        uiSleep 25 + (random (_i * 30));
    };
};

 

1 person likes this

Share this post


Link to post
Share on other sites

I will have to try this out thank you for the information. Next question is what is a acceptable number for magnitude that won't take down built buildings?

Share this post


Link to post
Share on other sites

Change:   _buildings = _player nearObjects ["Building", 300]; 
To:  _buildings = _player nearObjects ["House", 300];

Share this post


Link to post
Share on other sites

Just checked it didn't destroy much buildings but did destroy one of the two story military buildings. Is that classified as a house or was it a glitch?

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.