Friday, December 27, 2013

Minigun - V Style

Minigun weapon inspired by GTA V with spinning barrel.


Download

The weapon model was made by me, so, it's not that beautiful thing but is enough to be used in a first release.

***
if you want share or make videos of this mod, please use the following link as reference in description: 
http://gtaxscripting.blogspot.com/2013/12/MinigunVStyle.html

Thanks
***

Installation: This mod uses OpenIV Package Installer, see how to install here


Hotkeys

You need to obtain the gun stealing it from the cops, this is the location:


After stealing the gun it will be available in the normal weapon selection, via hotkey 0 (number zero) or in the weapon wheel (V Style v1.2 mod)


Credits

Script and weapon models by JulioNIB
Custom anims by ac.amir
New minigun icon by Clone Trooper


Screens









Sunday, December 8, 2013

XBox 360 control support - Key codes for my new mods

My new mods will go with option to set in the .ini file the keys that will be used with XBox 360 control, so, based on the list below you can choose the right number to use:
BACK = 13
START = 12
X = 14
Y = 15
A = 16
B = 17
DPAD UP = 8
DPAD LEFT = 10
DPAD RIGHT = 11
TRIGGER LEFT = 5
TRIGGER RIGHT = 7
BUMPER LEFT = 4
BUMPER RIGHT = 6
STICK LEFT = 18
STICK RIGHT = 19
The .ini file will have same base name of the script and will be located in the gta Scripts folder, after changing the keys you must enter the scripthook command reloadscripts or load a saved game.

Saturday, December 7, 2013

GTA V Radio HUD script


This mod was inspired by GTA V radio hud and will bring to IV and EFLC something similar.
It don't change the normal radios, it just gives a second choice to switch radios in game.

Known bugs:
1 - If you turn off radio (commonly X key) you can't bring it back using the mod, you need to use normal game radio station switcher to reactivate radio, after this you can use the mod again. 
2 - The Turn Off option will only reduce the radio volume.

Download

***
if you want share or make videos of this mod, please use the following link as reference in description:
http://gtaxscripting.blogspot.com/2013/12/gta-v-radio-hud-script.html

Thanks
***

Installation:
This mod uses OpenIV Package Installer, see how to install here

Hotkeys
Hold Caps Lock to show the HUD and move mouse to select radio station
XBox 360 control support:
Hold DPad Up to show the HUD and use the right thumb stick to select the radio station 
*You can change hotkeys in the .ini file generated after first use, see the key codes here.

Credits
JulioNIB

Customization
Great part of my mods go with images that can be edited/replaced to customize the look on game screen, feel free to make any changes, just respect the image size. The files are located at gta "Scripts\V Style Radio HUD" folder.

Screens




Saturday, November 30, 2013

Parachute IV

This is my Parachute script for GTA IV and TLaD (also TBoGT).

Basically it adds the ability to control the free fall and have a parachute to use almost like in TBoGT. The speeds are a little different, also the anims and sounds, but the result is very similar. A nice feature of this mod is the possibility to use guns while in parachute. When entering a helicopter you will automatically receive a parachute, like in GTA V.

In the map you will find some blips with text "Pb" where you can go to perform a parachute jump.


Download

If the parachute model don't appear you need to increase your detail/view distance in game graphics options, this model has a bug that makes this happen :)

***
if you want share or make videos of this mod, please use the following link as reference in description:
http://gtaxscripting.blogspot.com/2013/11/parachute-iv.html

Thanks
***

Installation: This mod uses OpenIV Package Installer, see how to install here


Hotkeys

E - Go to jump location/Release parachute and fall
Left mouse button - Open the chute
Insert - Show mods menu

XBox 360 controller support:

Y - Go to jump location/Release parachute and fall
A - Open the chute


Credits

Script by JulioNIB


Screens















Monday, November 18, 2013

V Style - Char Switch and more

This mod is the evolution of the Main Character Switcher that i made before GTA V release, now we have real sounds and more accurate timing for the screen effects when switching. 




Additional features:

Direct punch attack
Jump and attack effect (fall)
Special abilities
Frag screen effect (white blink)
Health regeneration up to half max health
Weapon selection HUD
Multiple guns (ex.: You can have Glock and Desert Eagle at same time)
Characters interaction (You can call the other chars to help you)

v1.1 released, fixed some issues and added option to enable/disable some features


