gimicze / firescript

OneSync Infinity compatible fire script for FiveM.
https://forum.cfx.re/t/release-fire-script-onesync/1751606
GNU General Public License v3.0
87 stars 35 forks source link

Enhancement : FireSpread Rate #6

Open PilotSage opened 3 years ago

PilotSage commented 3 years ago

firespreadrate : Defines the speed at which the fire spreads

Currently when the fire is set to spread under a rough percentage. it spreads almost instantly.

It would be cool if the fire spread rate could be set to happen slower or faster. If the fire department shows up quickly the fire will be small, the longer it takes the bigger the fire would get to its final spread size.

If the fire was set to /addflame 35 100 True x,y,z 30

Flame is added that will spread up to 35 flames 100 percent of the time notifying dispatch at location xyz and will add 1 of the 35 flames every 30 seconds..

Thank you for your consideration

gimicze commented 3 years ago

Hi!

The fire spread rate can be controlled by the "chance" argument (for example in this command). Setting it to 0 means the specific fire won't spread at all, setting it to 100 means the fire will spread to its maximum extents almost instantly. Setting the argument to somewhere between 5 and 20 seemed to work fine for our fire department.

Is this not what you meant?

PilotSage commented 3 years ago

Not exactly real fires can take time to evolve into a "fully Involved" structure fire.. right now let's say I add 5 flames in different room it would be cool to set them on a delay. Or set the spread chance to check for spread slower. Something like /add flame x x 1min the 1 min would be the rate that the fire tries to spread. So it would stay to start a new flame every min under the conditions set withx

gimicze commented 3 years ago

I was actually considering this as well. Unfortunately I don't have much time these days, so I'll have to ask you to wait a little longer. 😄

PilotSage commented 3 years ago

I was actually considering this as well. Unfortunately I don't have much time these days, so I'll have to ask you to wait a little longer. 😄

No rush just wanted to get the request in there