Showing posts with label iv. Show all posts
Showing posts with label iv. Show all posts

Friday, July 18, 2014

Saints Row IV Commander In Chief Edition System Requirements

Saints Row IV: Commander In Chief Edition System Requirements
2 DVD SETUP - Steam006
(Publisher: Deep Silver | Developer: Volition | Genre: Action)
 

Description:
In the next open-world installment of Saints Row, Deep Silver Volition continues the story of the Third Street Saints by elevating their status to the highest level – the leaders of the free world. In Saints Row IV, the head honcho of the Saints has been elected to the Presidency of the United States. But the Saints are just getting started. Now the larger-than-life insanity of the Saints series gets a new twist with a catastrophic alien invasion, and the aliens have transported the Saints to a bizarro-Steelport simulation. Wield gargantuan superpowers and fight to free humanity from alien granddaddy Zinyak’s mental grasp. Escape the simulation that’s trapped the Saints crew, or die trying. Saints Row IV lets players delve into an arsenal of alien weaponry and technology that will turn each Saint into an ultimate entity of destruction. Utilize out-of-this-world superpowers to fight all the way to the top. With intensified action and enhanced customization, players can use their newfound superpowers and leap over buildings, outrun the fastest sports cars, or send enemies flying with telekinesis in the greatest, most insane installment of Saints Row yet. Save the world, Saints Style.

Features:
- The American (Fever) Dream – Play as the President of the United States in a story that spans countries, space, and time. Saints Row IV is to Saints Row: The Third what Saints Row: The Third is to Do The Right Thing. You’re not ready.
- Super Hero-in-Chief – Leap over buildings. Kill people with your mind. Run through tanks. Those are some of the most mundane powers you will wield in your quest to stop an alien menace hell-bent on destroying the Earth.
- Alien Toys of Destruction – Wield an impressive array of alien vehicles and weapons…FOR SCIENCE!
- Custom Weapons, Custom Mayhem – You’ve customized your character. You’ve customized your clothes. Now you can complete the look with our all new weapon customization system. Turn traditional weapons into exotic conversation pieces!
- Dynamic Duo – Seamless drop-in, drop-out co-op, a Saints Row standard, improved. The only thing better than one malicious super-powered President is two.

Minimum:
OS: Windows Vista (x86 or x64)
Processor: Intel Core 2 Quad Q6600 | AMD Athlon II x3
Memory: 4 GB RAM
Graphics: NVIDIA GTX 260 | AMD Radeon HD 5800 series
DirectX: Version 10
Hard Drive: 10 GB available space

Recommended:
OS: Windows 7 (x86 or x64)
Processor: Intel i3 2100T | AMD Phenom II x4 or higher
Memory: 4 GB RAM
Graphics: NVIDIA GTX 560 | AMD Radeon HD 6800 series or higher
DirectX: Version 11
Hard Drive: 10 GB available space



Trailer:
Read More..

Tuesday, March 11, 2014

TUT IV First script Interacting with peds vehicles objects

Lets create our first script? Step by step how to create an visual studio project to be used to edit and compile an .net script for GTA IV using VB.NET language :)

You can download the sample project here.


Lets start our first script. First of all lets start an new project in Visual Basic:

Open Visual Basic, click in New Project, in the next window select Class Library and click in Ok:


Now you will see the "empty" script, lets fill it with the basic script, clear the actual script text and access this Pastebin page and copy the Raw text and paste it in the Visual Basic script:


Lets save our project, click in File > Save All, set the Location folder where the files will be saved and the name of the project and click in Save:


You will notice some blue and red lines in the script text, they indicate error in our code, they happen at this moment because we didnt have set the References for the script.
The basic reference is to the ScriptHookDotNet dll, download it here, inside the ZIP, open the folder "scripts", then open folder "for Developers", then folder "Bin", extract the dll "ScriptHookDotNet.dll" to an folder, we will use this dll as reference for each new project, so save it in an good place to avoid mistakenly deleting it.

 Now lets add the dll as reference, in the right side, right click our project name (Script_base) and click in Add Reference:


in the new window, click in Browse and select the folder where the dll is, select it and click in Ok:


We also will need references for the Imports used, actually we have:

Imports System
Imports GTA
Imports System.Drawing
Imports System.Windows.Forms

We dont need to care about System import now, GTA was already referenced by the dll, we need to add reference for System.Drawing and System.Windows.Forms,  right click the project name on the right and click in Add Reference, in the new window click in .NET and then select in the list the name of the imports, you can select more than one holding control and clicking in the item:


Ok, now we are ready to start ^^

Before all, lets test if everything is ok with our script, right click the project name and click in Properties, change Assembly name to Script_base.net and clear Root namescape:


Click in Compile and in the Build output path set the path of your GTA Scripts folder:


Click in the menu Build > Build Script_base, if everything is Ok the text Build succeeded will appear in the left bottom and the script dll will be in the GTA Scripts folder:



Lets start detecting and interacting with game objects like Pedestrians, Vehicles (cars, bikes, trains, boats, helicopters, trucks, etc) and Objects, For example, lets get all peds surrounding player and push then:

In the keyDown event lets check if the player pressed numpad9, then get some peds, do some checks and push then:

What is happening in each line:

   If e.Key = Keys.NumPad9 Then
here we are checking if the key pressed is numpad9

   Dim peds As Ped()
here we declare an object of type Ped array, will be our list of peds

   Dim tmpPed As Ped
here we declare our temporary ped, it will be an item of the peds list

   peds = World.GetPeds(Player.Character.Position, 30)
here we get all peds that are at max distance of 30 from player position and store then in the array

   For Each tmpPed In peds
here we start running the list for the first time, putting the peds in Ragdoll state, this will make the push more interesting, tmpPed will receive the actual ped in the For iteration

   If Exists(tmpPed) AndAlso (tmpPed <> Player.Character) AndAlso Not Exists(tmpPed.CurrentVehicle) Then
here we check if the ped exists, if is different from player and if it are not inside an vehicle

   tmpPed.PreventRagdoll = False
here we avoid that the ped prevent an ragdoll state

   tmpPed.ForceRagdoll(2000, True)
here we force an ragdoll state for the ped

And in the second For:

   tmpPed.ApplyForce(Vector3.Normalize(tmpPed.Position - Player.Character.Position) * 15 + Vector3.WorldUp * 2, Vector3.WorldNorth)
here we apply force to the ped pushing him away from player:

   "Vector3.Normalize(tmpPed.Position - Player.Character.Position) * 15" will return the direction of the push and multiply by 15
   " + Vector3.WorldUp * 2" will make the force move ped Up too
   ", Vector3.WorldNorth" will add an rotation to this force


We can do the same with vehicles just changing the method that will return the vehicles and the types of the objects:


Noticed how i did this different? I didnt have to declare all variables separately, i can do all in the For declaration, this is interesting to do when you dont need to run the list more than one time.

To do the same with objects we just change types and methods, like we did with vehicles and also we detach the objects because great part of them are attached somewhere, also we need to use GTA.Object as type instead of just Object because the word Object is part of the vb.net language:


The most important methods used in those examples was: World.GetPeds, World.GetVehicles and World.GetAllObjects, we also can use World.GetAllPeds and World.GetAllVehicles, but they will return all vehicles/peds and we will have more lag.

An interesting detail about World.GetPeds is the third param that will limit the number of peds found

With World.GetAllPeds we can specify as parameter the model of the pedestrian that we are searching, for example if we want to search for fat cops only:

   peds = World.GetAllPeds("m_m_fatcop_01")

the same we can do with World.GetVehicles and World.GetAllVehicles:

   For Each v As Vehicle In World.GetVehicles(Player.Character.Position, 30, "taxi")

   For Each v As Vehicle In World.GetAllVehicles("taxi")


Download the final script here, you can just put it in the GTA Scripts folder and test it, you dont need an compiled dll to run scripts :)


Tip: Run gta in window mode using commandline.txt with line -windowed or with an shortcut to the LaunchGTAIV.exe with param -windowed

To test the script, press " to see the console window and then type the command reloadscripts, if everything is ok, your script name will appear in the console like this:


Read More..