Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Sign in to follow this  
Westen

Feature Showcase: Dynamic Fire Script

Recommended Posts

Westen    234
Posted (edited)
GTA World Forums - GTA V Heavy Roleplay Server
Feature Showcase: Dynamic Fire Script

 

Introduction

 

The dynamic fire script is a fully customizable and dynamic system allowing for the creation and modification of fires in-game without a server restart. The old system was clunky, broken, with disappearing fires and wouldn't allow choosing specific position and settings for fires.

This new system is made for everyone to be able to use it and bring something that works - all players will now have access to a command to request fires for their roleplay needs.

 

Goals

 

This system was created with two main goals in mind. These are as follows:

  • To provide more in-depth, varying roleplay for the Fire Department. This is achieved through fires being fully customizable from the type of fire that spawns; how it looks, to how long it takes to extinguish and even how far or how fast it spreads.
  • To help facilitate arson or fire roleplay through synchronized fires that can be seen by everyone. Previously, due to RageMP limitations, fires may not be seen by everyone present, which makes these scenes confusing and hectic. Now that the fires are synchronized, everyone present will have a clear idea of the fire and the extent to which it has caused damage.

 

Key Components

 

This system comes with two key components: the fires themselves; and the ability to fight these fires. 

 

The Fires

 

Firstly, the fires. Fires can be created by an administrator level 2+ or high ranking Fire Department member (Deputy Chief+) using /firemanager. These fires are stored in the database, and can be customized at any time.

 

Fires can be created, edited, deleted, teleported to or extinguished if active while in-game with the admin panel in /firemanager.

 

Each fire has the following attributes:

  • Origin (X, Y, Z)where the fire originated from in the world.
  • Chance to SpreadThe % chance every time the aggression timer ticks that the fire will spread (assuming it can spread!)
  • Aggression TimeA timer which will run every X seconds (X specified by the user). Once this timer elapses, there is a chance for the fire to spread - or for the fire to be destroyed ("knocked down") if all the flames have been extinguished.
  • Max LifespanThe maximum lifespan of the overall fire in minutes. This is usually where the fire has run out of oxygen or fuel and can no longer sustain itself.
  • Max Spread RadiusIn metres, the maximum distance about the origin that the fire can spread (circular).
  • Max ChildrenThe number of smaller fires that can be created from the origin fire.
  • Minimum FD onlineAs a fire can be made more or less intense by the creator, this regulates the number of qualified firefighters online (rank 2+) so that the fire does not go unattended when spawned.
  • Particle InfoThere are over 400 different fire particles in GTA V. To make things simple, 8 of the easiest to use fire particles have been stored. These have varying effects from spreading along the ground, to killing the player if they get too close. Images for the different fires can be found below:
Spoiler

 

q9IPNOZ.png

 

sFPM85k.png

 

iGsfciw.png

 

hRXVRTY.png

 

ebn5ozX.png

 

4mnYa38.png

 

towF1KE.png

 

4UFJNOa.png

 

 

  • Max Child LifespanThe maximum time in minutes that a child fire from the origin can survive before it extinguishes due to a lack of fuel or oxygen. Child fires will have a health randomly selected between 1 minute and this value to prevent the fire from becoming stale.
  • Max Child HealthThe maximum health that the child particle has. By default, 100. This is reduced by attacking the fire with the extinguisher or hose. The higher this value, the longer the fire takes to be extinguished. Child fires will have a health randomly selected between 1 and this value.

 

Fighting the Fires

 

Fires can be fought with two main methods: a fire extinguisher, or a hose.

  • The fire extinguisher is used as always - aim at the fire and left click. This should be sufficiently roleplayed as Fire Extinguishers may deplete.
  • Secondly, the hose. This hose can be taken from a Fire Truck with /hose. This will allow the player to hold a hose that fires a stream of water at a given point.

 

6oQ2a1w.png

 

The red marker is where the hose is hitting and is the de-facto hitbox for the hose. This should be placed over the fire you wish to extinguish, and can be controlled with PageUp or PageDown to raise or lower the marker respectively.

 

Fire spawns

 

Fires will randomly spawn for the fire department to handle, and all roleplayers can also request a fire with /requestfire <description> for admins to help them spawn a fire based on their need.

 

 

 

 

Edited by Nervous
  • Upvote 10
  • Thanks 3
  • Applaud 3

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...