sophosuni 0 Posted January 6, 2009 (edited) 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 January 6, 2009 by sophosuni Quote Share this post Link to post Share on other sites
hristi 15 Posted January 9, 2009 can someone plz make version 2 toggable? yeah.. someone please make a toggable version that work perfectly fine. Quote Share this post Link to post Share on other sites
niklz 0 Posted January 10, 2009 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.. Quote Share this post Link to post Share on other sites
xaloundros 0 Posted January 11, 2009 i need help guys,,,when i push the tab..it removes from me I make save that I can it change?please help!!! Quote Share this post Link to post Share on other sites
TPEHAK 0 Posted January 11, 2009 (edited) Hi guys from Mother-Russia!! 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 ---------- 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 January 11, 2009 by TPEHAK Quote Share this post Link to post Share on other sites
Marcin6 14 Posted January 11, 2009 (edited) Button > ? < Edited January 11, 2009 by Marcin6 Quote Share this post Link to post Share on other sites
gta-pilot 0 Posted January 11, 2009 @ above. And is it trogable? Quote Share this post Link to post Share on other sites
TPEHAK 0 Posted January 11, 2009 Button > ? < Activate and deactivate "Matrix Bullet Time" in Middle mouse button Quote Share this post Link to post Share on other sites
Duelist 0 Posted January 12, 2009 Nice copy & paste skills TPEHAK ^^ You could at least give a proper credits Quote Share this post Link to post Share on other sites
TPEHAK 0 Posted January 12, 2009 (edited) Nice copy & paste skills TPEHAK ^^ You could at least give a proper credits Yes, it was based on the algorithms, below given by you. But look, this work wery nice, include On/Off gravity, most laconically and correctly, there is no downturn FPS. And, there just simple code, nothing heavy. Edited January 12, 2009 by TPEHAK Quote Share this post Link to post Share on other sites
Kainc 0 Posted January 15, 2009 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. Quote Share this post Link to post Share on other sites
TPEHAK 0 Posted January 16, 2009 1.Delete ALL old files it mod. 2.Download and install this http://rapidshare.com/files/180784793/Matrix_Bullet_Time.rar Tthis must be workable Quote Share this post Link to post Share on other sites
HellFireXS 0 Posted January 17, 2009 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 ) Thank you. Quote Share this post Link to post Share on other sites
Kainc 0 Posted January 17, 2009 Thanks TPEHAK. This script works but it drops fps even when not turned on. Should this be the "non-heavy", V2? Quote Share this post Link to post Share on other sites
loczek47 0 Posted January 17, 2009 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 ) Thank you. I don't like no-gravity too. Quote Share this post Link to post Share on other sites
thaCURSEDpie 2 Posted January 17, 2009 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!! Quote Share this post Link to post Share on other sites
loczek47 0 Posted January 17, 2009 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 Quote Share this post Link to post Share on other sites
HellFireXS 0 Posted January 17, 2009 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 I havent tried it yet but it looks right, thanks again. Quote Share this post Link to post Share on other sites
Huddwink 0 Posted August 23, 2011 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? Quote Share this post Link to post Share on other sites