Random fire
#2

Just map some fire scenes. For example walk around some place and type /save to get coords of the flames.
Let me give you the idlewood gas station for free:

PHP Code:
CreateFire(1940.3667,-1765.7322,13.3828);
    
CreateFire(1940.4148,-1766.9110,13.3828);
    
CreateFire(1940.4510,-1767.8013,13.3828);
    
CreateFire(1940.5105,-1769.2581,13.3906);
    
CreateFire(1940.6560,-1772.8573,13.3906);
    
CreateFire(1940.7115,-1780.1647,13.3906);
    
CreateFire(1940.7305,-1780.6343,13.3906);
    
CreateFire(1941.8922,-1780.9696,13.6406);
    
CreateFire(1942.7533,-1775.0256,13.3906);
    
CreateFire(1942.7360,-1773.9657,13.3906);
    
CreateFire(1942.7189,-1772.8800,13.3906);
    
CreateFire(1942.6665,-1766.2865,13.3906);
    
CreateFire(1941.8967,-1768.6536,13.6406);
    
CreateFire(1941.5769,-1777.1378,13.6406);
    
CreateExplosion(1940.4148,-1766.9110,13.3828,750.0);
    
CreateExplosion(1940.4510,-1767.8013,13.3828,150.0);
    
CreateExplosion(1940.5105,-1769.2581,13.3906,750.0);
    
CreateExplosion(1940.6862,-1773.7482,13.3906,150.0);
    
CreateExplosion(1940.6628,-1774.6421,13.3906,750.0);
    
CreateExplosion(1940.7078,-1775.9058,13.3906,150.0);
    
CreateExplosion(1940.7634,-1777.2809,13.3906,750.0);
    
CreateExplosion(1942.7527,-1779.1779,13.3906,150.0);
    
CreateExplosion(1942.7870,-1777.1068,13.3906,750.0);
    
CreateExplosion(1942.7706,-1776.0867,13.3906,150.0); 
Now if you want to create random fire scenes, you can do something like this:
Note: not working code, just an example from my gamemode.

PHP Code:
CreateRandomFire()
{
    new 
RandomFireSceneID randomEx(1,3);
    if(
RandomFireSceneID == 1// idlewood gas station
    
{
        
SetTimer("CreateFireScene1"5000false);
        
printf("FireScene ID %d created"RandomFireSceneID); 
    }
    else if(
RandomFireSceneID == 2)
    {
        
SetTimer("CreateFireScene2"5000false);
        
printf("FireScene ID %d created"RandomFireSceneID);
    }
    else if(
RandomFireSceneID == 3)
    {
        
SetTimer("CreateFireScene3"5000false);
        
printf("FireScene ID %d created"RandomFireSceneID);
    }
    else{ 
printf("FireScene ID %d created - ERROR: INVALID FIRESCENE ID"RandomFireSceneID); }

The fire scene of idlewood station will look like this:

PHP Code:
public CreateFireScene1()
{
    
CreateFire(1940.3667,-1765.7322,13.3828);
    
CreateFire(1940.4148,-1766.9110,13.3828);
    
CreateFire(1940.4510,-1767.8013,13.3828);
    
CreateFire(1940.5105,-1769.2581,13.3906);
    
CreateFire(1940.6560,-1772.8573,13.3906);
    
CreateFire(1940.7115,-1780.1647,13.3906);
    
CreateFire(1940.7305,-1780.6343,13.3906);
    
CreateFire(1941.8922,-1780.9696,13.6406);
    
CreateFire(1942.7533,-1775.0256,13.3906);
    
CreateFire(1942.7360,-1773.9657,13.3906);
    
CreateFire(1942.7189,-1772.8800,13.3906);
    
CreateFire(1942.6665,-1766.2865,13.3906);
    
CreateFire(1941.8967,-1768.6536,13.6406);
    
CreateFire(1941.5769,-1777.1378,13.6406);
    
CreateExplosion(1940.4148,-1766.9110,13.3828,750.0);
    
CreateExplosion(1940.4510,-1767.8013,13.3828,150.0);
    
CreateExplosion(1940.5105,-1769.2581,13.3906,750.0);
    
CreateExplosion(1940.6862,-1773.7482,13.3906,150.0);
    
CreateExplosion(1940.6628,-1774.6421,13.3906,750.0);
    
CreateExplosion(1940.7078,-1775.9058,13.3906,150.0);
    
CreateExplosion(1940.7634,-1777.2809,13.3906,750.0);
    
CreateExplosion(1942.7527,-1779.1779,13.3906,150.0);
    
CreateExplosion(1942.7870,-1777.1068,13.3906,750.0);
    
CreateExplosion(1942.7706,-1776.0867,13.3906,150.0);

Reply


Messages In This Thread
Random fire - by Astonish - 03.05.2018, 11:52
Re: Random fire - by jasperschellekens - 03.05.2018, 12:02
Re: Random fire - by SeanDenZYR - 03.05.2018, 12:08
Re: Random fire - by Astonish - 03.05.2018, 13:20
Re: Random fire - by Astonish - 04.05.2018, 11:10
Re: Random fire - by Astonish - 04.05.2018, 23:21
Re: Random fire - by CyNiC - 05.05.2018, 04:07
Re: Random fire - by Astonish - 06.05.2018, 15:05
Re: Random fire - by GTLS - 07.05.2018, 11:00
Re: Random fire - by Jstylezzz - 07.05.2018, 14:27

Forum Jump:


Users browsing this thread: 1 Guest(s)