Quantcast

Jump to content

» «
Photo

[REL|IV] Arrest Warrant

GTA4 .NET script mod notoriety police AI realism
222 replies to this topic
AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#1

Posted 08 July 2011 - 09:19 AM Edited by AngryAmoeba, 22 February 2015 - 02:27 AM.

ArrestWarrant_Investigation.png

 

 

WHAT IT DOES

This script adds a fairly intricate notoriety system similar to Assassin's Creed.

Gaining Notoriety

- If the cops see your face during a chase, there's a chance they'll IDENTIFY you for the crime.
- If you ESCAPE after being identified, the crime is added to your arrest warrant.
- Your warrant is given a NOTORIETY rating based on how serious your crimes were (1 star, 2 stars, etc.)
- Press 0 on the numpad to show your current notoriety rating.

 

ArrestWarrant_WarrantStars.png

Alerting Police
- Your notoriety, behavior, and traffic crimes will ALERT police (see "Tips" below for extensive details).
- A green indicator means the cop is watching you. Yellow & red mean he's suspicious, & he'll investigate.

 

ArrestWarrant_Map.png

 

Starting Pursuits
- If a red-alerted cop gets close, he'll stop you & ask for ID. Niko is an illegal immigrant, so... 1 star no matter what.
- With high notoriety (3+ stars) if a nearby cop is fully alerted, he'll RECOGNIZE you & start a chase.
- If a fully alerted cop sees you bump someone or commit a serious traffic crime, he'll give you 1 star.*
- If you hold a gun/explosive near a cop, there's a chance he'll spot your weapon & give you 1 star.*

 

Ending Pursuits

- If you get arrested (or die during a chase), your arrest warrant will be cleared.

- You'll lose your wanted level if you're unseen for a long time (60 secs per star).

- Hold F1 to surrender. Doesn't always work, because cops are angry.

High Alert*
- Cops will be alerted more easily for a while after you escape a chase.
- If a cop becomes fully alerted during this time, the previous chase will RESUME.
- High Alert lasts 1 minute for each star you had in the previous chase.

Wanted Vehicles
- Your vehicle can have its own wanted level, if it's identified during a chase.
- Outside of chases, alerted cops might RECOGNIZE your wanted vehicle while investigating.
- If your vehicle's wanted level is at least 3 stars, it'll slowly alert cops on sight.
- Stolen vehicles are often REPORTED to the police.*
- Go to a Pay 'n' Spray to clear the vehicle's wanted level.

 

ArrestWarrant_VehicleStars.png

Paying Bribes*
- Press 5 on the numpad to arrange a bribe meeting.
- At the meeting:
. . . Press 4 & 6 to cycle through crime levels (1 star, 2 stars, etc.).
. . . Press 8 & 2 to add & remove crimes from the bribe.
. . . Press 5 to pay the bribe.
. . . Press Delete to reset the current bribe.
. . . The notoriety value & bribe cost are displayed for each crime level.

* Can be disabled in the INI.


------------------------------------------------

HOW TO INSTALL
This is a script for HazardX's .NET scripthook. Just extract the files into the 'scripts' folder of the .NET scripthook.

Note:
- Make sure you have the latest scripthook version, v1.7.1.7.
- See below for known bugs, so you know what to expect.

------------------------------------------------


DOWNLOAD v1.1

 

Last updated February 21, 2015

 

 

------------------------------------------------

TIPS

General
- Many settings can be tweaked in the INI.
- Hold PageDown and press 5 on the numpad to disable/enable the mod. This won't clear your warrant or your wanted vehicles.

Being Spotted
- The chance of your face being identified depends on:
. . . . your wanted level
. . . . whether you're in a vehicle, & the vehicle's speed
. . . . whether the cop is dying (lying down/limping)
. . . . how long the cop has continuously seen your face
- The chance of your vehicle being identified depends on:
. . . . your wanted level
. . . . your vehicle's speed & wanted level
. . . . whether High Alert is active
. . . . how long the cop has seen your vehicle
- The chance of your gun being spotted depends on:
. . . . whether you're in a vehicle
. . . . the cop's alert level
. . . . the size of the weapon
- All the above chances also depend on:
. . . . your distance & notoriety
. . . . whether it's nighttime and/or raining
. . . . whether the cop is in a vehicle, & his vehicle's speed

Alerting Police
- How fast cops are alerted depends on:
. . . . your speed, distance, & notoriety
. . . . whether you're holding a weapon
. . . . whether you're climbing, jumping, or walking into people (especially cops)
. . . . what size crowd you're in (how many NPCs are nearby)
. . . . whether you're in cover
. . . . whether you're facing each other
. . . . whether you're in a vehicle, & the vehicle's speed, damage, & wanted level
. . . . whether you're in an emergency vehicle (police, ambulance, fire truck)
. . . . whether you're breaking traffic laws
. . . . whether it's nighttime and/or raining
. . . . whether you're near a dead or dying person
. . . . whether you've been too close to the cop for too long
. . . . whether High Alert is active
. . . . whether the cop can see another cop chasing you
. . . . whether the cop has seen, investigated, interrogated, and/or identified you before
. . . . how long the cop has investigated you
. . . . whether the cop is NOOSE, FBI, or just normal LCPD
. . . . whether you're wearing the LSD uniform (–25% chance by default in INI)
- They are alerted much faster if your notoriety is 3 stars or more.
- Alert can slowly drain, but only after an alerted cop has seen you act normal for a while.
- Alert indicators only show on the map for cops in your character's line of sight (360º).
- Alert indicators will flash:
. . . . White flash = alert level is higher than it's been before (bigger increase = more flashes)
. . . . Gray flash = draining
. . . . Blue flashes = fully alerted

Investigations

