IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

This section is for obtaining help on creating and releasing tools

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 [REL|SRC] fTz trainer

 
FaTony  
Posted: Tuesday, May 1 2012, 21:16
Quote Post


C++ guy
Group Icon
Group: Members
Joined: Aug 12, 2011

XXXXX



fTz trainer

This trainer came out as a result of my frustration with latest GTA titles. I felt that they are too punishing and simply not fun to play after you've finished the story. This trainer seeks to fix this.

First of all, previous games reward player with weapon spawns in the safehouse for collecting hidden packages. GTA4 doesn't do that. As a result, you can no longer go into long killing sprees because you will quickly waste all the ammo. I've fixed this by infinite ammo. The algorithm is based on LCS. For every round you fire, 1 gets added to your total ammo. That way you can still enjoy collecting weapons from dead cops.

Secondly, in previous games you can increase maximum health and armor by doing side missions. In GTA4 you can't do that. Also, cops are now much more clever. As a result, you die too quickly. I've fixed this by regeneration. It is very flexible: you can make it slow and subtle or fast like in CoD or something in between. Health and armor can regenerate independently and at different speeds.

Thirdly, in previous games you can survive several point blank explosions and high falls. In GTA4 you usually die from one explosion and there's ridiculous fall damage algorithm. I've fixed these by hooking ped damage and scaling it. As a bonus, I've added ability to scale damage you do to other peds and damage peds do to other peds.

And lastly, previous games give you a garage you can safely store vehicles in. GTA4 gives you a parking lot on the street. As a result, if you start killing cops near your safehouse, your cars usually end up being blown up or stolen by cops. I've fixed this by adding ability to save vehicles into the trainer and then to be able to spawn them any time you want. Vehicles are saved into vehicle slots. Each slot has a name you can edit when not in game. Number of slots is virtually unlimited.

This trainer stores all variable values in the ini file and all vehicles into several txt files, one for each episode. Trainer will create these files automatically on the first run.

All keys used by a this trainer are configurable. You can use in-game menu to do this or edit ini file directly.

Here's the list of keys:
Menu nameINI nameDefault keyDescription
Main menuMenuKeyF3Opens main menu.
Saved vehicles menuMenuKeyF4Opens saved vehicles menu.
Previous saved vehicle slotPreviousSlotKey,Cycles to previous saved vehicles slot. If current slot is first, it goes to last which is empty.
Next saved vehicle slotNextSlotKey.Cycles to next saved vehicles slot. If current slot is last, it goes to first.
Empty saved vehicle slotEmptySlotKey/Jumps to empty saved vehicles slot. Useful if you want to save new vehicle.
Spawn saved vehicle on roadSpawnOnRoadKeyF5Spawns saved vehicle from the current slot on the nearest road. Doesn't work for boats. See below.
Spawn saved vehicle at playerSpawnAtPlayerKeyF6Spawns saved vehicle from the current slot directly at player. This is always used for boats.
Save vehicleSaveKeyF8Saves current player vehicle into current saved vehicle slot. If current slot is not empty, it is overwritten.
And here's the list of all variables grouped by sections:

Main
Menu nameINI nameTypeDefault valueDescription
N/ATickrateUnsigned integer10Number of ticks per second trainer computes. Higher values give smooth experience, lower values save CPU cycles. Setting higher than 30 is not recommended.
Regeneration
Menu nameINI nameTypeDefault valueDescription
EnabledEnabledBooleanFalseEnables/disables regeneration.
Damage delayDamageDelayNon-negative float0.0Number of seconds that should pass after the last damage event before regeneration can resume.
IndependentIsIndependentBooleanFalseIf set to false, armor will not regenerate until health is full.
Health regeneration delayedIsHealthDelayedBooleanFalseSpecifies whether health regeneration is affected by damage delay.
Heath regeneration speedHealthRegenSpeedNon-negative float0.0Amount of health that regenerates each second.
Armor regeneration delayedIsArmorDelayedBooleanFalseSpecifies whether armor regeneration is affected by damage delay.
Armor regeneration speedArmorRegenSpeedNon-negative float0.0Amount of armor that regenerates each second.
Damage modifiers
Menu nameINI nameTypeDefault valueDescription
EnabledEnabledBooleanFalseEnables/disables damage modifiers.
Survive high fallsFallProofBooleanFalseIf true, you will not die instantly when falling from high places. You can still die if you are low on health.
Damage received multiplierReceivedMultNon-negative float1.0Factor by which all damage player receives is multiplied. Values lower than 1.0 produces less damage, values higher produce more.
Damage done multiplierDoneMultNon-negative float1.0Factor by which all damage player does to other peds is multiplied. Values lower than 1.0 produces less damage, values higher produce more.
Miscellaneous damage multiplierMiscMultNon-negative float1.0Factor by which all ped damage unrelated to player is multiplied. Values lower than 1.0 produces less damage, values higher produce more.
Infinite ammo
Menu nameINI nameTypeDefault valueDescription
EnabledEnabledBooleanFalseEnables/disables infinite ammo.
Compatible game versions:
GTAIV 1.0.7.0
EFLC 1.1.2.0

Requirements:
Microsoft Visual C++ 2010 Redistributable
Loader of your choice
C++ ScriptHook 0.5.1
XLive Protection Disabler or Xliveless

If you use XLive Protection Disabler, you can play multiplayer in free and party modes. If you use Xliveless you don't need dedicated loader.

Thanks to:
LMS for helping me with hooking code.

License:
None actually. Both binary and source code are released under unlicense.org public domain dedication. You are free to study, edit, redistribute or do whatever you want with the code. You can also claim authorship, not that I'll be happy about it.

Download:
Binary:
http://www.mediafire.com/download.php?o4roapuc4q148ta

Source code:
http://www.mediafire.com/download.php?l4kj6whxq4o26re

This post has been edited by FaTony on Wednesday, Aug 1 2012, 04:56

O This mod is hosted at GTAGarage.com

Downloads:
Download Source code - 0.039MB, uploaded on May 01 2012, downloaded 139 times
Download Binary - 0.047MB, uploaded on May 01 2012, downloaded 159 times

Click here to view the mod at GTAGarage

PM
  Top
 

 
FaTony  
Posted: Monday, Jul 30 2012, 03:09
Quote Post


C++ guy
Group Icon
Group: Members
Joined: Aug 12, 2011

XXXXX



Added Mediafire links. Gtagarage can't approve it for 2 months already.
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG