http://www.facebook.com/GtaIVScripting
https://www.youtube.com/user/GTAScripting

Rocket Lock script by JulioNIB

Idea by: GoldenDarknezz (https://www.youtube.com/user/GoldenDarknezz)
Thanks to WhiteSharkv2 for giving me some info and textures (https://www.youtube.com/user/WhiteSharkv2)

This script will add the ability to lock rockets on vehicles and ground

also will be able to derail trains (set bDerailTrains=1), BUT there is a bug with the normal train model, if you derail the train
and aim to the derailed train again, the game WILL CRASH :(, the solution (not tested) its to pick an rare
object and replace his model with an copy of the train model, and in the .INI set the name of the 
new model in the variable: fakeTrainModel

For example, lets say that you replaced the object cj_brick (please dont do that ^^), the variable must be:
fakeTrainModel=cj_brick


How to INSTALL:

copy all files and folders from this zip to your gtaiv.exe folder, backup old files before overwriting
copy the correct scripthook.dll file from the folder that indicates your patfch version



MODELS:

Javelin: http://www.gta4-mods.com/weapons/fgm-148-javelin-f14933
Stinger: http://www.gta4-mods.com/weapons/fim-92-stinger-f18893



.INI explication:

hkShoot=Space - set the key to shoot (always shoot with that key, not with the default)
hkDefaultShoot=LButton - set the game default key to shoot
hkRocketCam=Tab - enable camera that will follow the rocket when in air and do slow motion when rocket explodes
hkAimKey=RButton - set the Aim key
hkZoomIN=E - set the Zoom in key
hkZoomOUT=Q - set the Zoom out key
hkSteadyAim=ShiftKey - set the Steady Aim key
hkSwitchZoom=Capital - set the switch zoom type key
bDerailTrains=1 - defines if will be able to derail trains or not
fakeTrainModel=subway_lo - defines the fake train model that will be created
bJavelin=1 - set if its javelin/stinger mode
JavelinPower=1.0 - set the power of the javelin explosion (be careful)
StingerPower=0.5 - set the power of the stinger explosion (be careful too ^^)
AutoEquipAmount=0 ' set the amount of ammo that will be automatically given to the player when script loads
MaxAttackDistance=200 ' set the max distance to find and lock targets ( greater than this will result in problems 
                        because the game control the object only when the distance from player 
                        is less than ~220 :( )
rocketModel=cj_rpg_rocket ' set the model of the rocket (put an name of an car model here to see the mess ^^)
minFOV=5 - sets the minimun FOV, bigger value = less zoom in
WFOV=25 - set the WFOV zoom
NFOV=10 - set the NFOV zoom
hkNightVision=N - set the nightvision switch key
hkSwitchAttackMode=MButton - set the switch attack mode key (DIR or TOP for javelin only)
bAutoLocking=1 - set if the lock will stat automatically or if will need to be acitaved with space (shoot)
soundLocking= - set the name of the optional locking beep sound
soundLocked= - set the name of the optional locked beep sound



COMMANDS:

tjavelin - switch to javelin mode
tstinger - switch to stinger mode
tnormal - switch to normal mode
tammo - increase rocket ammo