Jump to content

[IV|rel]Two mini mods


HippieCommunist

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
Link to comment
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

Link to comment
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

Link to comment
Share on other sites

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.

Link to comment
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 =]

Link to comment
Share on other sites

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"...

Link to comment
Share on other sites

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

Link to comment
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
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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