Download

To enable the squared map support open your V_Style.ini file (that will be in gta Scripts folder after first use) and change bSquaredMap=0 to bSquaredMap=1 in the General section. Use this when you already have a squared map mod installed.

***
if you want share or make videos of this mod, please use the following link as reference in description:
http://gtaxscripting.blogspot.com/2013/11/v-style-char-switch-and-more.html

Thanks
***

Installation: This mod uses OpenIV Package Installer, see how to install here


Hotkeys

Hold Tab - Show character selection HUD
Hold middle mouse button - Show weapon selection HUD
Move mouse - Select character or weapon
E - Switch gun in weapon selection HUD slot
Numpad 0 - Show mod menu (Interaction menu), also via ScriptHook command mcsiv
T - Toggle special ability on/off


XBox 360 controller

BUMPER LEFT - Toggle special ability on/off
DPAD LEFT - Show character selection HUD
DPAD DOWN - Show weapon selection HUD
Move right thumb stick - Select character or weapon
BUMPER LEFT - Switch gun in weapon selection HUD slot


Credits

Script by julioNIB
Weapon icons and code tips from original weapon HUD by M. Wojtanis ( the original version is better :) )


Screens









Sunday, October 27, 2013

Iron Man IV v2.0 - Stark Tower support

*** Check the news about this mod here :) ***

Update for Iron Man IV script: Added Stark Tower support  and some minor features






The Tower will be a new safe house in map, one helicopter (Maverick) and one car (Comet) will be automatically created. You will be able to store up to 6 cars on tower's garage.
You can use the tower's armor selector to equip any of the armors that are in the tower armors floor.

Tested in GTA IV patch 1.0.7.0 and EFLC, in EFLC the Mark III armor is a ped model and the mask/helmet can't be removed pressing M like in IV.

Download

Basic setup guide:

-Download the mod from the link above (Download)
-Install the script using OpenIV package installer (find help here)
-Make sure that you have ScriptHook installed and working (find help here)
-To have more armors install this armor pack


Additional files

Download the Audi R8 here (mirror2) - Easy setup file (source) - Will replace Comet and will be parked outside the Stark Tower, you can change the model in the .ini file and replace other car.


Added armors (without replace peds) required files

If you used the add armors method you need this .ini file, you must replace the one that is in the Scripts folder. The difference is the model names in the armor_selector sections that are different for added armors.


Backup files

Download the files to restore the "Getalife" building replaced by Stark Tower here (mirror, or use the manul setup files)
To restore Niko's head download this playerped.rpf backup

***
if you want share or make videos of this mod, please use the following link as reference in description: http://gtaxscripting.blogspot.com/2013/10/iron-man-iv-v20-stark-tower-support.html

Thanks
***





Installation

Easy setup option: This mod uses OpenIV Package Installer, see how to install here
For manual setup option: check each downloaded item readme.txt and place the script in the Scripts folder.


Make sure that you have the following packages installed:

http://www.microsoft.com/pt-br/download/details.aspx?id=17851
http://www.microsoft.com/en-us/download/details.aspx?id=5555
and maybe:
http://www.microsoft.com/en-us/download/details.aspx?id=20914




Screens









Hotkeys

Options Menu:

Insert - Show Menu (or console command: ironman)
Up/Down - Switch menu item
Enter - Choose/Toggle menu item
Backspace - Go to previous menu

Hold Spacebar (Jump) briefly to toggle Flight Mode ON/OFF
Hold Right Mouse Button (Aim) to aim/Set Targets (Must hold Aim to fire)
Left Mouse Click (Fire) - Fire Weapon/attack with lam pole/Thrown lifted car
1, 2, 3, 4, 5 - Switch Weapons
Hold Middle Mouse Button to see Weapon Selection menu, move the mouse to select and release Middle Mouse Button to accept (Crysis Style)
E - Switch to next Weapon/Grab lamp pole or lift cars
L - Switch to previous armor (new)
M - Show/hide armor head part (armor Mark III on GTA IV only) (new)

In Flight Mode:

W - Go Forward
S - Go Backward
A/D - Strafe Left/Right
Shift - Go Up
Control - Go Down
B - Hold to be able to rotate camera around player without changing player's rotation

Ground Combat Only:

Q - Powered Kick
R - Powered Uppercut


Xbox 360 Controller

Options Menu:

Hold Left Bumper and Right Bumper together - Show Menu
Up/Down on Dpad - Switch menu item
A - Choose/Toggle menu item
B - Go to previous menu

Hold X Button (Jump) briefly to toggle Flight Mode ON/OFF
Hold Left Trigger (Aim) to aim/Set Targets (Must hold Aim to fire)
Right Trigger - Fire Weapon (Tap for most Weapons, Must hold to fire Minigun)
Dpad Left/Right - Switch Weapons
B - Grab lamp pole/Lift cars

In Flight Mode:

Left Stick Up - Go Forward
Left Stick Down - Go Backward
Left Stick Left/Right - Strafe Left/Right
Click Left Stick - Go Up
Click Right Stick - Go Down

Ground Combat Only:

Left Bumper - Powered Kick
Right Bumper - Powered Uppercut


Credits

Script by JulioNIB
Armors, HUD by H1Vltg3, Wapeddell and Quechus13
Custom flight anims by H1Vltg3
Stark Tower by H1Vltg3

Sunday, October 20, 2013

GTA IV VStyle - JB700

v1.1 released:

-Changed code to work with the model from GTA V by Murphy.
-Added passenger seat eject feature.
-Improved spikes model and action.
-Improved object creation system to reduce frozen objects issue.
-Now car will spawn close to player when game loads (if you already finished the mini mission to steal the car).

In order to use new script you need to download and install this car.

Download v1.1 (previous version still available below, but i recommend new version)
Download old versionhere (mirror)

***

Observation: You must steal the car, there is a blip on map indicating where the car is, after succeed the last car position will be saved when you exit the vehicle :)

***
if you want share or make videos of this mod, please use the following link as reference in description:

http://gtaxscripting.blogspot.com/2013/10/gta-iv-vstyle-jb700.html

Thanks
***

Installation: This mod uses OpenIV Package Installer, see how to install here


Hotkeys

Press 1 to release spikes ( is the one above Q, not the numpad 1 :) )
Press 2 to eject seat ( is the one above Q, not the numpad 2 :) )
Press attack key to shoot with fixed guns


XBox 360 controller

X - Release spikes
Left bumper - Shoot with fixed guns

Controls can be changed, check the auto generated .ini file


Credits

Script by JulioNIB
Car model by monster875 (source), second model by yeahatnet (source)
Car model from GTA V by Murphy
Idea by taltigolt and Rick Jason Villaflor

Friday, October 11, 2013

Batmobile script


The Batmobile (1989) script for GTA iV, actual features:
  • Miniguns
  • Rockets
  • Bombs (Wheel bombs)
  • Throw back flames
  • Release smoke
  • Call Batmobile delivery (AI Controlled)
Other features will be added later


Download

*This mod will replace FBI vehicle, you can restore it with the included backup files :)
Download the Injustice Batman model here, mirror (by Quechus13 - Source)

***
if you want share or make videos of this mod, please use the following link as reference in description:

http://gtaxscripting.blogspot.com/2013/10/batmobile-script.html

Thanks
***

Installation: This mod uses OpenIV Package Installer, see how to install here


Hotkeys

Insert - Show mods menu (also via console command: batmobile)
1 - Activate miniguns
2 - Activate rockets
3 - Activate bombs
4 - Throw back flames
5 - Release smoke
B - Call Batmobile delivery
Left mouse button (Attack button) - Shoot miniguns/rockets or release/detonate bombs
Shift (Sprint button) - Nitro


XBox 360 control

You can set them in the .ini file


Credits

Batmobile model by Sersorroza (Source)
Script by JulioNIB
Request and tips by DetectiveDavis (Obs.: Other people requested too, but after this guy)

Thursday, October 10, 2013

GTA IV VStyle - V Handling script



This mod made by Nixolas1 will bring to IV an cool handling inspired by GTA V handling.

Download easy setup: here (mirror)
Download from source here

 ***
if you want share or make videos of this mod, please use the following link as reference in description:
http://gtaxscripting.blogspot.com/2013/10/gta-iv-vstyle-v-handling-script.html
http://www.gta4-mods.com/script/gta-v-handling-for-iv-13-f24350

Thanks 
***

Installation: This mod uses OpenIV Package Installer (easy setup links), see how to install here



Credits

Nixolas1: http://www.gtagaming.com/downloads/author/62265



