Jump to content

Recommended Posts

 

earthquakes-gf-script-version-10-1_4.png

 

GF Earthquakes Script - Mod

 

by

 

GEORGE FLOROS [GR]

 


Description:

Spawn Random Earthquakes, 10 Random type, from small to large, with Building destruction,
to spice it a little bit.You are free to do anything but i would like to give me Credits for this!
Simple and easy to use and adapt .
Have Fun !

 


Installation / Usage:

For usage instructions and information of how to use the GF Earthquake Script  , please refer to the included documentation and/or example mission.

 

 

https://community.bistudio.com/wiki/SQF_syntax
Don't try to open this with the simple notepad.

For everything that is with comment // in front or between /*
means that it is disabled , so there is no need to delete the extra lines.

You can open this ex:
with notepad++
https://notepad-plus-plus.org/

and also use the extra pluggins
(this way will be better , it will give also some certain colours to be able to detect ex. problems )
http://www.armaholic.com/page.php?id=8680

or use any other program for editing .

For the Compilation List of my GF Scripts , you can search in:

https://forums.bohemia.net/forums/topic/215850-compilation-list-of-my-gf-scripts/

 

 

Notes:

Configurable Script.
You can change the time , by changing :
// How much time to wait for the next earthquake          
sleep (600 + random 2700);    //    600 sec ( 10 minutes ) +  random 2700 ( 45 minutes )

 


Credits & Thanks:

Thanks to All script contributors
Thanks to everyone who tries to do the best for this game!
Thanks to BIS for such a great platform .
Thanks to BIS Community and BIS Community Forums .
Thanks to Armaholic Community and Forums .

 


Changelog:

v3.0
Included a mod version.
Added a distance check and blacklist zones.
Added more options.

 

v2.0
Code optimization,
added 5 more different type of earthquakes,
added some options and small additions inside the scripts ,
changed the name of all the scripts , starting now with GF .

 

v1.0

 

 

Forum topic:
- BI forums  https://forums.bistudio.com/forums/topic/212274-earthquakes_gf-script/
- Armaholic forums http://www.armaholic.com/forums.php?m=posts&q=39687&n=last#bottom

 


 

Armaholic
GF Earthquakes Script - Mod

 

On 5/14/2018 at 3:27 PM, GEORGE FLOROS GR said:
  • Like 6

Share this post


Link to post
Share on other sites

For everything that is with comment  //  in front  or between /*
means that it is disabled , so there is no need to delete the extra lines.
Don't try to open this with the simple notepad.

You can open this ex:
with notepad++
https://notepad-plus-plus.org/download/v7.5.4.html

and also use the extra pluggins
(this way will be better , it will give also some certain collours to be able to detect ex. problems )
http://www.armaholic.com/page.php?id=8680

or use any other program for editing .

Share this post


Link to post
Share on other sites

This looks cool. I like how you got dirt on the camera lens.

  • Thanks 1

Share this post


Link to post
Share on other sites
1 hour ago, AZCoder said:

I like how you got dirt on the camera lens.

 

It should be this way , since is an Earthquake !

Immersion !

 

  • Like 1

Share this post


Link to post
Share on other sites

Hello George !

I m really in love with your scripts. And now with this one. It work well with my Ravage mission :)

 

Question: Is it possible to add a delay time for like 2 or 3 second before the building start collapsing. This is because once the earthquake began, building collapse in the same time. Like I don't have time to run out of the buiilding. Just start earthquake 2sec later building collapse. Thank you

  • Thanks 1

Share this post


Link to post
Share on other sites
23 hours ago, MisterOth said:

I don't have time to run out of the buiilding. Just start earthquake 2sec later building collapse.

 

Hello there MisterOth !

 

OK , just hold on a little bit please.!

  • Thanks 1

Share this post


Link to post
Share on other sites
On 9/5/2018 at 9:52 PM, MisterOth said:

Just start earthquake 2sec later building collapse.

 

Sorry for keeping you wait.!

 

In order to do this you need just to add :

 

sleep 2;

before the destruction like :

	
_earthquake_8 = {
	//	systemchat "case 8 destroy nearObjects and wait some time before start";
	[4] call bis_fnc_earthquake;
	sleep (4 + random 4);	// Give some time to the player , to get out from a building
	{_x setDamage 1} forEach Destructive_radius;
	};	

 

  • Thanks 1

Share this post


Link to post
Share on other sites

This Script is about to update.

 

It will be Soon available in Armaholic.

 

Changelog:

v2.0
Code optimization,
added 5 more different type of earthquakes,
added some options and small additions inside the scripts ,
changed the name of all the scripts , starting now with GF .

 

Thanks !

  • Like 1

Share this post


Link to post
Share on other sites
2 hours ago, foxhound said:

Thanks

 

Thank you Foxhound for everything and the whole support !

Share this post


Link to post
Share on other sites

Hello George it's me again ^^

 

Sorry to ask this, I know it isnt from your script. But if you are familiar with Ravage mod, you may know that Ravage spawn fourniture inside building. So some times, after collapse, the fourniture stay in the air. If not possible no problem :)

 

Also is it possible to add a trigger in a place in Editor where the script will not run. For example when setting a camp base, I don't want that place to collapse because i place units and other stuff.

Thank you a lot.

  • Like 1

Share this post


Link to post
Share on other sites
3 hours ago, MisterOth said:

So some times, after collapse, the fourniture stay in the air.

 

Hello there MisterOth !

 

For the spawned furnitures is part of Ravage code , so i don't think that i can to do something to prevent the floating.

 

It is possible though , to damage everything , maybe this will destruct as well also the spawned things .

One other better idea is to delete everything in the destruction area.

 

I haven't think about creating Safe zones , it is possible but  need to check about this.

 

One fast solution for now is to disable the destruction.

 

Since you told me , i will check it and tell you.

See you !

  • Thanks 1

Share this post


Link to post
Share on other sites

This will also update soon and a Mod version will be included as well !

  • Like 2

Share this post


Link to post
Share on other sites

The script is ready and tommorow i will pack also the mod version.

 

The main change is that before , for some kind of reason BIS_fnc_destroyCity

https://community.bistudio.com/wiki/BIS_fnc_destroyCity

was creating the destroyed buildings back to new.

 

There will be also blacklistzones , in order to keep a base for example safe.

Everything now is more random and more options added.

  • Like 1

Share this post


Link to post
Share on other sites

Changelog:

 

v3.0
Included a mod version.
Added a distance check and blacklist zones.
Added more options.

  • Like 2

Share this post


Link to post
Share on other sites

Very nice, 

Will players in or near buildings receive damage when the buildings collapse? 

 

It would be cool if you have to flee the city you are currently looting to get out of the danger zone:) 

  • Thanks 1

Share this post


Link to post
Share on other sites
3 hours ago, Vandeanson said:

It would be cool if you have to flee the city you are currently looting

 

The player can get killed ,

if he is inside a building or close and in some occasions , there is some extra little time to get out ,  before the big destructive Earthquake !

It's fun and some times terrifying as well !

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×