IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules Attention:

The Mod Showroom is only for posting previews/downloads of completed or near finished mods.
All help topics should be posted in the Editing Discussion forums. Help topics and mod requests posted here will be locked or binned. Thank you.
GTAGarage.com : Free mod hosting, attach your files and screenshots to your topics
GTAModding.com : A wiki for everything related to GTA modding, including documentation and tutorials

Pages: (3) [1] 2 3   ( Go to first unread post ) Reply to this topicStart new topicStart Poll

 [IV/WIP] Ambient Fire Inspector

 Firetruck will respond to fire
 
Prof_Farnsworth  
Posted: Tuesday, Mar 29 2011, 04:01
Quote Post


Ambient Modder
Group Icon
Group: Members
Joined: Feb 25, 2011

XXXXX



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


UPDATE Version 1.3: Fixed many script errors from numerous causes.

UPDATED V1.2

-fixed an annoying crash when multiple fire trucks explode consecutively. (awaiting approval)


UPDATED V1.1

BUGS FIXED: Fixed many of the script errors caused by the player dying or leaving the scene of the fire quickly.

After getting back into GTA IV with all of the mods here over the last month, I thought I should share whatever I could. I wanted to add firetrucks to ambient gameplay, sort of like ambulances are now.

This is my first mod, so there may be bugs I still have not discovered. Please leave feedback, comments, crits.

Thanks go out to those who made modding GTA IV possible, and all who have posted the great work here.



AMBIENT FIRE INSPECTION v1.0 by Prof_Farnsworth

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 (I have NOT gotten the water cannon to work, fire is put out after

inspection complete). 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 with Scripthook.net 1.7.1.7, scripthook.dll 0.5.1, 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

This post has been edited by Prof_Farnsworth on Friday, Apr 6 2012, 17:25

O This mod is hosted at GTAGarage.com

Screenshots:
GTAGarage screenshot GTAGarage screenshot GTAGarage screenshot GTAGarage screenshot

Downloads:
Download Fire Dept. V2 - 0.006MB, uploaded on Apr 06 2012, downloaded 629 times
Download Ambient Fire Inspection - 0.005MB, uploaded on May 17 2011, downloaded 1456 times
Download Fire Inspector 1.2 - 0.005MB, uploaded on Apr 02 2011, downloaded 677 times
Download Fire Inspector v1.1 - 0.005MB, uploaded on Apr 02 2011, downloaded 315 times
Download Fire_Inspector - 0.005MB, uploaded on Mar 29 2011, downloaded 392 times

Click here to view the mod at GTAGarage

PM
  Top
 

 
Cpl.Dunn  
Posted: Tuesday, Mar 29 2011, 13:37
Quote Post


LCPDFR Moderation Supervisor
Group Icon
Group: Members
Joined: Aug 10, 2010

sf.gif

XXXXX



Looks amazing, going to test it as soon as i get IV running.
PMMSNPlayStation Network
  Top
 

 
gorgonut  
Posted: Friday, Apr 1 2011, 16:05
Quote Post


Snitch
Group Icon
Group: Members
Joined: Feb 21, 2009

XXXXX



Couldn't get it to work with EFLC v. 1.0.2. Everytime a vehicle got on fire the game frozed... blush.gif
PM
  Top
 

 
Prof_Farnsworth  
Posted: Saturday, Apr 2 2011, 16:14
Quote Post


Ambient Modder
Group Icon
Group: Members
Joined: Feb 25, 2011

XXXXX



@Cpl.Dunn - Thanks for the vote of confidence. I hope you enjoy it. Be sure to get the update as it fixes some annoying script crashes.

@gorgonut - I would imagine it is a model conflict. If someone could give me the names of the model's used for fire in the DLC's (as I do not have them on PC), I could probably make a version for TLAD and TBOGT.
PM
  Top
 

 
chasez  
Posted: Saturday, Apr 2 2011, 17:48
Quote Post


Living On Times Square
Group Icon
Group: Members
Joined: Nov 21, 2008

us.gif

XXXXX



Where can we dl v1.1?
PMMSNICQ
  Top
 

 
nkjellman  
Posted: Sunday, Apr 3 2011, 01:41
Quote Post


Boss
Group Icon
Group: Members
Joined: Aug 28, 2008

us.gif

Member Award




Nice work. Rockstar should of put this in to the game in the first place. When ever your car is on fire it somtimes takes a while to explode and no fire truck. They dont come often. You should make the fire department come when places explode or are destroyed during the campain.
PMXbox LivePlayStation Network
  Top
 

 
Prof_Farnsworth  
Posted: Sunday, Apr 3 2011, 01:41
Quote Post


Ambient Modder
Group Icon
Group: Members
Joined: Feb 25, 2011

XXXXX