- If you break a cop's line of sight while he's investigating, he'll run to your last known position, try to guess where you went, & then give up if he can't find you.
- If you're far away, the cop will jog until he gets near.
- If a cop sees you run while he's investigating, he'll be alerted very fast. (Using my Weapon Weight mod, you can "hurry" to walk faster.)
- Cops in cars...
. . . . will try to follow you while investigating, if you're in a vehicle.
. . . . won't get out of their cars until their indicators turn red.

Secondary Vision
- As a workaround for cops not seeing far, cops in cars and/or investigating have "secondary vision".
- Secondary vision imitates the cop glancing around & looking in rearview car mirrors.
- It's 360º & its range depends on the cop's alert level.
- There's a chance, based on his alert level, that he'll see you in this field of view.

 

High Notoriety

- If your notoriety is at least 3 stars, cops will...
. . . . get alerted just from investigating for a long time.
. . . . ID you just from being fully alert & nearby.
. . . . ID you for your past crimes when you get IDed for a lower-level crime.
- If your vehicle's wanted level is at least 3 stars, it'll alert cops on sight.

 

Escalating Notoriety
- A new crime is added to your warrant every time you escape after being identified (not including chases resumed during High Alert).
- Eventually, the notoriety from these crimes can add up, increasing your notoriety rating.
- Even 1-star crimes can add up to a 2-star notoriety rating, if you have a lot of them on your warrant.
- Notoriety escalates slowly at first (thirty 1-star crimes = one 2-star crime), but it gets much faster at higher levels (five 2-star crimes = one 3-star crime).


Recommended Related Mods
- Less Cops in Liberty City by lilmcnessy — Fewer police will spawn.
- Halt Traffic Behind by HazardX, modified by me — Makes NPCs stop behind your car instead of trying to drive around.
- Weapon Weight by me — Includes a "hurry" feature to walk/run/swim faster. Useful when evading police.
- Prison Break by HippieCommunist — Go to prison when arrested. Post bail or try to escape.
- Farnsworth's Business Mod by Prof_Farnsworth — Buy businesses and earn money for bribes.


------------------------------------------------

KNOWN BUGS (and workarounds for some)

Important Bugs
- Your arrest warrant is only saved when you use a bed to save the game, not when the game autosaves.
- Your arrest warrant is persistent across different savegames. Workaround: manually create a different ArrestWarrant.dat file for each save.
- When patrolling cops see an NPC criminal, they either ignore or shoot at him. Workaround: disable PreventCopDeletion in the INI, or temporarily toggle the mod off until the NPC criminal gets chased away.

GTA IV Issues (unfixable?)
- Most cops can't see very far.
- The game AI can see through many things it shouldn't, like low walls, dumpsters, vehicles, vegetation, and people.
- The game AI can't follow you through certain areas. Currently known to affect several alleys, one door, and one subway station staircase.
- Sometimes, the game gives you 1 star for stealing a vehicle when you only tried to open a locked car door.
- Sometimes, the game thinks you committed a traffic crime when you didn't (e.g. it thinks a street is one-way when it's not).
- The game fades the indicators over cops when you're close to them.

Vehicle Bugs
- If you commit traffic crimes while moving very slowly, the police won't notice.
- Cops are really bad at tailing you in cars, often crashing or making pointless wrong turns.
- Stolen vehicles don't get reported if they're empty and unlocked when you get in (this is a workaround to prevent your saved cars from being reported).

Minor Bugs
- At the start of an interrogation, alert indicators stop flashing for a moment.
- During an interrogation, sometimes cops don't face you.
- Calling Kiki Jenkins or Francis McReary to remove your wanted level doesn't prevent the crime from being added to your warrant. Workaround: toggle this mod off (PageDown + 5) before using the cheat.
- Any cheats for removing your wanted level (including the Kiki/Francis ones) don't reset cop alert levels. Workaround: same as previous.

Incompatibility with Other Mods
- Switching the player model with a trainer causes an error. Workaround: same as previous.
- This mod conflicts with Wanted, Wanted Vehicle, Weapon Arrest, and Drive Felony by BR_Goianiense.
- Ticket by HippieCommunist: Sometimes, cops will ticket you twice (or more) in a row.




------------------------------------------------




CHANGE LOG

 

