Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums! (92,348 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

Sign in to follow this  
HippieCommunist

[IV|rel]Two mini mods

Recommended Posts

HippieCommunist

first - No telepatic Police

 

tired of cops falling from the roof after uve killed only 3 peds?

with this mod u get wanted only if theres actual cop around when makin' the felony (latest update is 0.6)

 

 

  PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR = 0function InitScript() -- blah-blah-blah Wait(10000)endfunction WaitForPlayerPoolCreation() while (IsPlayerPoolCreated() == 0) do   Wait(2000) endendfunction WaitForValidPlayer() PLAYER_CHAR = 0 repeat    CallNative("GET_PLAYER_ID")PLAYER_ID = GetIntResult()if (PLAYER_ID >= 0) then  PushInt(PLAYER_ID)  CallNative("CONVERT_INT_TO_PLAYERINDEX")  PLAYER_INDEX = GetIntResult()  PushInt(PLAYER_INDEX)     PushVarPtr()	  CallNative("GET_PLAYER_CHAR")  PLAYER_CHAR = GetIntParam(1)  if (PLAYER_CHAR <= 0) then    Wait(1000)  end  end  until (PLAYER_CHAR > 0)  end	function SetPlayerProperties()PushFloat(0.6)CallNative("SET_WANTED_MULTIPLIER")endfunction main() InitScript() while true do   WaitForPlayerPoolCreation()   WaitForValidPlayer()    SetPlayerProperties()Wait(3000) end	end-- startmain();

 

 

second - Open/Close car components (no multi-keys or combos)

PgUp - opens hood

PgDn - opens trunk

End - Closes everything

 

 

 PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR, SAVEDONE, PLAYER_CAR = 0function InitScript()-- blah-blah-blahWait(10000)endfunction WaitForPlayerPoolCreation()while (IsPlayerPoolCreated() == 0) do  Wait(2000)endendfunction WaitForValidPlayer()PLAYER_CHAR = 0repeat  CallNative("GET_PLAYER_ID")PLAYER_ID = GetIntResult()if (PLAYER_ID >= 0) then PushInt(PLAYER_ID) CallNative("CONVERT_INT_TO_PLAYERINDEX") PLAYER_INDEX = GetIntResult() PushInt(PLAYER_INDEX)    PushVarPtr() CallNative("GET_PLAYER_CHAR") PLAYER_CHAR = GetIntParam(1) if (PLAYER_CHAR <= 0) then   Wait(1000) end  enduntil (PLAYER_CHAR > 0)  endfunction PlayerIsInCar()PushInt(PLAYER_CHAR)CallNative("IS_CHAR_ON_ANY_BIKE")if (GetIntResult() == 1) thenreturn 0elsePushInt(PLAYER_CHAR)CallNative("IS_CHAR_IN_ANY_HELI")if (GetIntResult() == 1) thenreturn 0elsePushInt(PLAYER_CHAR)CallNative("IS_CHAR_IN_ANY_BOAT")if (GetIntResult() == 1) thenreturn 0elsePushInt(PLAYER_CHAR)CallNative("IS_CHAR_SITTING_IN_ANY_CAR")return GetIntResult()endendendendfunction front() PushInt(PLAYER_CHAR) PushVarPtr() CallNative("GET_CAR_CHAR_IS_USING") PLAYER_CAR = GetIntParam(1)PushInt(PLAYER_CAR)PushInt(5)CallNative("OPEN_CAR_DOOR")endfunction back() PushInt(PLAYER_CHAR) PushVarPtr() CallNative("GET_CAR_CHAR_IS_USING") PLAYER_CAR = GetIntParam(1)PushInt(PLAYER_CAR)PushInt(4)CallNative("OPEN_CAR_DOOR")endfunction close()PushInt(PLAYER_CAR)CallNative("CLOSE_ALL_CAR_DOORS")endfunction main()InitScript()while true do WaitForPlayerPoolCreation()    WaitForValidPlayer()    if (IsKeyPressed(34) == 1) then     if (PlayerIsInCar() == 1) thenfront()Wait(300)endend    if (IsKeyPressed(33) == 1) then     if (PlayerIsInCar() == 1) thenback()Wait(300)endend    if (IsKeyPressed(35) == 1) then     if (PlayerIsInCar() == 1) thenclose()Wait(300)endendWait(300)endend-- startmain();

 

 

*this one is rock study and bullet proof ^^

 

feedback ppl! that_guy2057_evilgrin.gif

Edited by HippieCommunist

Share this post


Link to post
Share on other sites
Brayzie

Thanks man, but what file should I edit?

(I'm talking about "No telepatic Police")

Share this post


Link to post
Share on other sites
HippieCommunist

oh i did forgot to mention it was LUA based mod blush.gif

install Alice and create a blank file in Alice folder, copy each script to file and save as .LUA extension

 

sry...

opening the hood helps avoid windshield bullets lol.gif try that aswell

Share this post


Link to post
Share on other sites
Intosia

Nice, always wondered why nobody used teh Multiplier smile.gif

Share this post


Link to post
Share on other sites
HippieCommunist

lol when set to 0.3 it took me an hour to get 5 stars... ^_^

 

i think its balanced on 0.4/0.55

Share this post


Link to post
Share on other sites
The0

Cool, I'll try the hood one when I get home.

 

The police one I would get if I hadn't realized something a while ago. I also thought it was weird that the cops seemed telepathic at one point, until I saw a ped dial 911 after I killed his friend and I realized "they're not psycic, people are just calling 911 in response to your actions." I, for one, think that is really cool and I wouldn't want to change it.

Share this post


Link to post
Share on other sites
187monk

Nice Thanks ! biggrin.gif

Share this post


Link to post
Share on other sites
Killuminati91

2nd one = critical error for me

Share this post


Link to post
Share on other sites
HippieCommunist

yeah i need to add another IF for damaged or not dont feel like... im working on 1st person mod =]

Share this post


Link to post
Share on other sites
topeira

hippie, can u explain please what is really happening (what's changed) with the cops mod?

 

how did the cops used to know where u r firing from in the stock files?

 

what did u change? how is their behavior different now? did they have a spawning radius around your location which u removed?

 

also, what is this multiplaier u where talking about? 0.3? 0.4\0.55? what's that?

 

im jsut curious on what to expect from this mod or even from the stock police "crime recognition behavior"...

Share this post


Link to post
Share on other sites
HippieCommunist
PushFloat(0.6)

CallNative("SET_WANTED_MULTIPLIER")

this one...

Share this post


Link to post
Share on other sites
Intosia
Cool, I'll try the hood one when I get home.

 

The police one I would get if I hadn't realized something a while ago. I also thought it was weird that the cops seemed telepathic at one point, until I saw a ped dial 911 after I killed his friend and I realized "they're not psycic, people are just calling 911 in response to your actions." I, for one, think that is really cool and I wouldn't want to change it.

True, and makes sence knowing the gametimes is faster. Although, i dont like it... the gametime is a pain in the ass to sometimes... To slower game time and slower cop responces would be cool smile.gif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.