@chasez - In the first post links to all versions can be found. 1.2 should be there soon. (simple script error fixes)

@nkjellman - Thanks a lot. I'm glad you like it.

QUOTE
When ever your car is on fire it somtimes takes a while to explode and no fire truck.


Do you mean with the mod or without? In my game, they come to every car fire, just after it is set on fire (does not have to explode, just be on fire), as that is how the script is written. I was thinking of only making them come to a percentage of fires though, so they wouldn't come all the time, but am undecided. As for the campaign explosions, I can't remember how many there are, but it may be more trouble than it is worth.



This post has been edited by Prof_Farnsworth on Sunday, Apr 3 2011, 01:49
PM
  Top
 

 
nkjellman  
Posted: Sunday, Apr 3 2011, 02:29
Quote Post


Boss
Group Icon
Group: Members
Joined: Aug 28, 2008

us.gif

Member Award




Yes I was talking about normaly.
PMXbox LivePlayStation Network
  Top
 

 
Cpl.Dunn  
Posted: Sunday, Apr 3 2011, 09:48
Quote Post


LCPDFR Moderation Supervisor
Group Icon
Group: Members
Joined: Aug 10, 2010

sf.gif

XXXXX



Alright, i have tested this and all i can say is that i love this mod. Brings little more realism again. Altho, this mod can be kinda hilarious. There was a huge pileup of cars and one of the cars was on fire. Firetruck responded and drove at full speed right into the burning car and exploded. Every single car in the pile up blew up after that, one by one. biggrin.gif
PMMSNPlayStation Network
  Top
 

 
gorgonut  
Posted: Sunday, Apr 3 2011, 13:04
Quote Post


Snitch
Group Icon
Group: Members
Joined: Feb 21, 2009

XXXXX



"names of the model's used for fire in the DLC's"
Sorry but I didn't understand what DLC means. Please explain and I ll help if I can. By the way neither the v.1.1 was compatible with EFLC although other mods which are compatible with GTA IV v. 1.0.7 work with EFLC v.1.0.2 too. Don't know why since am I not in the codes modding bussiness.
Thanks
PM
  Top
 

 
Prof_Farnsworth  
Posted: Sunday, Apr 3 2011, 13:19
Quote Post


Ambient Modder
Group Icon
Group: Members
Joined: Feb 25, 2011

XXXXX



QUOTE
Alright, i have tested this and all i can say is that i love this mod. Brings little more realism again. Altho, this mod can be kinda hilarious. There was a huge pileup of cars and one of the cars was on fire. Firetruck responded and drove at full speed right into the burning car and exploded. Every single car in the pile up blew up after that, one by one. biggrin.gif


haha, thanks Cpl. Glad you like it. My choice was either have them drive right into it sometimes, or have them stop too far away most of the time, it can be quite hilarious when the first disappears and more come to blow up as well (reason for 3rd update so quick that_guy2057_evilgrin.gif ).
QUOTE

"names of the model's used for fire in the DLC's"
Sorry but I didn't understand what DLC means. Please explain and I ll help if I can. By the way neither the v.1.1 was compatible with EFLC although other mods which are compatible with GTA IV v. 1.0.7 work with EFLC v.1.0.2 too. Don't know why since am I not in the codes modding bussiness.
Thanks


Apologies, what I meant was are the model names for the firemen and firetruck different in EFLC (DLC) than in GTA IV? I would think they would be the same, which makes it odd that it is freezing. I have had plenty of script errors, but never a freeze or crash using this mod. If you know anyone else with EFLC, maybe they could test it for you.
PM
  Top
 

 
gorgonut  
Posted: Sunday, Apr 3 2011, 13:51
Quote Post


Snitch
Group Icon
Group: Members
Joined: Feb 21, 2009

XXXXX



Yes the names are the same (only some new vehicles are availiable in TLAD and TBoGT). Furthermore I ve tested it in ruiner which is common for both GTA IV and EFLC. I ll keep testing the new versions of your mod and report back. monocle.gif
PM
  Top
 

 
Prof_Farnsworth  
Posted: Sunday, Apr 3 2011, 20:34
Quote Post


Ambient Modder
Group Icon
Group: Members
Joined: Feb 25, 2011

XXXXX



QUOTE (gorgonut @ Apr 3 2011, 13:51)
Yes the names are the same (only some new vehicles are availiable in TLAD and TBoGT). Furthermore I ve tested it in ruiner which is common for both GTA IV and EFLC. I ll keep testing the new versions of your mod and report back. monocle.gif

Only the names of the firetruck and fireman models being different would cause a problem, not the car that is on fire. It is irrelevant, as any vehicle on fire should dispatch the truck. I am not sure of any reason it would be freezing with no script errors present.