v1.1 — February 21, 2015
- Your notoriety rating is shown as big stars in the top-right.
. . . . When you've been IDed in a chase, the stars and an eye icon both flash blue.
. . . . During High Alert, the stars and countdown timer both flash red.
. . . . Your vehicle wanted level is shown as stars above the radar.
- Tweaked police behavior:
. . . . Weapons are confiscated when you die in a chase (new INI setting, see below).
. . . . Lose your wanted level even in search radius if unseen for a long time (new INI setting).
. . . . You can surrender during a chase by holding down F1 (new INI setting).
. . . . They call for backup when your wanted level rises.
. . . . When investigating, they just follow and don't interrogate unless fully alerted.
. . . . Investigating cops threaten you when they're nearby.
. . . . Alert level starts draining if you haven't alerted them in a while, unless fully alerted (new INI setting).
. . . . Alert level starts rising after they've investigated for 120 seconds, so you have to lose them (new INI setting).
. . . . Alert indicators on the map are smaller for cops on foot (new INI settings).
. . . . Alert indicator flashes whenever alert level rises, not just when it reaches a new peak.
. . . . After a cop has investigated, his alert level won't drain below 20 (new INI setting).
. . . . They're alerted when they see a nearby cop running after you (new INI setting).
. . . . They're less easily alerted when you're in a crowd (new INI settings).
. . . . They're less easily alerted when you're in cover (new INI setting).
. . . . They're less easily alerted when you run during High Alert.
. . . . They're less easily alerted during High Alert if your notoriety rating is less than the previous wanted level.
. . . . High Alert is cancelled if you save, die, or go to Pay 'n' Spray (due to time passed).
. . . . They're no longer alerted faster when you face them, unless you have 3+ notoriety stars.
. . . . Driving away from investigating cops only alerts them if they're at red alert.
. . . . If you drive fast nearby, they notice traffic crimes they can't see (except heavy car damage).
. . . . They're not alerted by heavy car damage if you're barely moving.
. . . . If your siren is on, traffic crimes are allowed (except hitting peds).
. . . . They're less likely to spot your gun/explosive, except when you're aiming (new INI settings).
. . . . They run slower when investigating (new INI settings).
. . . . When investigating cops lose you, they guess your location multiple times within a wider radius (new INI setting).
. . . . They no longer always run to the nearest sidewalk before giving up investigations.
. . . . Investigating cops in cars don't get out to interrogate until they reach red alert.
. . . . FBI and NOOSE pay less attention to you when your warrant/High Alert level is low (new INI setting).
. . . . Cops pay less attention to you when you wear the LSD uniform (new INI setting).
. . . . Chance of looking at player is based on peak alert level instead of current level.
- Misc
. . . . Added lots of INI settings & tweaked existing ones.
. . . . Empty cars might be reported stolen if the engine was running when you got in.
. . . . Police radio dispatch sounds are enabled when you're in an emergency vehicle.
. . . . The "vehicle identified" message says whether it's for a past crime or new one.
. . . . Bribe text is broken into multiple lines, and the amount of lost notoriety is shown after bribing.
. . . . Added "reloadini" console command.
. . . . Added "togglestats" console command to show various stats for the nearest tracked cop.
. . . . Significant code restructure.
- Fixed bugs:
. . . . You were IDed when resuming a chase from High Alert, even if you weren't IDed in the last chase.
. . . . Police told you to pull over while you were on foot.
. . . . Cops sometimes didn't face you while interrogating.
. . . . Cops sometimes didn't wander after giving up an investigation.
. . . . Cops driving vehicles didn't stop to wait for other cops to get in.
. . . . Script crash when the game deleted a cop right after he spotted your weapon.
. . . . Weapon alert INI settings didn't have any effect.
. . . . Wanted vehicle notification was still shown when disabled in the INI.
. . . . ID messages were still shown when disabled in the INI.
. . . . "Vehicle IDed" message didn't show if the car was already wanted when IDed for a new crime.
. . . . More than the MaxTrackedCops could be tracked sometimes.
. . . . The mod only started tracking new cops within TrackingRange_CopInCar, even if TrackingRange_CopOnFoot was bigger.

 

v1.0.5 — October 8, 2012
- Cops turn their heads to look at you when their alert indicators are green.
- Fixed bug where you were always instantly IDed when chases first started.
- Minor tweak: Decreased default VehicleID_MinSecs INI setting from 7 to 6.

v1.0.4 — October 6, 2012
- Police get alerted when you're driving an emergency vehicle nearby.
. . . . Added "Driving_EmergencyVehicle" INI setting to tweak this.
- You're instantly IDed for new stars in a chase if you were already IDed (reverted from v0.9.9).
. . . . Added "NewStarsInstantID" INI setting — if set to "false", you must be IDed by a new cop or seen by a cop who already IDed you.
- Minor code cleanup.

v1.0.3 — August 2, 2012
- Bribe contact is armed with a Desert Eagle.
- Fixed bugs where...
. . . . OverallAlertModifier INI setting constantly alerted all cops.
. . . . keypresses wouldn't work while holding Shift/Ctrl/Alt.
. . . . invalid weapons, like the parachute in EFLC, caused script crashes.
. . . . disabling all traffic crimes except speeding disabled speeding too.
. . . . speech audio wouldn't work while receiving a ticket (with HippieCommunist's Ticket.cs mod).
- Decreased script file size by 9% (was using the wrong compile mode before).
- Renamed LastBribeKey INI setting to PrevBribeKey.
- Very minor tweaks, optimization, and cleanup.

v1.0.2 — March 25, 2012
- Increased default bribe costs for 4+ stars.
- Fixed bug where increased alert modifiers in the INI could make cops get alerted too fast or too slow.
- Minor tweaks to the INI file, minor code cleanup.

v1.0.1 — January 12, 2012
- Added "mission complete" music when arrest warrant crimes are added/removed (can be disabled in the INI under MESSAGES).
- Increased how much cops are alerted by running, especially during High Alert.
- After bribing, any remaining High Alert time will decrease based on your remaining notoriety, instead of clearing completely.
- Cops mention reckless driving when interrogating near your car (you no longer have to be sitting in the car).
- Changed default value of "IDStatus_NumberOfCops" to false (under MESSAGES).
- Cleaned up keypress handling.
- Fixed bug where cops would steal your car.
- Fixed bug where interrogations would get stuck, breaking other parts of the mod.
- Fixed bug where cops in cars wouldn't reliably inherit the highest alert level among them.

