Jump to content

[GTAIV|REL] GravityGun


Recommended Posts

I didnt want to keep updating this in the GTAScript.Net topic, so creating its own topic here.

 

 

This gravity gun can pick up multiple objects at once, and can pickup all object types.

 

 

Requires GTAScript.Net - http://www.gtaforums.com/index.php?showtopic=435532

 

Installation:

Put 'GravityGun.net.dll in your GTAIV\scripts\ directory.

 

Usage:

Equip a pistol (only picks up one object at a time) or a Desert Eagle (picks up everything in area).

Hold RMB to aim, then press & hold MMB to activate GG.

 

 

Download:

bin - http://www.box.net/shared/gggt89smsq

src - http://www.box.net/shared/kttg2d1sdq

 

 

 

 

 

Link to comment
https://gtaforums.com/topic/435833-gtaivrel-gravitygun/
Share on other sites

If you are running logitech setpoint or any other mouse button mapping software then possible you have the MMB (scroll wheel button on my mouse) mapped to another function. Try closing setpoint or whatever mapping software. Also it wont always work first try because of a bug so try pressing MMB a few times.

Link to comment
https://gtaforums.com/topic/435833-gtaivrel-gravitygun/#findComment-1059700389
Share on other sites

Wow lol, this thing is fun. And thanks for helping me get mine working, would never have thought it was my Setpoint settings that was messing it up. LOL And actually for me works every time first time.

 

You still working on this? Like adding and modifiying it? I'd like to request more options. Could you make it possible to change the strength and distance with an ingame menu or with hotkeys? That'd make it a whole lot more fun causing more chaos. I don't know if its possible but I was thinking that with lower strength on the gravity gun like with the deagle it would be nice if it would pick up just like small objects and people but even close to cars not move them. And then when the gravity gun is turned up have it pick up everything.

Link to comment
https://gtaforums.com/topic/435833-gtaivrel-gravitygun/#findComment-1059701156
Share on other sites

 

2009-12-28 15:00:06 - Initializing ScriptHookDotNet v0.893 BETA (GTA IV version 1.0.4.0)

2009-12-28 15:01:46 - Direct3D device created!

2009-12-28 15:01:46 - Error during Direct3D rendering:

                      System.NullReferenceException: Object reference not set to an instance of an object.

                         at GTA.Direct3D.OnRender()

 

2009-12-28 15:01:46 - SEARCHING FOR SCRIPTS...

2009-12-28 15:01:46 - Loading scripts in Assembly 'scripts\GravityGun.Net.dll' ...

2009-12-28 15:01:46 - Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'GravityGun.Net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

                      File name: 'GravityGun.Net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

                         at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)

                         at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)

                         at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

                         at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

                         at System.Reflection.Assembly.Load(String assemblyString)

                         at System.UnitySerializationHolder.GetRealObject(StreamingContext context)

                     

                         at GTA.RemoteScriptDomain.RequestAction(ScriptAction action)

                         at GTA.ScriptDomain.RequestAction(ScriptAction action)

                         at GTA.NetHook.GameReloaded()

                         at StartupThreadC.RunTick(StartupThreadC* )

                     

                      WRN: Assembly binding logging is turned OFF.

                      To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

                      Note: There is some performance penalty associated with assembly bind failure logging.

                      To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

 

Anyone know what i can do to fix this? The game crashes just after i enter gameplay =(

 

I use version 1.0.4.0

 

EDIT: Alright i found the problem. I have to buy the game to make it work. I bought a Xbox 360 just to play this game, and sold the Xbox when the game came out on PC. Now i have ordered it for PC also. God damn this hurts my wallet! This mod is worth more than the game itself. I wanna be Gordon Freeman =)

Edited by Zonked223
Link to comment
https://gtaforums.com/topic/435833-gtaivrel-gravitygun/#findComment-1059708251
Share on other sites

Whoever told you you need a bought copy of the game to run mods is full of sh*t. All mods will work perfectly fine on a cracked copy (i myself have a bought copy, with crack applied). I do however strongly recommend that you purchase a copy, this is the first GTA since 2 that rockstar have bothered to properly support the PC (decent port, numerous patches), so support them so that they will keep supporting us in the future!

 

This mod does not use ScriptHookDotNet, it uses GTAScript.Net - http://www.gtaforums.com/index.php?showtopic=435532 .

 

I dont know why you are crashing, perhaps because you are trying to run ScriptHookDotNet with the latest patch? Possibly because ScriptHookDotNet is trying to load an assembly not intended for it, but i would hope it would handle the exception & just not load that assembly. For help with ScriptHookDotNet post in that topic.

 

