03.05.2018, 12:02
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:
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.
The fire scene of idlewood station will look like this:
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,7, 50.0);
CreateExplosion(1940.4510,-1767.8013,13.3828,1, 50.0);
CreateExplosion(1940.5105,-1769.2581,13.3906,7, 50.0);
CreateExplosion(1940.6862,-1773.7482,13.3906,1, 50.0);
CreateExplosion(1940.6628,-1774.6421,13.3906,7, 50.0);
CreateExplosion(1940.7078,-1775.9058,13.3906,1, 50.0);
CreateExplosion(1940.7634,-1777.2809,13.3906,7, 50.0);
CreateExplosion(1942.7527,-1779.1779,13.3906,1, 50.0);
CreateExplosion(1942.7870,-1777.1068,13.3906,7, 50.0);
CreateExplosion(1942.7706,-1776.0867,13.3906,1, 50.0);
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", 5000, false);
printf("FireScene ID %d created", RandomFireSceneID);
}
else if(RandomFireSceneID == 2)
{
SetTimer("CreateFireScene2", 5000, false);
printf("FireScene ID %d created", RandomFireSceneID);
}
else if(RandomFireSceneID == 3)
{
SetTimer("CreateFireScene3", 5000, false);
printf("FireScene ID %d created", RandomFireSceneID);
}
else{ printf("FireScene ID %d created - ERROR: INVALID FIRESCENE ID", RandomFireSceneID); }
}
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,7, 50.0);
CreateExplosion(1940.4510,-1767.8013,13.3828,1, 50.0);
CreateExplosion(1940.5105,-1769.2581,13.3906,7, 50.0);
CreateExplosion(1940.6862,-1773.7482,13.3906,1, 50.0);
CreateExplosion(1940.6628,-1774.6421,13.3906,7, 50.0);
CreateExplosion(1940.7078,-1775.9058,13.3906,1, 50.0);
CreateExplosion(1940.7634,-1777.2809,13.3906,7, 50.0);
CreateExplosion(1942.7527,-1779.1779,13.3906,1, 50.0);
CreateExplosion(1942.7870,-1777.1068,13.3906,7, 50.0);
CreateExplosion(1942.7706,-1776.0867,13.3906,1, 50.0);
}