v1.0 — December 31, 2011
- Police can identify vehicles.
- Stolen vehicles have a chance of being reported.
- Cops are alerted when you break certain traffic laws.
- New INI settings, including how much each traffic crime alerts cops.
- You have to meet an NPC to pay bribes.
- Cops are less likely to spot your face/vehicle/weapon at night and/or in rain.
- Disabled the police radio that you hear during chases (can be re-enabled in the INI).
- When a fully alerted cop sees you bump into someone, he'll give you 1 star.
- Within a cop car, all cops inherit the highest alert level among them.
- Alert indicators for cop car passengers are hidden, instead of overlapping the driver's.
- Alert indicators on the map show alert levels in their labels.
- New types of flashes for alert indicators.
- More cop speech:
. . . . comment when you walk into people or you're too close for too long.
. . . . comment when they see you crash your car into another car.
. . . . comment when they've seen reckless driving and pull you out of a car for an interrogation.
. . . . comment when they give up an investigation on foot.
. . . . yell when they're nearby and their indicators are red. (The cop won't flag you for evading police unless he has yelled at you.)
- Workaround for nearsighted cops: Cops in cars and/or investigating have "secondary vision"
. . . . Secondary vision is 360º and its range depends on the cop's alert level.
. . . . There's a chance based on his alert level that he'll see you in this field of view.
- Investigating cops in cars...
. . . . will follow you if you're in a moving car.
. . . . no longer abandon their cars if your car is far away or moving at moderate speed.
- Investigating cops are alerted when you drive away from them (unless driving quite slowly).
- When you break an investigating cop's line of sight, he'll guess which direction you went.
- Improved cop awareness of jumping, running, walking into people, and being near dead people.
- Significantly increased default tracking range setting; made a separate setting for cops in cars.
- Whether guns are "large", "medium" or "small" depends on their dimensions, instead of weapon type.
- Added readme file.
- Lots of fixes and tweaks.

v0.9.9 hotfix — October 8, 2011
- Fixed bug where interrogations wouldn't progress properly.
- Fixed bug where cops would be deleted more often than normal during chases.
- Minor optimization and cleanup.