Just to repeat myself, this mod does not use ScriptHookDotNet.

Edited by GhostGum
Link to comment
https://gtaforums.com/topic/435833-gtaivrel-gravitygun/#findComment-1059708511
Share on other sites

 

2009.12.28 - 22:49:45 - [Message] GTAScript.log created.2009.12.28 - 22:49:45 - [Message] --------------------2009.12.28 - 22:49:45 - [Message] GTAScript.Net 0.0.1.02009.12.28 - 22:49:45 - [Message] GhostGum - 20092009.12.28 - 22:49:45 - [Message]      -        -     2009.12.28 - 22:49:45 - [Message] GTAIV Script Hook 0.4.02009.12.28 - 22:49:45 - [Message] Copyright © 2009, Aru2009.12.28 - 22:49:45 - [Message]      -        -     2009.12.28 - 22:49:45 - [Message] Grand Theft Auto IV Version1042009.12.28 - 22:49:45 - [Message] Copyright 2008, Rockstar Games2009.12.28 - 22:49:45 - [Message] --------------------2009.12.28 - 22:49:45 - ![Warning]! Unsupported GTA Version!

 

 

Thanks for the help =) I won't cancel my order. I have been playing this since GTA 2 and it's the best series of games i have ever played. And this mod looks epic.

 

As you said, "Unsuportet GTA version" means i have the wrong patch then..

Edited by Zonked223
Link to comment
https://gtaforums.com/topic/435833-gtaivrel-gravitygun/#findComment-1059709000
Share on other sites

Yes, but that warnings just there as a precaution (it will display that for any version except latest (1.0.0.4 or whatever)), it should work fine with 1.0.4.0 so you can ignore that warning.

but cant you make it for C++ Script Hook?

 

I think you will get more downloads if you do or for g4mhook

Link to comment
https://gtaforums.com/topic/435833-gtaivrel-gravitygun/#findComment-1059709640
Share on other sites

  • 2 weeks later...
Murcchachosa
Yes, but that warnings just there as a precaution (it will display that for any version except latest (1.0.0.4 or whatever)), it should work fine with 1.0.4.0 so you can ignore that warning.

Are you serieus with ignoring that warning??

That warning doesnt let us to play the game with the Gravity gun.

Its keeps ***king crash and the GTAScipts.NET is a whore

thats doesnt accept.

 

Man, its sucks.

The other trainer can only pickup objects when you spawned

an object but its worse and stays in air.

The other gravity gun will be never released because of the "beta" stage. (My ass)

 

Link to comment
https://gtaforums.com/topic/435833-gtaivrel-gravitygun/#findComment-1059725463
Share on other sites

  • 2 weeks later...

hi.

 

This should work no troubles with patch 1.0.0.4 & patch 1.0.4.0 (both patch 4 & patch 5). I run patch 4 on my dev machine, and patch 5 on my test machine, it works fine on both for me.

It will only work with latest scripthook version (0.4.0).

It will only work with the latest GTAScript version (0.0.2.0).

 

If you are having trouble getting it to work then post some more info's (such as error messages or contents of log files) & i may be able to help you.

Edited by GhostGum
Link to comment
https://gtaforums.com/topic/435833-gtaivrel-gravitygun/#findComment-1059746861
Share on other sites

Well a while back i was thinking of creating a "force powers" mod, to give niko a bunch of different selectable force powers, such as this gg (but with bare hands), force push, force explosion, forcefield, etc. So if i ever get around to making that then it will supercede this mod.

Link to comment
https://gtaforums.com/topic/435833-gtaivrel-gravitygun/#findComment-1059764408
Share on other sites

  • 2 weeks later...

::EDIT 3:: Ok, nevermind... I see you need to update this script to work with the new .net

 

I havnt updated that script to work with new version of GTAScript, there have been some changes to GTAScript structure that break it. I just tried to update it (should have been a simple 2min job) but for some reason it is randomly freezing when i apply force to objects. I have no idea why, i must have broke something somewhere. But it just seems so random. Its the APPLY_FORCE_TO_OBJECT function that is freezing game, randomly, and i know it is a valid object, and the apply force worked fine on that obj (random obj) for the first few ticks. Got me well confused. Ill have a try at a few theories when im next sobre. Too much to handle ATM.

 

So with the new gtascript.net this GG script just won't work... will you be updating this script to work?? Because I can't download an older version of your .net, I'm sitting on a useless mod sad.gif

Edited by Neverent
Link to comment
https://gtaforums.com/topic/435833-gtaivrel-gravitygun/#findComment-1059788250
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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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