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. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

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

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    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 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 Mods
    10. GTA Vice City

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

      1. Guides & Strategies
      2. Help & Support
      3. GTA 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

Duelist

 

I think you just delete the set_off_gravity,and move it to down and done

Donno, made it from beggining. Somehow it didn't let me to use "else" after argument "if" in function setTime() - I'm nearly sure that was correct, and was supposed to work, but didn't at all. And Ur function was doing something in the background (without any interference from my side), looping or sth - that's why I had fps drop.

 

@Killuminati91

Do u have patch, and are u sure that everything works correctly? (windows apps needed to run GTA, etc) Becouse I've played today for about 4h with this script, and hadn't any problems.

Share this post


Link to post
Share on other sites
Killuminati91

hm yeah, everything works fine without the script. strange

Share this post


Link to post
Share on other sites
Duelist

Yup, as strange as that fps drop for some people and for other not.

Share this post


Link to post
Share on other sites
maxiepaxie
My Very Bullettime Toogleable Script

 

---------- GTA IV Alice "BUllet Time" script example ----------

---------- © HippieCommunist 2008 And Reconstructed By Aceship ----------

-- Bullet time key is Mouse Middle Button

--global variables

PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR, Time = 0

 

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 Bullettime()

if Time == 0 then

  Time = 1

  else

  Time=0

end

PushInt(Time)

CallNative("SET_GRAVITY_OFF")

if Time == 1 then

     PushFloat(0.6)

     CallNative("SET_TIME_SCALE")

     Wait(1000)

     PushFloat(0.3)

     CallNative("SET_TIME_SCALE")

     Wait(3000)

     PushFloat(0.2)

     CallNative("SET_TIME_SCALE")

   end

if Time == 0 then

    PushFloat(0.5)

    CallNative("SET_TIME_SCALE")

    Wait(1000)

    PushFloat(0.75)

    CallNative("SET_TIME_SCALE")

    Wait(1000)

    PushFloat(1.0)

    CallNative("SET_TIME_SCALE")

  end

end

 

function main()

InitScript()

while true do

   if (IsKeyPressed(4) == 1) then

       WaitForPlayerPoolCreation()

       WaitForValidPlayer()

    Bullettime()  

    Wait(1000)

   end  

end

end

 

-- start

main();

 

Press Mmb To Bullet time and press again to normal

 

And Please help me

http://www.gtaforums.com/index.php?showtopic=388226

i want to create text on screen like this

 

weapon spawn

Plasma Bomb

and it would be usefull for bulletime to , so you know now is bullet time or not bullet time,

Maybe Like This

Bullet Time Activated,Shooting Accuracy Are Max, So Shoot Everyone!

 

Display in screen , not anywhere

Hey, this is awesome. What's the variable to change if you want to speed up the bullettime a bit? Say 50% or smth, because right now it's a little too slow. Also, is there a delay on the toggle function? You have to wait about 3 seconds before you can turn it off again.

Share this post


Link to post
Share on other sites
aceship

Maybe its not , but it takes time to make your gta read your script (i think)

Share this post


Link to post
Share on other sites
HippieCommunist

guys ive updated the code so no FPS choppyness anymore!!

 

see updated post #1

Share this post


Link to post
Share on other sites
TiTaN31

what's the build program? Give me link please?

Share this post


Link to post
Share on other sites
HippieCommunist

 

HERE ya go buddy

Share this post


Link to post
Share on other sites
Dweirdo

Just a theory, let us and my friends open a private server, using this bullet time (2 users out of 4 have it), what will happen?

will this affect them? seems insane :S

Share this post


Link to post
Share on other sites
aceship

The Server will crash, after that you will be searched by police and military,Using the Robot to catch you wink.gif

Share this post


Link to post
Share on other sites
iristrauma

Great mod dude cookie.gif , but might I ask for a version that dosent stop after a few seconds, rather have the player decide when to return to normal time..? And a little faster on the slowdown..

 

I am unable to use the alt numeric keys for some reason. They dont work for me for some reason..!

Share this post


Link to post
Share on other sites
P$YCH0

Interesting mod. I have an idea that can enhance it quite significantly. Why not make the use off GTA IV motion bluring?

You might want to add it as this:

 

