Author Topic: Fires, and extinguishing them  (Read 1974 times)

JamesConway

  • Newbie
  • *
  • Posts: 39
  • Karma: +9/-3
    • View Profile
Fires, and extinguishing them
« on: August 22, 2016, 03:43:58 pm »
Is there a way to check if a fire has been extinguished by water?

Ankris

  • Full Member
  • ***
  • Posts: 110
  • Karma: +29/-44
    • View Profile
Re: Fires, and extinguishing them
« Reply #1 on: August 22, 2016, 08:00:38 pm »
No. The only way is check if the player is pressing KEY_INCAR_FIRE, check if the player is near and extinguish the fire with ExtinguishAllFires.

JamesConway

  • Newbie
  • *
  • Posts: 39
  • Karma: +9/-3
    • View Profile
Re: Fires, and extinguishing them
« Reply #2 on: August 22, 2016, 10:26:09 pm »
Fire's are not seeable if the fire has been created before a player has joined the game?

Ankris

  • Full Member
  • ***
  • Posts: 110
  • Karma: +29/-44
    • View Profile
Re: Fires, and extinguishing them
« Reply #3 on: August 22, 2016, 11:23:29 pm »
Fire's are not seeable if the fire has been created before a player has joined the game?

They aren't (tested now).

JamesConway

  • Newbie
  • *
  • Posts: 39
  • Karma: +9/-3
    • View Profile
Re: Fires, and extinguishing them
« Reply #4 on: August 23, 2016, 12:37:18 am »
Thank you for confirming

Vortrex

  • Full Member
  • ***
  • Posts: 267
  • Karma: +54/-73
    • View Profile
Re: Fires, and extinguishing them
« Reply #5 on: August 28, 2016, 07:59:58 pm »
There was a post I had on the forums here a while back regarding the sync of fires.

You need to make an array that holds the location of all fires, then every time a player joins the server, you need to extinguish and re-create them via the info in the array.

When one is successfully put out, just remove it from the array so it doesn't get re-created.

JamesConway

  • Newbie
  • *
  • Posts: 39
  • Karma: +9/-3
    • View Profile
Re: Fires, and extinguishing them
« Reply #6 on: August 28, 2016, 08:49:08 pm »
I read that part yeah Vortrex, it's exactly how I did it. I put all the fires in an array. Every 30 or 60 seconds I delete/extinguish them all and do createfire on all those locations again.
« Last Edit: August 28, 2016, 09:05:03 pm by JamesConway »

 

© Liberty Unleashed Team.