Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. DLC
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
      7. The Diamond Casino Heist
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

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

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

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

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

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

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

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. 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. 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. News

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
HippieCommunist

[IV]Bullet Time

Recommended Posts

sophosuni

Have been playing around with a few versions of the script to try and get v2 toggleable on the middle mouse button with it only using bullettime. I thought I had it as it was toggleable and the gravity wasn't changed when in use but then a couple of minutes later when I jumped he just kept on flying with the script on or off. Then the game crashed.

 

Any help would be appreciated.

 

function InitScript()

-- blah-blah-blah

Wait(10000)

end

 

function WaitForPlayerPoolCreation()

while (IsPlayerPoolCreated() == 0) do

Wait(2000)

end

end

 

function 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 main()

InitScript()

while true do

if (IsKeyPressed(4) == 1) then

WaitForPlayerPoolCreation()

WaitForValidPlayer()

if (IsKeyPressed(4) == 1) then

PushInt(1)

PushFloat(0.6)

CallNative("SET_TIME_SCALE")

Wait(500)

CallNative("SET_TIME_SCALE")

Wait(500)

PushFloat(0.4)

CallNative("SET_TIME_SCALE")

end

if (IsKeyPressed(4) == 1) then

WaitForPlayerPoolCreation()

WaitForValidPlayer()

PushFloat(0.6)

CallNative("SET_TIME_SCALE")

Wait(500)

PushInt(0)

CallNative("SET_TIME_SCALE")

Wait(500)

PushFloat(1.0)

CallNative("SET_TIME_SCALE")

end

end

Wait(300)

end

end

 

-- start

main();

 

 

Thanks

Edited by sophosuni

Share this post


Link to post
Share on other sites
hristi
can someone plz make version 2 toggable?

yeah.. someone please make a toggable version that work perfectly fine. biggrin.gif

Share this post


Link to post
Share on other sites
niklz

Sorry if this has been posted, but has anyone made a version that doesn't edit the game. I'd much rather have a BT mod that is still vanilla gta iv, just in slow-mo..

Share this post


Link to post
Share on other sites
xaloundros

i need help guys,,,when i push the tab..it removes from me I make save that I can it change?please help!!!

Share this post


Link to post
Share on other sites
TPEHAK

Hi guys from Mother-Russia!! biggrin.gif

 

This is my code - I do this most optimal and convenient, there is no downturn FPS. Have fun!!!

If you want installing this with ALICE - download this http://rapidshare.com/files/180784793/Matrix_Bullet_Time.rar

 

Activate and deactivate "Matrix Bullet Time" in Middle mouse button

 

It is pleasant to you alien.gif

 

 

 

---------- GTA IV Alice "Matrix Bullet Time" script example ----------

---------- By TPEHAK from RUSSIA with LOVE ----------

-- Middle mouse button activates and de/ bullet time

 

PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR, TIME = 0

 

function InitScript()

Wait(10000)

end

 

function WaitForPlayerPoolCreation()

while (IsPlayerPoolCreated() == 0) do

Wait(2000)

end

end

 

function 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 setTime()

if (TIME == 1) then

PushInt(1)

CallNative("SET_GRAVITY_OFF")

PushFloat(0.8)

CallNative("SET_TIME_SCALE")

Wait(200)

PushFloat(0.6)

CallNative("SET_TIME_SCALE")

Wait(200)

PushFloat(0.4)

CallNative("SET_TIME_SCALE")

Wait(200)

PushFloat(0.2)

CallNative("SET_TIME_SCALE")

end

if (TIME == 0) then

PushFloat(0.4)

CallNative("SET_TIME_SCALE")

Wait(200)

PushFloat(0.6)

CallNative("SET_TIME_SCALE")

Wait(200)

PushInt(0)

CallNative("SET_GRAVITY_OFF")

PushFloat(0.8)

CallNative("SET_TIME_SCALE")

Wait(200)

PushFloat(1.0)

CallNative("SET_TIME_SCALE")

end

end

 

function toggleBulletTime()

if (TIME == 0) then

TIME = 1

else

TIME = 0

end

setTime()

end

 

function main()

InitScript()

while true do

WaitForPlayerPoolCreation()

WaitForValidPlayer()

if (IsKeyPressed(4) == 1) then

toggleBulletTime()

end

Wait(100)

end

end

 

-- start

main();

 

Edited by TPEHAK

Share this post


Link to post
Share on other sites
Marcin6

 

Button > ? <

Edited by Marcin6

Share this post


Link to post
Share on other sites
gta-pilot

@ above.

And is it trogable?

Share this post


Link to post
Share on other sites
TPEHAK
Button > ? <

Activate and deactivate "Matrix Bullet Time" in Middle mouse button

Share this post


Link to post
Share on other sites
Kainc

Hi there. First version of bullet-time worked, but the FPS dropped quite a bit. Now I've tried to copy-paste the code of V2 but while starting the game, error box appears saying something about .lua error 1 and the script won't work ingame. I heard it means that there's something wrong with the code, but I've pasted about 4 different codes from this topic and error appears every time. I have used notepad to paste and save the code as .lua. I have tried this script with, for example, mmb-activation and I'm positive there's no binded action for mmb ingame. If some of you could upload a .lua file WITH gravity and time altered, I'd appreciate.

Share this post


Link to post
Share on other sites
HellFireXS

V2 by HippieCommunist is perfect I would really like V2 without the change to gravity please, I tried to delete CallNative("SET_GRAVITY_OFF") but all that did was mess up the script and stop it from turning off.

 

I like holding down a key for V2 to work and it shuts off when I let go (a few seconds after that but that’s fine)

 

