|
 |
|
|
|
|
|
GTA Modification Forums
Changing the decal limit?
 |
|
 |
| |
Grady Featherstone  |
|
GTAPoliceMods.com Web Developer

Group: Members
Joined: Jan 4, 2012


|
When you say damage decals, are you talking about, like bullet holes in cars and such? If so, I'm not sure you're going to be able to have much luck in getting that to stay... I may be wrong however, so I'm not saying it's impossible.... To keep dead bodies from despawning should be easy, however. You could try a simple C# script something like this: | CODE | using System; using GTA;
namespace KeepDeadBodiesFromDisappearing { public class keepDeadBodiesFromDisappearing : Script { Ped[] allPeds; public keepDeadBodiesFromDisappearing() { Interval = 1000; this.Tick += new EventHandler(keepDeadBodiesFromDisappearingTick); } public void keepDeadBodiesFromDisappearingTick(object sender, EventArgs e) { allPeds = World.GetAllPeds(); foreach (Ped deadPed in allPeds) { if (deadPed.isDead) { if (!deadPed.isRequiredForMission) { deadPed.isRequiredForMission = true; } } } } } }
|
What that does is gets all the peds currently in the world, and then checks to see which ones of them are dead... It then sets them as "Mission Peds" which means the game thinks it needs them for a mission and therefore won't delete them.... No guarantee this code will work, as I just quickly wrote it, but I hope it helps you out!!! Just save all that into a blank notepad file and save it as "ihopethatthisscriptworksforyou.cs" (without speech marks  ) and place it in your "scripts" folder in your main GTA IV directory!!!! I hope it works for you!!! If not, tell me and I'll see where I went wrong!!!
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
Grady Featherstone  |
|
GTAPoliceMods.com Web Developer

Group: Members
Joined: Jan 4, 2012


|
Ok, all you have to do is follow a few steps and you're good to go!!! If you don't have a "scripts" folder in your main Grand Theft Auto IV directory, then just create one! Call it "scripts" without the speech marks! Then copy the code just above and paste it into a new notepad file! Then save that file as whateveryouwant.cs It doesn't matter what you call the file, as long as it has a .cs extension! Then make sure you have the Scripthook installed, and I think you will need an ASI loader too!!! Once you have completed all those steps the script should work!!! Here is a link to the Scripthook: http://www.gtaforums.com/index.php?showtopic=392325And here is an ASI loader: http://www.gtaforums.com/index.php?showtopic=394806If you still have problems post back and I will see if I missed something!!!!!
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
| |
 |
|
 |
|
|
|
|