v0.9.9 — October 7, 2011
- Every consecutive second cop can see face at close range, +3% chance to ID; resets once cop can't see face anymore. (Imitates "getting a good look" at the player.)
- If you were IDed and you escape a chase, cops will be alerted easily, and the chase will resume if they become fully alerted. Lasts 1 minute for every star on your warrant.
- Cops now notice when you run near them even if they can't see you.
- When you've been IDed and earn additional stars in a chase, you're no longer immediately IDed for the new stars. Now you must be IDed by a new cop or seen by a cop who already IDed you.
- Cops who are down but not dead can now ID you.
- Cops who have died are no longer counted as having IDed you.
- Added "IdentifyChanceModifier" INI setting — changes how likely cops are to identify you.
- Added several INI options for tweaking messages.
- Replaced "ShowNotifications" option with separate options for "identified" and "crime added" messages.
- Decreased max bribe cost to $999,999,999 (because that's the max that you can carry).
- Increased default bribe costs for 3+ stars.
- Increased default MaxTrackedCops from 20 to 25.
- Improved cop tracking (several fixes and tweaks).
- Improved cop tailing during investigation (more fixes and tweaks).
- Improved compatibility with Ticket mod by HippieCommunist.
- Fixed occasional "NullReferenceException" and "NonExistingObjectException" script crashes.
- Fixed major bug in calculation of cops' chance to ID.
- Lots of minor fixes and tweaks, and a few optimizations.

v0.9.8 — September 6, 2011
- Renamed the mod from "Criminal Record" to the more accurate name "Arrest Warrant".
- Alert indicators now flash every time a cop's peak alert level gets higher.
- Cops are now alerted when they see you climb, and sometimes when you jump.
- Cops will start getting alerted if you're close to them for a long time.
- If a cop can see you and has been fully alerted for several seconds, you'll get 1 star.
- Added "MaxTrackedCops" INI setting to avoid a noticeable performance impact.
- Added "ShowNotifications" INI setting to disable "crime added to warrant" messages.
- Workaround "fix" for some cops starting to chase an NPC and then immediately stopping.
- Various tweaks, fixes and cleanup.

v0.9.7 — August 28, 2011
- Cops are now alerted when you bump into people. More so for bumping cops, especially for the cop being bumped.
- Cops are also alerted when you're near a dead or dying person.
- Cops are also alerted when you stand face-to-face very close.
- Fixed several bugs affecting investigating cops.
- If your notoriety is high and a cop has investigated you for 90 seconds (not counting when he can't see you), he'll start getting alerted faster.
- Decreased the range in which cops can recognize you when fully alerted, especially with lower notoriety.
- Now investigating cops always move faster while walking, and they jog when they lose you. Removed MoveFasterWhileInvestigating INI setting.
- Added AlertModifier INI setting, to increase/decrease how much cops are alerted per second.
- Cop indicators are now labeled "Cop" on the map, instead of "Enemy".
- Minor tweaks, fixes and cleanup.

v0.9.6 hotfix — July 26, 2011
- Fixed bug where cop deletion would be prevented after an interrogation, even if PreventCopDeletion was set to false.
- Fixed bug with older GTA4 patches where cops would shoot at the player with only 1 star, or even when not wanted.
- Fixed bug where escaping after being identified would immediately make the player wanted again.
- Minor fixes and tweaks.

v0.9.6 — July 25, 2011
- Partially fixed major bug where cops could be deleted by the game when off-screen. Cops in cars/standing around can still be deleted.
- Fixed major bug where cops would repeatedly identify the player, quickly giving massive notoriety.
- Increased how much fast movement alerts cops, and how fast cops regain their peak alert level.
- Increased default cop tracking range by 33%.
- Made a separate INI setting for whether weapons alert cops (formerly included in "WeaponsAreIllegal").
- Minor fixes and tweaks.

v0.9.5 — July 22, 2011
- Added INI file for keys, bribe costs, and other settings.
- Now only the knife and bat will alert cops faster.
- For guns, grenades, and molotovs, now there's a chance the cops will notice the weapon (like how they identify your face) and give you 1 star.
- Fixed bug where cop alert levels wouldn't drain after giving up an investigation.
- Compiled script and changed save file to CriminalRecord.dat.
- Minor tweaks and cleanup.

v0.9.4 — July 19, 2011
- Offenses are now added to your record as soon as you're identified, and the Notoriety value is shown.
- Fixed bug where earning more stars after initially being identified wouldn't increase notoriety.
- Significantly increased bribe costs for 2+ stars, and increased notoriety value of 3-star offenses.
- Cops are alerted much faster when they see you holding a weapon, especially a large weapon.
- Tweaked how fast cops regain their peak alert level after losing you and then seeing you again.
- If you escape after being identified, the cops who identified you are alerted faster if they see you again.
- Improved compatibility with Prison Break by HippieCommunist: Fixed bugs where 4-star offenses were wrongly added to criminal record while wearing prison uniform, and where instantly earning 4+ stars in any situation would be considered a prison escape.
- Improved compatibility with Ticket by HippieCommunist: Fixed bugs where cops would follow you everywhere after a ticket, and where waiting until an interrogation ended would give you ticket after ticket, potentially for eternity.
- Minor fixes and tweaks.

v0.9.3 — July 12, 2011
- Cops are now tracked and can be alerted even if you have 0 notoriety.
- When an investigating cop loses sight of you, if he still can't see you after 2 seconds, he'll run straight to where you are at that moment, to imitate "guessing" which direction you went after he lost you.
- Decreased chance of being identified by police when farther away.
- Increased range in which cops are tracked.
- Fixed bug where getting into a car and driving away wouldn't fail an interrogation.
- Other minor fixes, tweaks, and cleanup.
- Changed version numbering scheme.

v0.9c — July 10, 2011
- Added little "interrogations" to the end of investigations.
- With a wanted rating of 2 or less, fully alerting cops no longer gives you a wanted level. Instead, they'll just follow until they lose you or you're close enough to interrogate.
- If the police identify you while your wanted level is 1 star and you have a notoriety rating of 2 stars, you will no longer be given 2 stars (because realistically cops wouldn't know your face well enough with that amount of notoriety).
- Cops walk faster while investigating, and fat cops run faster as well.
- If a cop has investigated and lost you, they will quickly regain their previous alert level the next time they see you. (And if they've interrogated you before, the next interrogation will be much shorter.)
- Tweaked how far cops can see and how fast certain situations alert them.
- Alert indicators now show on the map if the cop is in your character's line of sight (360º).
- Fixed bug where not all cops were affected by the script in crowded areas.
- Workaround for bug where the alert meter filled way too fast due to the player velocity being inaccurate. Side effect: Moving fast while not in a vehicle will negate the effect of velocity on alert level.
- Added compatibility for HippieCommunist's Prison Break mod: now when you break out of prison, you'll immediately be identified and notorious. (Note: only works if you set "AlarmWanted" in Prison.ini to at least 4.)
- Improved compatibility for HippieCommunist's Ticket mod: when you pay a ticket, all suspicious cops will have their alert levels reduced to just under the suspicion threshold.
- Minor fixes, optimization, and cleanup.

v0.9b — July 8, 2011
- Fixed bug where breaking an investigating cop's line of sight would make him always go to your last known position, even if he sees you again before he gets there.
- Fixed another bug where an investigating cop would go to a position far away from where he last saw you.
- Added compatibility for HippieCommunist's Ticket script. Offenses aren't added to your record if you pay the fine. If you only have a 1-star notoriety rating, it will be cleared after paying. (NOTE: Only works if your Ticket file name is "ticket.cs".)
- Minor fixes and optimization



If you read all of that, I offer you THIS: cookie.gif

  • Blackbird88, TheFlareEntercounter, Wavesittich and 1 other like this

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#2

Posted 11 July 2011 - 03:01 AM

Significant update in first post... See above for changes in v0.9c.

Unfortunately cops being deleted while off-screen is still a major issue. To programmers, a little more info: I tried setting cops as mission characters, but this cleared their tasks and made them stop acting like cops, e.g. responding to ambient crimes. I couldn't find a fix for this, and I couldn't find any other way to mark peds as needed. Still hoping to find a solution.

WhiteGoblin
  • WhiteGoblin

    I am one with the net

  • Members
  • Joined: 24 Apr 2011

#3

Posted 11 July 2011 - 07:21 AM

Very cool fine sir, very cool. I'm pretty much out of time to game anymore, at least for now. Just maintaining the realism collection is more then my free time at the moment but I have to say I'm very interested in where this goes. Really appreciated your work, it's been nice to see them grow in complexity as you've continued sharing with us. Thank you for everything, I'll be keeping an eye while wishing the best for your continued projects! icon14.gif

sammclean23
  • sammclean23

    Playa

  • Members
  • Joined: 21 Jul 2007

#4

Posted 13 July 2011 - 10:42 AM

Always wanted something like this when playing GTA 4...shame I havent had it installed for a while now sad.gif

Good luck with it though...sounds great so far!

freestyla85
  • freestyla85

    Player Hater

  • Members
  • Joined: 24 Mar 2010

#5

Posted 16 July 2011 - 07:45 AM

thats ambitious but amazing idea!

lolleroz
  • lolleroz

    Homeboy

  • Members
  • Joined: 29 Jul 2010
  • None

#6

Posted 17 July 2011 - 07:48 PM

this mod just proves that you don't have to be zomg god of scripting to make f*cking awesome mod...idea is half of success, so why most of people spend time making dumb firing rockets out of ur ass mods? :S

ikt
  • ikt

    Ghetto Star

  • Members
  • Joined: 02 Oct 2006
  • None

#7

Posted 17 July 2011 - 08:18 PM

QUOTE (AngryAmoeba @ Monday, Jul 11 2011, 05:01)
Significant update in first post... See above for changes in v0.9c.

Unfortunately cops being deleted while off-screen is still a major issue. To programmers, a little more info: I tried setting cops as mission characters, but this cleared their tasks and made them stop acting like cops, e.g. responding to ambient crimes. I couldn't find a fix for this, and I couldn't find any other way to mark peds as needed. Still hoping to find a solution.

When you spawn them, shouldn't they have a 'thing' that tells the script how to deal with them? Doesn't need to be a mission ped.
In ScriptHook it uses the native NATIVE_CREATE_CHAR

static void CreateChar(u32 type, eModel model, f32 x, f32 y, f32 z, Ped *pPed, b8 unknownTrue) { NativeInvoke::Invoke<NATIVE_CREATE_CHAR, ScriptVoid>(type, model, x, y, z, pPed, unknownTrue); }

The bold ones, doesn't DotNet return them?

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#8

Posted 17 July 2011 - 11:02 PM Edited by AngryAmoeba, 17 July 2011 - 11:07 PM.

QUOTE (ikt @ Sunday, Jul 17 2011, 14:18)
QUOTE (AngryAmoeba @ Monday, Jul 11 2011, 05:01)
Significant update in first post... See above for changes in v0.9c.

Unfortunately cops being deleted while off-screen is still a major issue. To programmers, a little more info: I tried setting cops as mission characters, but this cleared their tasks and made them stop acting like cops, e.g. responding to ambient crimes. I couldn't find a fix for this, and I couldn't find any other way to mark peds as needed. Still hoping to find a solution.

When you spawn them, shouldn't they have a 'thing' that tells the script how to deal with them? Doesn't need to be a mission ped.
In ScriptHook it uses the native NATIVE_CREATE_CHAR

static void CreateChar(u32 type, eModel model, f32 x, f32 y, f32 z, Ped *pPed, b8 unknownTrue) { NativeInvoke::Invoke<NATIVE_CREATE_CHAR, ScriptVoid>(type, model, x, y, z, pPed, unknownTrue); }

The bold ones, doesn't DotNet return them?

I don't create any peds, I just keep track of the cops that are created by the game. smile.gif

------

Side note: in the next version (0.9.4), I've fixed all known compatibility issues with HippieCommunist's Prison Break and Ticket mods. They tie into this mod really well. I'd like to release the update right now, but I broke my GTA4 install a couple days ago and haven't had time to fix it! I don't want to release it until I can test and make sure it isn't broken.

lolleroz
  • lolleroz

    Homeboy

  • Members
  • Joined: 29 Jul 2010
  • None

#9

Posted 19 July 2011 - 11:03 AM

I just realised the mod doesn't work for me, lol. I have about 40 scripts running, along with all of your mods, and this one just doesn't want to load, the bastard. I tried to remove all the scripts except for yours, and the only thing what happened was the script not being readed by scripthook again - I typed reloadscripts and it didn't say your script was loaded. Num 0 doesn't do anything

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#10

Posted 19 July 2011 - 07:04 PM

Can you post your ScriptHookDotNet.log with all scripts removed except this one?

lolleroz
  • lolleroz

    Homeboy

  • Members
  • Joined: 29 Jul 2010
  • None

#11

Posted 19 July 2011 - 07:23 PM Edited by lolleroz, 19 July 2011 - 07:47 PM.


2011-07-19 9:19:17 p.m. - Initializing ScriptHookDotNet v1.7.1.4 BETA (GTA IV version 1.0.7.0)
2011-07-19 9:20:52 p.m. - Direct3D device created!

2011-07-19 9:20:56 p.m. - SEARCHING FOR SCRIPTS ...
2011-07-19 9:20:56 p.m. - Loading Dynamic scriptfile 'scripts \ CriminalRecord.cs' ...
2011-07-19 9:21:00 p.m. - 6 Errors in script 'D: \ Games \ IV \ Grand Theft Auto IV \ scripts \ CriminalRecord.cs':
In Line 524: The variable 'ex' is declared but not used.
In Line 525: The variable 'ex' is declared but not used.
In Line 526: The variable 'ex' is declared but not used.
In Line 620: The variable 'ex' is declared but not used.
In Line 621: The variable 'ex' is declared but not used.
In Line 429: Can not find the type name or namespace 'NonExistingObjectException "(if there is no shortage of the" using "or appeal to the set?).

2011-07-19 9:21:00 p.m. - DONE! DotNet No script found!
2011-07-19 9:21:01 p.m. - Error During GetPhoneNumber (Phone checks will be disabled):
System.Exception: Accessing Globals failed! Invalid Memory Address!
at unmanaged.MemoryAccess.GetGlobalAddress (Int32 index)
at unmanaged.MemoryAccess.GetPhoneNumber ()
at GTA.NetHook.CheckPhone ()

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#12

Posted 19 July 2011 - 08:02 PM Edited by AngryAmoeba, 19 July 2011 - 08:09 PM.

A newer .NET scripthook is needed. I think v1.7.1.5 should be okay, but I'd recommend the latest version, v1.7.1.7.

lolleroz
  • lolleroz

    Homeboy

  • Members
  • Joined: 29 Jul 2010
  • None

#13

Posted 19 July 2011 - 08:07 PM

I'll just go and download the newest version, note that I suck at searching so if you're reading this, if you have a link under your hand that would be appreciated. tounge.gif

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#14

Posted 19 July 2011 - 08:10 PM

There's a link to the scripthook thread in the first post, under "how to install".

But I'll put it here too, for your convenience. tounge.gif

http://www.gtaforums...howtopic=392325

lolleroz
  • lolleroz

    Homeboy

  • Members
  • Joined: 29 Jul 2010
  • None

#15

Posted 19 July 2011 - 08:20 PM

That's odd, cause I already had the same packages installed e_e
I'll reinstall and tell you if it works, thanks

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#16

Posted 20 July 2011 - 02:49 AM

New version in first post...

Changes in v0.9.4
- Offenses are now added to your record as soon as you're identified, and the Notoriety value is shown.
- Fixed bug where earning more stars after initially being identified wouldn't increase notoriety.
- Significantly increased bribe costs for 2+ stars, and increased notoriety value of 3-star offenses.
- Cops are alerted much faster when they see you holding a weapon, especially a large weapon.
- Tweaked how fast cops regain their peak alert level after losing you and then seeing you again.
- If you escape after being identified, the cops who identified you are alerted faster if they see you again.
- Improved compatibility with Prison Break by HippieCommunist: Fixed bugs where 4-star offenses were wrongly added to criminal record while wearing prison uniform, and where instantly earning 4+ stars in any situation would be considered a prison escape.
- Improved compatibility with Ticket by HippieCommunist: Fixed bugs where cops would follow you everywhere after a ticket, and where waiting until an interrogation ended would give you ticket after ticket, potentially for eternity.
- Minor fixes and tweaks.

unopieceo
  • unopieceo

    Turdler Durpden

  • $outh $ide Hoodz
  • Joined: 21 Jun 2005
  • None
  • Contribution Award [Mods]
    Best Vehicle 2012 [HD GTA Cars]

#17

Posted 20 July 2011 - 03:32 AM

Awesome mod icon14.gif once you gets the few bugs left it will be great. I never liked IVs original wanted level system.

lolleroz
  • lolleroz

    Homeboy

  • Members
  • Joined: 29 Jul 2010
  • None

#18

Posted 20 July 2011 - 09:13 AM

f*ck my life, I have :
http://www.microsoft...ang=en&id=17718
http://www.microsoft...lang=en&id=5555
and it still doesn't work (same error as b4), seriously :<

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#19

Posted 20 July 2011 - 06:01 PM

@OnePiece: Thanks! biggrin.gif

@lolleroz: So your scripthook log still says you're using v1.7.1.4? Or does it say 1.7.1.7 now, but still gives the error about "NonExistingObjectException"?

lolleroz
  • lolleroz

    Homeboy

  • Members
  • Joined: 29 Jul 2010
  • None

#20

Posted 20 July 2011 - 07:20 PM Edited by lolleroz, 20 July 2011 - 09:31 PM.

I don't understand, it still says I'm using 1.7.1.4 instead of 1.7.1.7, but I installed everything that was needed to, I'll re-download scripthook and see if it works. The error is the same.
Sorry for my dumbness, everytime i extracted new scripthook into my game folder, it created a new one thus it never replaced the files...*facepalm*
it works like a charm, ill give some feedback later

Prof_Farnsworth
  • Prof_Farnsworth

    Ambient Modder

  • Members
  • Joined: 25 Feb 2011

#21

Posted 21 July 2011 - 11:33 AM

WOW, been gone a while and seems I've missed some wicked SH*T. This looks terrific Angry. Can't wait to try it!

CK-shit
  • CK-shit

    6 craccin 5 slaccin, slobk187 4 lyfe

  • BUSTED!
  • Joined: 26 Feb 2010

#22

Posted 21 July 2011 - 12:15 PM

can u make it for San andreas it so damn real..
well my computer is not capable of running gta4 thats why i m requesting it
anyways..gr8 mod and u rocc icon14.gif cookie.gif cookie.gif

lolleroz
  • lolleroz

    Homeboy

  • Members
  • Joined: 29 Jul 2010
  • None

#23

Posted 21 July 2011 - 02:20 PM

QUOTE (CK-sh*t @ Thursday, Jul 21 2011, 12:15)
can u make it for San andreas it so damn real..
well my computer is not capable of running gta4 thats why i m requesting it
anyways..gr8 mod and u rocc icon14.gif cookie.gif cookie.gif

do you expect a .net scripter to install SA on his PC, learn coding in CLEO, and make the same mod from the scratch?...

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#24

Posted 22 July 2011 - 01:59 AM Edited by AngryAmoeba, 22 July 2011 - 06:39 AM.

QUOTE (lolleroz @ Thursday, Jul 21 2011, 08:20)
QUOTE (CK-sh*t @ Thursday, Jul 21 2011, 12:15)
can u make it for San andreas it so damn real..
well my computer is not capable of running gta4 thats why i m requesting it
anyways..gr8 mod and u rocc  icon14.gif cookie.gif   cookie.gif

do you expect a .net scripter to install SA on his PC, learn coding in CLEO, and make the same mod from the scratch?...

That's sort of what I was thinking... I don't own San Andreas and don't know how to mod it. And this mod is stupidly complex. It's been a real bitch to code. tounge.gif

Anyway, new version! Now with INI goodness.

Changes in v0.9.5
- Added INI file for keys, bribe costs, and other settings.
- Now only the knife and bat will alert cops faster.
- For guns, grenades, and molotovs, now there's a chance the cops will notice the weapon (like how they identify your face) and give you 1 star. This feature is incompatible with Weapon Arrest by BR_Goianiense, and can be disabled in the INI.
- Fixed bug where cop alert levels wouldn't drain after giving up an investigation.
- Compiled script and changed save file to CriminalRecord.dat.
- Minor tweaks and cleanup.

Edit: Ninja'd in a couple more changes before anyone downloaded... biggrin.gif

lolleroz
  • lolleroz

    Homeboy

  • Members
  • Joined: 29 Jul 2010
  • None

#25

Posted 22 July 2011 - 07:19 PM

Awesome!
Btw just wondering, remember your weaponweight mod? With the coding capabilities you have now, how about updating it so we can store guns in our houses? (The gun info would be saved in a text file or something)
Like, you have 500 rounds of M4
You press a random key to open small menu when in a safehouse
Store weapon:
Pistol - 200
M4 - 500
you scroll down using the Num keys, and press 5 while being on 'M4- 500', the weapon is stored and text file is altered so the game remembers about it incase you save your game.

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#26

Posted 26 July 2011 - 05:41 AM

QUOTE (lolleroz @ Friday, Jul 22 2011, 13:19)
Awesome!
Btw just wondering, remember your weaponweight mod? With the coding capabilities you have now, how about updating it so we can store guns in our houses? (The gun info would be saved in a text file or something)

I might be able to do something like that, in the future. But for now, have you tried the version of Weapon Weight where you can drop weapon pickups? It's a bit buggy, but it works well if you're careful to avoid the bugs.

Also: new version in first post!

I apologize for the last version. It had debug text that wasn't supposed to be there. But this new version mostly fixes the problem with cops being deleted, so I'm happy about that.


Changes in v0.9.6
- Partially fixed major bug where cops could be deleted by the game when off-screen. Cops in cars/standing around can still be deleted. (Added an INI option for this, because it introduces a new bug. See below.)
- Fixed major bug where cops would repeatedly identify the player, quickly giving massive notoriety.
- Increased how much fast movement alerts cops, and how fast cops regain their peak alert level.
- Increased default cop tracking range by 33%.
- Made a separate INI setting for whether weapons alert cops (formerly included in "WeaponsAreIllegal").
- Guns & explosives can now alert cops as well as be spotted for 1 star, depending on your INI settings.
- Minor fixes and tweaks.

NEW BUG: With GTA4 v1.0.4.0 (and older maybe?), all cops who are walking around will ignore NPC criminals. Workaround: disable PreventCopDeletion in the INI, or toggle the mod off until the NPC criminal is chased away.

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#27

Posted 26 July 2011 - 08:26 PM Edited by AngryAmoeba, 26 July 2011 - 08:38 PM.

Alright, hotfix time. I found some serious bugs... suicidal.gif This script's complexity is killing me.

See the first post for the most up-to-date full package. For just the 0.9.6 hotfix by itself: http://www.mediafire...v9cma62uv6b5nhl


Changes in v0.9.6 hotfix
- Fixed bug where cop deletion would be prevented after an interrogation, even if PreventCopDeletion was set to false.
- Fixed bug with older GTA4 patches where cops would shoot at the player with only 1 star, or even when not wanted.
- Fixed bug where escaping after being identified would immediately make the player wanted again.
- Minor fixes and tweaks.

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#28

Posted 28 August 2011 - 06:41 AM

Another update in the first post.

I made cops a bit more aware. Also tried some new things to fix some bugs, with pretty good success.


Changes in v0.9.7
- Cops are now alerted when you bump into people. More so for bumping cops, especially for the cop being bumped.
- Cops are also alerted when you're near a dead or dying person.
- Cops are also alerted when you stand face-to-face very close.
- Fixed several bugs affecting investigating cops.
- If your notoriety is high and a cop has investigated you for 90 seconds (not counting when he can't see you), he'll start getting alerted faster.
- Decreased the range in which cops can recognize you when fully alerted, especially with lower notoriety.
- Now investigating cops always walk faster and jog when they lose you. Removed MoveFasterWhileInvestigating INI setting.
- Added AlertModifier INI setting, to increase/decrease how much cops are alerted per second.
- Cop indicators are now labeled "Cop" on the map, instead of "Enemy".
- Minor tweaks, fixes and cleanup.

AngryAmoeba
  • AngryAmoeba

    Symbiote

  • Members
  • Joined: 12 Jan 2009

#29

Posted 07 September 2011 - 04:59 AM

Yet another update in the first post.

This time we've got flashing blips, some cop awareness improvements, new INI settings, and a new name for the mod.


Changes in v0.9.8
- Renamed the mod from "Criminal Record" to the more accurate name "Arrest Warrant".
- Alert indicators now flash every time a cop's peak alert level gets higher.
- Cops are now alerted when they see you climb, and sometimes when you jump.
- Cops will start getting alerted if you're close to them for a long time.
- If a cop can see you and has been fully alerted for several seconds, you'll get 1 star.
- Added "MaxTrackedCops" INI setting to avoid a noticeable performance impact.
- Added "ShowNotifications" INI setting to disable "crime added to warrant" messages.
- Workaround "fix" for some cops starting to chase an NPC and then immediately stopping.
- Various tweaks, fixes and cleanup.

The Loot
  • The Loot

    Square Civilian

  • Members
  • Joined: 14 Apr 2010

#30

Posted 27 September 2011 - 09:48 PM

Sounds great, but the mod won't work for me.

2011-09-27 14:41:44 - Initializing ScriptHookDotNet v1.7.1.4 BETA (GTA IV version 1.0.7.0)
2011-09-27 14:42:16 - Direct3D device created!

2011-09-27 14:42:16 - SEARCHING FOR SCRIPTS...
2011-09-27 14:42:16 - Loading scripts in Assembly 'scripts\ArrestWarrant.net.dll' ...
2011-09-27 14:42:16 - ...found script 'ArrestWarrant'!
2011-09-27 14:42:16 - DONE! 1 valid scripts found!

2011-09-27 14:42:16 - STARTING SCRIPTS...
2011-09-27 14:42:16 - Error during GetPhoneNumber (Phone checks will be disabled):
System.Exception: Accessing Globals failed! Invalid Memory Address!
at unmanaged.MemoryAccess.GetGlobalAddress(Int32 index)
at unmanaged.MemoryAccess.GetPhoneNumber()
at GTA.NetHook.CheckPhone()
2011-09-27 14:42:16 - ...successfully started script 'ArrestWarrant'!
2011-09-27 14:42:17 - Error during Tick in script 'ArrestWarrant':
System.TypeLoadException: Could not load type 'GTA.NonExistingObjectException' from assembly 'ScriptHookDotNet, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
at ArrestWarrant.updateCopList()
at ArrestWarrant.ArrestWarrant_Tick(Object sender, EventArgs e)
at GTA.Script.TryTick()
at GTA.Script.DoTick()
at GTA.ScriptThread.OnTick()
2011-09-27 14:42:17 - Error in Thread.Abort:
System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort()
at GTA.NetThread.Abort()
2011-09-27 14:43:33 - Direct3D device lost!




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users