a) Easy suggestion (can be done 100%): Include a modified visualsettings.dat file (with extreme bluring values) into your mod AND as soon as your script is executed execute the command (keyboard key p) to turn on the motion blur, once the script ends turn it off, also include an IF check if the post processing is allready active.

Negative aspects: people loose the normal function of the post processing.

 

b) Harder suggestion (not sure if this can be done): Execute and call the blur commands (functions) manually.

 

Good luck smile.gif

Share this post


Link to post
Share on other sites
aceship

How To Make your cam blurer and Blurer?

Share this post


Link to post
Share on other sites
polkunus

Is it possible for this to work with the LEFT BUMPER of the xbox360 controller WITHOUT the zero gravity + damage? Sometimes I want the original feel of physics or it gets old. A toggle would also be nice too.

 

Basically what I need is:

 

Leftbumper, slowmotion only, leftbumper normal speed.

 

If it isn't possible with the xbox360 controller, I can just map the key as "w/e".

 

pleaaaasssee...

 

 

Thanks.

Share this post


Link to post
Share on other sites
aceship

Did you use this script in xbox?

Is that even possible?

Do you Know the Virtual key codes of xbox 360?

if you know that, it would be simple

Share this post


Link to post
Share on other sites
polkunus

 

Did you use this script in xbox?

Is that even possible?

Do you Know the Virtual key codes of xbox 360?

if you know that, it would be simple

I don't know so it wouldn't be simple.

 

 

I can just map the keys using a 3rd party program anyway.

 

 

 

I don't have an xbox wtf are you talking about?

Share this post


Link to post
Share on other sites
Dweirdo

 

The Server will crash, after that you will be searched by police and military,Using the Robot to catch you wink.gif

lol, so this is a way to crash servers? how sad, look where we've gone so far :<

PUNKZBUSTER PLZ.

Share this post


Link to post
Share on other sites
HippieCommunist

check out the updated version 2 of my BT script in the first post.

 

much more flexible and cinematic!

(holding tab extends your BT for more time)

Share this post


Link to post
Share on other sites
kieranxp5
Well, for me it did - fps dropped down by about 1/3, so I made my own script. Here it is:

 

 

---------- GTA IV Alice "Bullet Time" script example -------------------- © HippieCommunist 2008 & rebuilded completely by Duelist ------------ Middle mouse button activates and de/ bullet timePLAYER_ID, PLAYER_INDEX, PLAYER_CHAR, TIME = 1function InitScript()Wait(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 setTime()if (TIME == 1) then PushFloat(0.6) CallNative("SET_TIME_SCALE") Wait(1000) PushFloat(0.3) CallNative("SET_TIME_SCALE")endif (TIME == 0) then PushFloat(0.5) CallNative("SET_TIME_SCALE") Wait(1000) PushFloat(1.0) CallNative("SET_TIME_SCALE")endendfunction toggleBulletTime()if (TIME == 0) then 	TIME = 1 else 	TIME = 0endsetTime()endfunction main()InitScript()while true doWaitForPlayerPoolCreation()WaitForValidPlayer()if (IsKeyPressed(4) == 1) then toggleBulletTime()endWait(100)endend-- startmain();

 

It's toggleable by the same button - mouse middle, and doesn't turn off gravity.

Doesn't make me crash, I'm loving this script v. much. Thanks a lot guys. biggrin.gif

Share this post


Link to post
Share on other sites
polkunus

So can someone point for me which one is a script without the zero gravity and stronger bullets? Maybe also a toggle?

Share this post


Link to post
Share on other sites
aceship

polkunus: you dont have xbox but xbox360 controller?

Share this post


Link to post
Share on other sites
tigerx

yes, you can use the xbox360 controller on your pc too.... i don't know why some one would want that.

Share this post


Link to post
Share on other sites
HardRom

 

every1 who had slowdowns should try this version.

Thanks for the update, the new version seems to have no drop in framerate for several minutes (when it does start to chop momentarily, its probably something in my system, not the script). Thanks

 

Is there any way to set momentum in the game? For example, if you jump from the getalife tower to one of the neighbouring buildings you seem to run out of steam about halfway. I've found if you tap the key for the toggle (T in my case, 84) you seem to get a little more momemtum, but sometimes, it will also disable the script.

 

I would appreciate any thoughts and help on this. smile.gif

 

Forgot to mention; thanks for the wonderful script! smile.gif

Edited by HardRom

Share this post


Link to post
Share on other sites
aceship

polkunus: you remap it right, so what your left bumper do?

Share this post


Link to post
Share on other sites
tigerx

can someone plz make version 2 toggable?

Share this post


Link to post
Share on other sites
HardRom

 

can someone plz make version 2 toggable?

Here you go, the one I'm using; T key activates, deactivates

 

---------- GTA IV Alice "BulletTimee" ----------

---------- © HippieCommunist 2008 ----------

-- Modded By HardRom

-- BT key is T

--global variables

PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR, SAVEDONE, TIMER = 0

 

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(84) == 1) then

