

Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() Oil Rig Beta Access |
#include maps\_utility;
#include common_scripts\utility;
#include maps\_zombiemode_utility;
main()
{
thread shake_world();
}
shake_world()
{
while(1)
{
players = get_players();
for(i=0;i<players.size;i++)
{
Earthquake( 3, 4, players[i].origin, 700 );// NUMBER 3 IS HOW BIG THE QUAKE IS, 4 IS THE DURATION OF THE QUAKE IN SECONDS, AND 700 IS EFFECT OF THE QUAKE RADIUS
//players[i] playsound( "SOUND_NAME" );//JUST ADDED THIS IF YOU WANT A SOUND FOR THE QUAKE, REMOVE THE // AT THE START OF THIS LINE AND ADD A SOUND NAME, IF YOU WANT TO
}
wait 20; //CHANGE THIS TO HOW LONG IT TAKES FOR THE EARTHQUAKE TO COME BACK, IN THIS CASE IT WILL COME AFTER EACH 20 SECOND
}
}
shake()
{
for(;;){
earthquake(0.3,10,(0,0,0),1000000);
wait(RandomFloat(300));
}
}
Ege, your script makes the earthquake stronger when there are more players. Code SnippetPlaintextshake()
{
for(;;){
earthquake(0.3,10,(0,0,0),1000000);
wait(RandomFloat(300));
}
}
wait = RandomIntRange( 20, 60 ); // change to whatever
wait(wait);
Oh yea, you're right. It loops all the players and then it adds some extra values. Sorry my bad, corrected it now. Thanks Ray.
GODDAMMIT EGE, now it looks just like my script!
![]() | |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Probably want to make the time in between waits random. Code SnippetPlaintextwait = RandomIntRange( 20, 60 ); // change to whatever
wait(wait);
Like that.
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() Oil Rig Beta Access |
level waittill("ugxm_voting_complete");
If i'm using UGX Mod would i need to add the wait for voting to complete code. Code SnippetPlaintextlevel waittill("ugxm_voting_complete");
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() Oil Rig Beta Access |
If you're calling the thread AFTER the zombiemode, there's no need for that.
Code SnippetPlaintextshake()
{
for(;;){
earthquake(0.3,10,(0,0,0),1000000);
wait(RandomFloat(300));
}
}
Probably want to make the time in between waits random. Code SnippetPlaintextwait = RandomIntRange( 20, 60 ); // change to whatever
wait(wait);
Like that.
Ok. Thanks
Post Merge: June 25, 2014, 06:42:20 am
Hey Ray. How do add a delay so that the shaking does not start straight away after spawning.
Also how do i add a minimim wait between shakes.
I tried daedras wait code but i kept getting a bad syntax error.
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() Oil Rig Beta Access |
delete the extra tab on the wait line.
//Screen Shake
shake()
{
for(;;){
earthquake(0.3,3,(0,0,0),1000);
wait = RandomIntRange( 20, 60 ); // change to whatever
wait(wait);
}
}
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() Oil Rig Beta Access |
Use my code, as it should affect the whole map. Add a wait(10); before the for loop.