AMBIENT FIRE INSPECTION v2.0 by Prof_Farnsworth
2.0 Update:
-Added voice and helmets to the firemen, random components for the chief
-Water cannon effect is now in place (Big thanks to Mr. Mysterious from LCPDFR team). It does not always aim directly at the fire, but sprays the surrounding area.
-Corrected more random event bugs
1.3 Update: Fixed many script errors generated from numerous causes
BUGS FIXED: Fixed many of the script errors caused by the player dying or leaving the scene of the fire quickly.
-fixed a script error when multiple fire trucks blow up consecutively
FEATURES: Any car fire near the player will cause a firetruck to respond to the scene, investigate (look around, take pictures) and clean up (sweep) the area. The fire will also be extinguished. They will then return to a fire department unless there is another fire.
INSTALLATION: Make sure your GTA IV is moddable (scripthook.net, asi loader, etc).
Place "FirePatrol.net" into the "scripts" folder in the root GTA IV directory.
Play. (You can confirm the script has been loaded if the "emergency" script has been loaded in the scripthook console (default key (~)).
Tested on GTA IV version 1.0.7 and 1.0.4.0 with Scripthook.net 1.7.1.7, scripthook.dll 0.5.1 and 0.4.0, and latest xliveless (0.99)
KNOWN BUGS: -Occasionally firemen will do their animation while lying on the ground (looks odd)
-Firetruck has a tendency to get stuck (Game AI). Leaving the area or blowing up the truck will correct the problem.
Copyright: Please do not upload this mod anywhere else. If you use this mod in one of your own, please be kind enough to give credit.
Enjoy
Prof. Farnsworth
Downloads: 8,927
Added: May 1, 2011 7:37PM
Last Downloaded: June 19, 2013 4:06PM File Size: 6.47 KB
» Author Website
2.0 Update:
-Added voice and helmets to the firemen, random components for the chief
-Water cannon effect is now in place (Big thanks to Mr. Mysterious from LCPDFR team). It does not always aim directly at the fire, but sprays the surrounding area.
-Corrected more random event bugs
1.3 Update: Fixed many script errors generated from numerous causes
BUGS FIXED: Fixed many of the script errors caused by the player dying or leaving the scene of the fire quickly.
-fixed a script error when multiple fire trucks blow up consecutively
FEATURES: Any car fire near the player will cause a firetruck to respond to the scene, investigate (look around, take pictures) and clean up (sweep) the area. The fire will also be extinguished. They will then return to a fire department unless there is another fire.
INSTALLATION: Make sure your GTA IV is moddable (scripthook.net, asi loader, etc).
Place "FirePatrol.net" into the "scripts" folder in the root GTA IV directory.
Play. (You can confirm the script has been loaded if the "emergency" script has been loaded in the scripthook console (default key (~)).
Tested on GTA IV version 1.0.7 and 1.0.4.0 with Scripthook.net 1.7.1.7, scripthook.dll 0.5.1 and 0.4.0, and latest xliveless (0.99)
KNOWN BUGS: -Occasionally firemen will do their animation while lying on the ground (looks odd)
-Firetruck has a tendency to get stuck (Game AI). Leaving the area or blowing up the truck will correct the problem.
Copyright: Please do not upload this mod anywhere else. If you use this mod in one of your own, please be kind enough to give credit.
Enjoy
Prof. Farnsworth
| Rating: | |
| 9.11/10 - 28 votes |
Added: May 1, 2011 7:37PM
Last Downloaded: June 19, 2013 4:06PM File Size: 6.47 KB
» Author Website

























@Shikato - Knowing the error would help, but I will be uploading an update shortly which fixes twenty some misc. script errors.
@funsome - read the description
Thanks ComedyInK, glad you enjoy it.
System.NullReferenceException: Object reference not set to an instance of an object.
at emergencyscript.emergency.createtruck()
at emergencyscript.emergency.findFire()
at emergencyscript.emergency.emergency_Tick(Object sender, EventArgs e)
at GTA.Script.TryTick()
at GTA.Script.DoTick()
at GTA.ScriptThread.OnTick()
People
This looks great :D
This is quite the script (haven't tried it, but I will!) definitely adds realism to the game 10/10 (will vote after confirming it works lol)
please answer
also they turn up mid fire fight and casually walk around sweeping
other than that, awesome
Shooting water is great.
Glad to hear it is working now.
Only buses? With no other type of vehicle? Is that what you are asking?
And yes, without any firefighters coming to put it out...
I even called them and they were just standing not so far away from a burning bike saying "There is no fire!". Wow, Rockstar, you make amazing games!...
I also don't get the part of v2 for which you described things like "-Added voice and helmets to the firemen, random components for the chief". Are those things that are already built into the game but you simply scripted it to be used? (I guess.)
I wonder if v1 would work (as I saw someone mention), but I guess that's not available anymore.
This mod does not create fires, and you do not need to call the fire department. They will automatically come to any vehicle on fire.
Easy way to test is just park a car somewhere, and blow it up. The fire truck should show up shortly.
NOTE: They respond to most fires, not all, and the vehicle on fire needs to be on screen until they are dispatched.
On top of that, Firefighters never show up. And even when I call them they don't respond to any fire that is near them.
I know that's probably because when you call them, it's pretty much Rockstar's version of the Firefighters (which don't respond to fire) but it was worth a try, and they didn't respond to fire through your mod either.
I don't know what's preventing it from working. Would you know any mods that might interfere?
I'll try the mod again, but I've already tried it quite a bit.
But I've just tried the script again and started a fire. Then they did come, but once they arrived, the script had an error, and their truck disappeared and then they just stood around.
3 Firemen (2 with brooms) and I guess one Chief (the guy in blue).
But they just stood there and never left. Of course cause the script stopped, but I don't know why it stopped.
Then I left the area to see if the script would perhaps responds again later, but when I started a fire, they didn't show up at all anymore.
I took some screenshots, also from the console after the error, but I'm not sure if it's useful at all.
I started a fire, on a car of course, and also on another behind that car. Then they came, but they only had attention for the first car on fire, as of course that one is what activated them technically.
All they did was being outraged as if they were regular pedestrians, complaining about the fact that there was fire and explosions.
Then they left, even though a fire was raging right behind them, but only when nearly out of sight, they turned around for that additional fire, which made them drive right into the burning cars, catching fire themselves and exploding along with the other cars. And that was the Fire Brigade...
It's rather hilarious to see, but it's barely functional.
I wish you could improve their intelligence (or that of Rockstar) so that they'd be more observant of the area; detect fires, aim at fires with the water, not get too near to fire (at least with the truck).
Maybe it would even be something to have a crew of 2 trucks and more fighters to come at once, but they'd probably only run into each other.
If you'd want to take it to the next level even, have it all happen dynamically, say when there's more fire, more firefighters come.
Or, when there's a small fire, just the one truck and people you have now, but if it expands or if they die, an additional crew (of the same size) would show up, to fight the fire.
I know that's probably a LOT to ask, but I'm just spitballing ideas for improvement. :)
Oh, and speaking of dying Firefighters, it would be great if there was a functional medical emergency service. There could be a pile of bodies (or just hurt people), but they never do anything with them even if you call the paramedics.
I don't get Rockstar, because their earlier games had functional paramedics (and firefighters?). They even just had dead bodies shocked to life endlessly, which is silly too, but it worked.
I guess Rockstar's intelligence and attitude truly is reflected in the A.I. of this game...
On topic, yes, the script is far from perfect, but this was the first mod I ever wrote, so it is not as clean as I would like. To make two trucks come, you could always copy Firepatrol.net.dll, rename it to something else, and copy it back into the scripts folder. This should make two trucks show up. Be cautious though, this may cause more game crashes. GTA apparently does not like the sudden spawn of peds and vehicles, as evidenced by my Hijack mod.
They don't usually drive right into the fire, but sometimes yes, to guarantee they actually get close enough to the fire. I tried everything I could to get the water to aim at the fire, but as it is just a particle effect, and not the actual cannon, it is quite difficult to get the rotation right.
I was working on a body removal script, but found they would not pick up the bodies as intended, so it was abandoned in favour of making the AI drive over dead bodies instead of stopping.
Another crew will show up if the first dies, only if the fire is still burning (and after the 45 second wait for the dead truck to get deleted).
This may be re-written in the future when I am done with my business mod and have a little more time. I do appreciate the feedback though, thanks.
But then, police and taxis do that as well, so it's just the way the AI works. Not your (script's) fault...
On a side-note, I also noticed that when you playback the Firetruck in a replay while it's spraying water, the beam of water gets copied in multiple directions, and on top of that, when the truck drives away they keep spraying and stay hanging in the air like separate objects. I think this is only since I put this script in, cause I don't think I've ever seen that before.
But it's just in the replay-editor, which I noticed when I was just kind of making a video with the crazy Firefighter-AI. It was pretty hilarious so I saved it. :P
But I could try to do the trick with two of the DLLs, so there could be a backup team in a way. If that really crashes the game, I'll probably keep this script in anyway, but with just one copy.
It would be cool if you'd improve and/or expand this script though.
And your Business Mod seems interesting as well. Is that kind of like the "Big City Life"-mod? Or could I use it in addition to that one even? Cause that one seems to be more focused on a "needs"-system rather than business (or working), but I don't know all the details of each mod.
And I'm sorry, but I just don't see why Rockstar doesn't do these additional things. It's just clear to me that people like you are far more inventive than them, which is a shame.
I think people would have been bored with GTAIV years ago if there were no community-modifications (I know I would be). I can only imagine how the console-players feel.
So thanks for your response and the effort.
Big City Life is more focused on making Niko more like a real person. He needs to eat, sleep, do stuff for fun, etc.
I believe they can be used together, the only issue is the number of blips that get created can cause glitches. For example, my mod sometimes breaks bowling (I don't care cause bowling sucks) and I've noticed when too many blips are created it will unload other, more critical blips (i.e. teleport marker from Algonquin safehouse to main floor) so you cannot get out of your apartment, or cause peds to become statues (cannot be killed or moved).
That being said, I have not tested Big City Life extensively with the business mod, so just keep an eye out for things like the above.