Original description

GTA V Handling, or V-Handling for short is a mod for IV/EFLC which will make all your vehicles take much better turns and brake faster, just like in GTA V!
You will never float away in the corners with this mod :)

NEW: <a type="amzn" search="xbox 360">Xbox</a> control fixed. Added stuck on roof rolling (Press A/D to roll on wheels again)
Edit the ini file to suit your preferences, like cropper turns, faster braking or enable tap to reverse.

Press A+S+D at the same time to reload the ini file.

--- Install ---
*Place V-Handling.asi and VHandling.ini in your main GTA IV or EFLC directory (where EFLC.exe or GTA IV.exe is)
*If you dont have dsound.dll or scripthook.dll there from before, put those there aswell
*Modify the ini file to suit your needs
*Own the streets of Liberty City :)

Video: http://youtu.be/77ZectnpyQI

Note: This is not a handling.dat mod, and has no "real" GTA V handling files. I have reconstructed the feeling by using scripting.

Monday, September 16, 2013

GTA IV Superman script

Veja a versão PT-BR deste post aqui

This script will give to player some Superman powers like:
  • Invencibility
  • Fast sprint
  • Heat vision
  • Super wind blow
  • Super strength
  • Super melee attacks
  • Lift and throw cars
  • Use lamp poles as baseball bat
  • Fly :)
and more 



Download

***
if you want share or make videos of this mod, please use the following links as reference in description:

http://gtaxscripting.blogspot.com/2013/09/superman-script.html
https://www.youtube.com/user/taltigolt
https://www.youtube.com/user/YeardlyDiamond1
http://www.youtube.com/user/indirivacua

Thanks
***

Other Superman models

Superman mix by Quechus13: Easy setup (mirror) (Source)
Injustice Superman with working cape by wapeddell: Easy setup (mirror) (Source)
Man of Steel by wapeddell: Easy setup (mirror) (Source)
Superman v1.0 by H1Vltg3: Not fully supported because it's a playerped mod (Source)


Installation

This mod goes with .oiv file for easy setup using OpenIV package installer, see how to install .oiv files here.



Hotkeys

*Some people had issues with the mod menu don't showing the Superman option, if this happen press ' or ~ to see the ScriptHook console window and type the command superman to show the mod menu :)

Insert - Show mod menu to be able to switch player model to Superman model or activate and deactivate powers
R - Heat vision
T - Super wind blow (extinguish fire and push everything in front of player)
E - Grab lamp poles or lift cars
Left mouse button (LMB) - Super melee, throw cars
Right mouse button - Aim
Space - Toggle flight mode (must hold when not dressed as Superman)
Direct ped/vehicle attack - Set a targeted ped/vehicle that is not too much far away and press LMB
Ground attack - Fly against ground with more than 30 of speed

You can use all powers when flying too

The mod starts by default with powers ON, this means that you will have superman powers when not looking like superman, to disable the powers go to the mod menu and toggle the powers option :)

XBox 360 controller support is under develop.



Credits

Script: JulioNIB
Flight anims: Yeardley Diamond
Superman model: Indirivacua
Tests: Taltigolt

[TUT] Scripthook installation - Manual setup - GTA iV

To manually install the ScriptHook we need to identify and copy some files.

First download the Scripthook + ASI loader here

Before start, make sure that you have installed:
Source: http://www.gtaforums.com/index.php?showtopic=392325


Let me explain how it works:

  1. ASI loader is loaded by game because game "thinks" that is a normal dsound.dll file
  2. ASI loader loads any file that is in GTAIV.exe folder that ends with .asi (extension .asi)
  3. The ScriptHookDotNet.asi is loaded by the ASI loader 
  4. ScriptHookDotNet.asi loads the ScriptHook.dll file
  5. ScriptHook.dll loads any .net.dll, .vb or .cs file that is inside the Scripts folder

Let's start with the ASI loader, in my mods its the file dsound.dll, it must be copied to GTAIV.exe file folder:


We must do the same with the following files: NAudio.dll, ScriptHook.dll, ScriptHookDotNet.asi, if your GTA have patch 1.0.4.0 or lower you need to copy the file ScriptHook.dll.4 instead of ScriptHook.dll and paste in GTAIV.exe folder and rename from ScriptHook.dll.4 to ScriptHook.dll:


Now we copy the Scripts folder from the ZIP and paste in GTAIV.exe folder:


If you run the game without administrator rights you may obtain an error message indicating the file asilog.txt, in this case you need to check if the file exists in your GTAIV.exe folder and create it if necessary using notepad for example.



Now let's test the ScriptHook, open the game, load an save game and when your character is on screen press ' or ~, a black window must appear, this indicates that the ScriptHook was loaded:


Done! Now you can drag to Scripts folder any .net script for GTA IV :)



Other mod files

Some mods like Dual wielding goes with files that must be added to .img game files using OpenIV or SparkIV, if it's a animation (.wad extension) it must be inserted in the anim.img file (anim\anim.img), if it's a weapon it must be inserted in the weapons.img (models\cdimages\weapons.img), if it's a ped it must be inserted in the componentpeds.img (models\cdimages\componentpeds.img), if it's a playerped.rpf file it must replace the playerped.rpf file (models\cdimages\playerped.rpf), always enable the Edit Mode before insert any file and do this with the game closed, you can export the original game files before to make backups.



Troubleshooting

  • My game don't load anymore
You probably have an issue with the ASI loader, remove the dsound.dll file from GTAIV.exe folder and see if the game opens again. Now try o find another ASI loader version, gtaforums is a good choice to search for this kind of file.
If you are running the game without admin rights maybe you will obtain an error message indicating that the file asilog.txt can't be created, in this case you can try to run the game as admin using right click or manually create the asilog.txt file and saving inside gtaiv.exe folder 

  • My game crash at loading screen
This is probably related to wrong ScriptHook.dll version, make sure that you choose the right ScriptHook based in your  patch version.

  • Black window don't appear 
ScriptHook or ASI loader failed in the startup, try other ScriptHook or ASI loader versions

  •  The mod menu don't appear when i press Insert
This can be a issue with the ScriptHook version, send to me the ScriptHook.log file :) 

Saturday, September 7, 2013

[TUT] Camera control

My knowledge about camera is limited, i will show in this tutorial what i know about cameras in GTA IV.

Download the source code used here (mirror)

First of all we have direct access to the actual active camera using the following object:

Game.CurrentCamera

With this object we can obtain useful info about actual active camera:



Other way to obtain access to actual game camera is using this object:

Game.DefaultCamera

The problem with this object is that it disappear (= nothing) when an ped is set as targeted by player when player is unarmed, so, if you want use this camera be careful and make the Exists(Game.DefaultCamera) check before use.

GET_GAME_CAM
This native method will return the game camera, very useful when we need to find the actual game camera doesn't matter if we have a gun or not:




Creating a camera

To create a camera we need an object of type camera and we need to create a new instance of it:



Now to see the view of this camera we need to Activate it:


To demonstrate some camera control let's create an free camera with keyboard control, when i press move keys the camera will move forward and backward, when i press + and - camera will zoom in and out and when i press left/right/up/down camera will change direction:


Basically what i'm changing here is Position, Rotation and FOV.

An interesting method to use is the LookAt, we can set the camera to look at a Ped, Object, Vehicle or a single position, when we set this we can't control the camera direction or rotation anymore:


To obtain control over Direction and Rotation again we need to call UNPOINT_CAM method:


Another cool method to use is the SET_CAM_SHAKE:


First param is the camera, we can shake the game camera too but before we need to call CAM_PROCESS and specify game.default camera as the param.

Second param seems to be the level of movement, from 1 to 8

Third param is the time in milliseconds, -1 will result in a shake of approximated 1 second

This is what you need to do to shake the game default camera:




Attaching a camera

We can attach camera using the following methods:

ATTACH_CAM_TO_OBJECT
ATTACH_CAM_TO_PED
ATTACH_CAM_TO_VEHICLE
ATTACH_CAM_TO_VIEWPORT

After attaching the camera we can set the offset from the attach point using this method:

SET_CAM_ATTACH_OFFSET

To make the attach be relative to the object we need to call this method:

SET_CAM_ATTACH_OFFSET_IS_RELATIVE

To remove the attach we use UNATTACH_CAM

Let's make an example of this attach, let's attach the camera to player current vehicle, if player aren't in a car let's attach the camera to him:


Now, in a tick we need to set the camera direction or rotation:



With some coding and imagination you can easily create a basic first person camera.
//propaganda YT float style='display:none;'