WaitForPlayerPoolCreation()

WaitForValidPlayer()

if (IsKeyPressed(84) == 1) then

PushInt(1)

CallNative("SET_GRAVITY_OFF")

Wait(100)

PushFloat(0.6)

CallNative("SET_TIME_SCALE")

Wait(1000)

PushFloat(0.3)

CallNative("SET_TIME_SCALE")

end

if (IsKeyPressed(84) == 1) then

WaitForPlayerPoolCreation()

WaitForValidPlayer()

PushFloat(0.6)

CallNative("SET_TIME_SCALE")

PushInt(0)

CallNative("SET_GRAVITY_OFF")

Wait(1000)

PushFloat(0.75)

CallNative("SET_TIME_SCALE")

Wait(1000)

PushFloat(1.0)

CallNative("SET_TIME_SCALE")

end

end

Wait(300)

end

end

 

-- start

main();

 

Share this post


Link to post
Share on other sites
tigerx

thanks, but is that version 2 of the BT script? i have a toggable one right now already, but it's the older version and thus slow down my game a bit.

Share this post


Link to post
Share on other sites
HardRom

Here is the toggle-able version 2. It works, but you press T to activate Y to do the more functions and T again to turn it off... please note that I have had issues with this one, it doesnt seem to want to turn off... any help is appreciated.

 

---------- GTA IV Alice "BulletTimee" ----------

---------- © HippieCommunist 2008 ----------

-- Modified By HardRom

-- Toggle Source credit to AceShip

-- Toggle key is T

-- Shouldnt the name be "BulletTime"?

--global variables

PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR, SAVEDONE, TIMER = 0

 

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 more()

if (IsKeyPressed(89) == 1) then

PushFloat(0.3)

CallNative("SET_TIME_SCALE")

Wait(3000)

else

Wait(100)

end

end

 

function more2()

if (IsKeyPressed(89) == 1) then

PushFloat(0.2)

CallNative("SET_TIME_SCALE")

Wait(10000)

else

Wait(100)

end

end

 

function main()

InitScript()

while true do

if (IsKeyPressed(84) == 1) then

WaitForPlayerPoolCreation()

WaitForValidPlayer()

if (IsKeyPressed(84) == 1) then

PushInt(1)

CallNative("SET_GRAVITY_OFF")

PushFloat(0.6)

CallNative("SET_TIME_SCALE")

Wait(500)

PushFloat(0.4)

CallNative("SET_TIME_SCALE")

Wait(2000)

more()

more()

more()

more2()

more()

end

if (IsKeyPressed(84) == 1) then

WaitForPlayerPoolCreation()

WaitForValidPlayer()

PushFloat(0.6)

CallNative("SET_TIME_SCALE")

Wait(500)

PushInt(0)

CallNative("SET_GRAVITY_OFF")

Wait(500)

PushFloat(1.0)

CallNative("SET_TIME_SCALE")

end

end

Wait(300)

end

end

 

-- start

main();

Edited by HardRom

Share this post


Link to post
Share on other sites
Free_Runner

could someone make a lua for bullettime and jump...the same as this but on diffrent keys and toggelable..like if you press middle mouse button you can jump high but no bullet time...and if you press Tab you turn the gravity back on so you fall down...and the bullet time make toggleable on let's say T so it last how long you want? Please... smile.gif

Share this post


Link to post
Share on other sites
insomniac391

nevermind

Edited by insomniac391

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.