I don’t want a cheap knock off (which I see a lot of here) and I have gone through all posts and the ones with normal gravity don't seem based on V2, if you could tell me how to do the edit myself or just repost V2 with no gravity I would be very happy! (Especially if it was from HippieCommunist himself biggrin.gif)

 

Thank you.

Share this post


Link to post
Share on other sites
Kainc

Thanks TPEHAK. This script works but it drops fps even when not turned on. Should this be the "non-heavy", V2?

Share this post


Link to post
Share on other sites
loczek47
V2 by HippieCommunist is perfect I would really like V2 without the change to gravity please, I tried to delete CallNative("SET_GRAVITY_OFF") but all that did was mess up the script and stop it from turning off.

 

I like holding down a key for V2 to work and it shuts off when I let go (a few seconds after that but that�s fine)

 

I don�t want a cheap knock off (which I see a lot of here) and I have gone through all posts and the ones with normal gravity don't seem based on V2, if you could tell me how to do the edit myself or just repost V2 with no gravity I would be very happy! (Especially if it was from HippieCommunist himself biggrin.gif)

 

Thank you.

I don't like no-gravity too.

Share this post


Link to post
Share on other sites
thaCURSEDpie

Here is the script without the gravity change:

 

---------- GTA IV Alice "BulletTimee" (standard gravity)  -------------------- © HippieCommunist 2008 ------------ BT key is TAB--global variablesPLAYER_ID, PLAYER_INDEX, PLAYER_CHAR, SAVEDONE, TIMER = 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) thenPushInt(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 more()if (IsKeyPressed(9) == 1) thenPushFloat(0.3)CallNative("SET_TIME_SCALE")Wait(3000)elseWait(100)endendfunction more2()if (IsKeyPressed(9) == 1) thenPushFloat(0.2)CallNative("SET_TIME_SCALE")Wait(10000)elseWait(100)endendfunction main()InitScript()while true do if (IsKeyPressed(9) == 1) thenWaitForPlayerPoolCreation()   WaitForValidPlayer()   if (IsKeyPressed(9) == 1) thenPushFloat(0.6)CallNative("SET_TIME_SCALE")Wait(500)PushFloat(0.4)CallNative("SET_TIME_SCALE")Wait(2000)more()more()more()more2()more()PushFloat(0.6)CallNative("SET_TIME_SCALE")Wait(500)PushFloat(1.0)CallNative("SET_TIME_SCALE")end end  Wait(300)endend-- startmain();

 

 

I didn't change anything else. All credits go to HippieCommunist!!

Share this post


Link to post
Share on other sites
loczek47
Here is the script without the gravity change:

 

---------- GTA IV Alice "BulletTimee" (standard gravity)  -------------------- © HippieCommunist 2008 ------------ BT key is TAB--global variablesPLAYER_ID, PLAYER_INDEX, PLAYER_CHAR, SAVEDONE, TIMER = 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) thenPushInt(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 more()if (IsKeyPressed(9) == 1) thenPushFloat(0.3)CallNative("SET_TIME_SCALE")Wait(3000)elseWait(100)endendfunction more2()if (IsKeyPressed(9) == 1) thenPushFloat(0.2)CallNative("SET_TIME_SCALE")Wait(10000)elseWait(100)endendfunction main()InitScript()while true do if (IsKeyPressed(9) == 1) thenWaitForPlayerPoolCreation()   WaitForValidPlayer()   if (IsKeyPressed(9) == 1) thenPushFloat(0.6)CallNative("SET_TIME_SCALE")Wait(500)PushFloat(0.4)CallNative("SET_TIME_SCALE")Wait(2000)more()more()more()more2()more()PushFloat(0.6)CallNative("SET_TIME_SCALE")Wait(500)PushFloat(1.0)CallNative("SET_TIME_SCALE")end end  Wait(300)endend-- startmain();

 

 

I didn't change anything else. All credits go to HippieCommunist!!

But I don't want it in .lua cuz Alice slows my game , I want .asi version without no-gravity sad.gif

Share this post


Link to post
Share on other sites
HellFireXS
Here is the script without the gravity change:

 

---------- GTA IV Alice "BulletTimee" (standard gravity)  -------------------- © HippieCommunist 2008 ------------ BT key is TAB--global variablesPLAYER_ID, PLAYER_INDEX, PLAYER_CHAR, SAVEDONE, TIMER = 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) thenPushInt(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 more()if (IsKeyPressed(9) == 1) thenPushFloat(0.3)CallNative("SET_TIME_SCALE")Wait(3000)elseWait(100)endendfunction more2()if (IsKeyPressed(9) == 1) thenPushFloat(0.2)CallNative("SET_TIME_SCALE")Wait(10000)elseWait(100)endendfunction main()InitScript()while true do if (IsKeyPressed(9) == 1) thenWaitForPlayerPoolCreation()   WaitForValidPlayer()   if (IsKeyPressed(9) == 1) thenPushFloat(0.6)CallNative("SET_TIME_SCALE")Wait(500)PushFloat(0.4)CallNative("SET_TIME_SCALE")Wait(2000)more()more()more()more2()more()PushFloat(0.6)CallNative("SET_TIME_SCALE")Wait(500)PushFloat(1.0)CallNative("SET_TIME_SCALE")end end  Wait(300)endend-- startmain();

 

 

I didn't change anything else. All credits go to HippieCommunist!!

LUA if perfect for me thank you so mutch biggrin.gif

 

I havent tried it yet but it looks right, thanks again.

Share this post


Link to post
Share on other sites
Huddwink

Thanks for this mod, it's amazing. Is there anyway of assigning BT to my 360 controller, so for example "back" button could be BT?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 3 Users Currently Viewing
    0 members, 0 Anonymous, 3 Guests

×
×
  • Create New...

Important Information

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