Please post you .asi loader and version, scripthook.net version and c++ version(just for completeness's sake).
PM
  Top
 

 
gorgonut  
Posted: Sunday, Apr 3 2011, 21:32
Quote Post


Snitch
Group Icon
Group: Members
Joined: Feb 21, 2009

XXXXX



I see what you mean. Well, the firetruck and fireman/firechief names are the same for both games. In fact EFLC has the same vehicles.img, componentpeds.img and pedprops.img with GTA IV plus some more stored in different archives for TLAD and TBoGT. So as you explain it I don't understand either why the game is freezing. I am using all the tools (asi loader, scripthook, etc) for GTA IV 1.0.7 and EFLC 1.0.2. But it doesn't matter because I tried also the ones you suggest (Scripthook.net 1.7.1.7, scripthook.dll 0.5.1) and the result was the same mercie_blink.gif Thanks for the effort anyway. Anyone else tested with EFLC?
PM
  Top
 

 
Prof_Farnsworth  
Posted: Monday, Apr 4 2011, 01:51
Quote Post


Ambient Modder
Group Icon
Group: Members
Joined: Feb 25, 2011

XXXXX



QUOTE (gorgonut @ Apr 3 2011, 21:32)
I see what you mean. Well, the firetruck and fireman/firechief names are the same for both games. In fact EFLC has the same vehicles.img, componentpeds.img and pedprops.img with GTA IV plus some more stored in different archives for TLAD and TBoGT. So as you explain it I don't understand either why the game is freezing. I am using all the tools (asi loader, scripthook, etc) for GTA IV 1.0.7 and EFLC 1.0.2. But it doesn't matter because I tried also the ones you suggest (Scripthook.net 1.7.1.7, scripthook.dll 0.5.1) and the result was the same mercie_blink.gif Thanks for the effort anyway. Anyone else tested with EFLC?

Bizarre, sorry I couldn't be of more help. Please let me know if you solve the problem or find the probable cause.
PM
  Top
 

 
chasez  
Posted: Monday, Apr 4 2011, 10:31
Quote Post


Living On Times Square
Group Icon
Group: Members
Joined: Nov 21, 2008

us.gif

XXXXX



QUOTE (gorgonut @ Apr 3 2011, 21:32)
I see what you mean. Well, the firetruck and fireman/firechief names are the same for both games. In fact EFLC has the same vehicles.img, componentpeds.img and pedprops.img with GTA IV plus some more stored in different archives for TLAD and TBoGT. So as you explain it I don't understand either why the game is freezing. I am using all the tools (asi loader, scripthook, etc) for GTA IV 1.0.7 and EFLC 1.0.2. But it doesn't matter because I tried also the ones you suggest (Scripthook.net 1.7.1.7, scripthook.dll 0.5.1) and the result was the same mercie_blink.gif Thanks for the effort anyway. Anyone else tested with EFLC?

I play only with EFLC and nothing like that happens to me.

Just seems funny that when the firemen arrive they sweep the area with broom although the burning car is right next to them. Is that what they acctualy do with this script or do they extinguish the fire with water too?
PMMSNICQ
  Top
 

 
Prof_Farnsworth  
Posted: Monday, Apr 4 2011, 19:22
Quote Post


Ambient Modder
Group Icon
Group: Members
Joined: Feb 25, 2011

XXXXX



QUOTE (chasez @ Apr 4 2011, 10:31)
QUOTE (gorgonut @ Apr 3 2011, 21:32)
I see what you mean. Well, the firetruck and fireman/firechief names are the same for both games. In fact EFLC has the same vehicles.img, componentpeds.img and pedprops.img with GTA IV plus some more stored in different archives for TLAD and TBoGT. So as you explain it I don't understand either why the game is freezing. I am using all the tools (asi loader, scripthook, etc) for GTA IV 1.0.7 and EFLC 1.0.2. But it doesn't matter because I tried also the ones you suggest (Scripthook.net 1.7.1.7, scripthook.dll 0.5.1) and the result was the same mercie_blink.gif  Thanks for the effort anyway. Anyone else tested with EFLC?

I play only with EFLC and nothing like that happens to me.

Just seems funny that when the firemen arrive they sweep the area with broom although the burning car is right next to them. Is that what they acctualy do with this script or do they extinguish the fire with water too?

Yeah, as I say in the description, everything I tried to get the water cannon to fire would not work. The guys at LCPDFR have got it working, it will be in there next release, but I have no idea how, probably using their custom "advanced hook". I still wanted firetrucks when not using LCPDFR though.

The only other animation I could find with water was the watering can, which wouldn't really be appropriate here. The other tool and digging animations were not very long or as convincing, so I felt this fit best. If I ever figure out how to have the AI fire the cannon, or use an extinguisher without affecting other weapons, I will update the mod.

Thanks for the info on EFLC as well, it seemed very odd that this mod would freeze the game.
PM
  Top
 

 
gorgonut  
Posted: Monday, Apr 4 2011, 21:44
Quote Post


Snitch
Group Icon
Group: Members
Joined: Feb 21, 2009

XXXXX



Thanks too for the info. The only thing that I am thinking then is that it might interfere with onother mod... mercie_blink.gif
I ll wait to try v. 1.2
PM
  Top
 

 
chasez  
Posted: Tuesday, Apr 5 2011, 02:22
Quote Post


Living On Times Square
Group Icon
Group: Members
Joined: Nov 21, 2008

us.gif

XXXXX



QUOTE (Prof_Farnsworth @ Apr 4 2011, 19:22)
QUOTE (chasez @ Apr 4 2011, 10:31)
QUOTE (gorgonut @ Apr 3 2011, 21:32)
I see what you mean. Well, the firetruck and fireman/firechief names are the same for both games. In fact EFLC has the same vehicles.img, componentpeds.img and pedprops.img with GTA IV plus some more stored in different archives for TLAD and TBoGT. So as you explain it I don't understand either why the game is freezing. I am using all the tools (asi loader, scripthook, etc) for GTA IV 1.0.7 and EFLC 1.0.2. But it doesn't matter because I tried also the ones you suggest (Scripthook.net 1.7.1.7, scripthook.dll 0.5.1) and the result was the same mercie_blink.gif  Thanks for the effort anyway. Anyone else tested with EFLC?

I play only with EFLC and nothing like that happens to me.

Just seems funny that when the firemen arrive they sweep the area with broom although the burning car is right next to them. Is that what they acctualy do with this script or do they extinguish the fire with water too?

Yeah, as I say in the description, everything I tried to get the water cannon to fire would not work. The guys at LCPDFR have got it working, it will be in there next release, but I have no idea how, probably using their custom "advanced hook". I still wanted firetrucks when not using LCPDFR though.

The only other animation I could find with water was the watering can, which wouldn't really be appropriate here. The other tool and digging animations were not very long or as convincing, so I felt this fit best. If I ever figure out how to have the AI fire the cannon, or use an extinguisher without affecting other weapons, I will update the mod.

Thanks for the info on EFLC as well, it seemed very odd that this mod would freeze the game.


Ok, cool smile.gif I love this script, keep up the good work. I wonder if it could be possible to make 2 firetrucks to respond. One seems to be not enough for city like this biggrin.gif lol

btw the script doesn't freeze the game (EFLC in this case) but the script failed a few times on MP and one time on SP. I wouldn't care much about if it works on MP but if it will start to act crazy on SP then I'm going to cry because I don't want to go back to IV biggrin.gif lol I hope it was just one time.

QUOTE (gorgonout @ Apr 4 2011, 21:44)
Thanks too for the info. The only thing that I am thinking then is that it might interfere with onother mod... mercie_blink.gif
I ll wait to try v. 1.2


Actually, any mod could crash your game. All of the scripts make demand to the game to do something forcefully, if you have a low end pc the game can't handle the amount of demands. I think you gotta have a good cpu to avoid freezing caused by scripts.

This post has been edited by chasez on Tuesday, Apr 5 2011, 02:40
PMMSNICQ
  Top
 

 
Prof_Farnsworth  
Posted: Tuesday, Apr 5 2011, 14:07
Quote Post


Ambient Modder
Group Icon
Group: Members
Joined: Feb 25, 2011

XXXXX



QUOTE
Ok, cool smile.gif I love this script, keep up the good work. I wonder if it could be possible to make 2 firetrucks to respond. One seems to be not enough for city like this biggrin.gif lol

btw the script doesn't freeze the game (EFLC in this case) but the script failed a few times on MP and one time on SP. I wouldn't care much about if it works on MP but if it will start to act crazy on SP then I'm going to cry because I don't want to go back to IV biggrin.gif lol I hope it was just one time.


@chasez - Thanks, I'm glad you enjoy it. I tried putting two firetrucks in, but the code got very messy, so I may release another script that will add another truck (I don't know how to use multiple scripts in one mod yet blush.gif blush.gif blush.gif haven't been doing this long)

If you could include the function call and error (maybe a screen from the console when you get a crash) I would appreciate it very much. I have only been able to make it crash once since v1.2.

QUOTE
Actually, any mod could crash your game. All of the scripts make demand to the game to do something forcefully, if you have a low end pc the game can't handle the amount of demands. I think you gotta have a good cpu to avoid freezing caused by scripts.


This script is only called every 5 seconds, so not too demanding, but it does call a fair amount of stuff, so chasez could be right here.
PM
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Pages: (3) [1] 2 3 

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG