GTA Gaming Archive

Ramp Spawner v1.0.2 with Controller Support

by NomeSkavinski

A GTA IV Mod


Category:Script Mods

Added:2013-03-04 10:34:10 -0800


Replaces:v1.0.1

Historic Rating:9/10

Historic Downloads:6,653


File Size:399.94 KB

Download Link:1366586487_ramp_spawner_v1.0.2.zip





Description


UPDATE: Fixed a few null reference exceptions. And when iterating objects the camera looks at them for easier acquisition. UPDATE 2: Fixed another null reference exception which arose rarely. If RampsList.txt does not exist it is generated now. UPDATE 3: Another null reference that was hidden away, sorry about that. I know object spawners has been done a million times before, but heres one for the controller users. ============ What it does ============ Allows ramps (and other objects) to be spawned. Also allows the user to access a free camera mode, to move and rotate a selected object. Different Objects can be selected within the edit mode menu, more objects can be added to this menu via the RampList.txt file. ============ How it Works ============ ################# # Spawning a ramp/object # ################# When regularly playing press the Left Mouse Button or the Left Stick Button to spawn an object. The object will spawn in front of the Camera facing it. If the object is not facing the correct way you can alter this by changing the second value in RampList.txt for the objects rotation OR if it is too far/close to the camera you can change the DistanceFromCamera value in RampSpawning.ini. Objects will remove themselves if the player is over 600 units away from the object, again this can be altered with MaxObjDistance in RampSpawning.ini. PLEASE BE AWARE THAT TOO MANY OBJECTS CAN LEAD TO A GAME CRASH! Note: When spawning objects in regular playmode the object is set to the ground, so if on a highway or bridge with a road underneath it may appear there. Spawn Buttons are changable in the RampSpawning.ini. ################ # Editing a ramp/object # ################ Activate editing mode via Home or DPadDown + Right Button. Use the WASD + Mouse to move and rotate the camera OR LeftStick and RightStick. Again ramps can be spawned using the set Spawn Buttons, in this mode ramps are spawned where the ghosted ramp is. From this point all set buttons are on screen so just follow them. When changing the Edit State this switches between moving ramps and free cam. When moving ramps the camera is locked in position, it will however follow an object during movement(even if not on screen, must fix this). You can move the object with WASD or LeftStick and rotate with the mouse or RightStick. These are not changeable via RampSpawning.ini. In the top left you can see which Axis are being manipulated on the object, these can be toggled and input hints will be onscreen. When deleting in the ramp edit mode it wlil delete the one you have currently selected, if you delete in free cam mode ALL are deleted. ##ISSUE## When rotating an object about the X axis, it will reach its side and begin to jump around and may disappear. This is annoying bug i can't overcome yet, but shaking the mouse left and right or the RightStick will sometimes force it to continue rotating. If it does disappear just delete the object. Working on a fix. Edit Mode Buttons are changeable in the RampSpawning.ini. Tested Working on: GTA 4 1.0.7.0 and EFLC 1.1.2.0 Copy the contents of the resepctive folder from this download and place them within your scripts folder. Except for the Microsoft.Xna.Framework.dll and Microsoft.Xna.Framework.xml. Copy these to the root of your GTA/EFLC directory, so its with GTA4.exe or EFLC.exe.