Pages

Tuesday, November 26, 2013

[Script] AC-130

This script, as a lot of suggestions, began with easy suggestions, in fact me and TheVideoVolcano was speaking about scripts, he was asking how to do factors, and he asked me if i can create a single script to make an air attack, like call 1 stealth bomber to fly over the city and launch some bombs in a waypoint, then the name AC-130 came out.

I played Contemporary Warfare 2 multiplayer a lot, so i knew some thing about the AC-130 functions (at least in MW2 game), so i started the improvement attempting to recreate MW2's AC-130 functions.

Very first i produced an custom camera and created it fly more than city, just going often in identical path, when press A or D the path modify, and after some tests i figured out that the cars and peds are only loaded by the game in an area close to player position, so i did  a litle trick: move the player with the camera hehe.

Download: GTA four Mods

First weapon was the .105mm:





Very powerfull, i utilised 1 rocket model (cj_rpg_rocket) that is launched from an position close to camera position, applied the very same rocket particle effect employed by the game, and used the native function
SET_OBJECT_RECORDS_COLLISIONS and HAS_OBJECT_COLLIDED_WITH_Anything to determine when the rocket collided with anything, and when it takes place i detect peds and vehicles surround rocket position and push them away, also use an explosion particle impact with elevated size

Second weapon as .40mm, this one particular was composed by ten objects, i throw then a single by one particular and do the identical that i did with .105 to detect collision, then add an litle explosion in the collision position, also i move the camera in the path of ground to simulate an zoom in

Third was the .20mm, just employing FIRE_SINGLE_BULLET to shoot bullets against the ground and utilized graphics draw event to draw an fake bullet trace, i did this simply because the particle effect for bullet trace dont operate well occasionally

A single of the most interesting concepts that i had in this script was the train derail, when the .105 collision detects an train (that is an object of sort gta.automobile) i get information about the train position, rotation and speed, then delete the original and develop an fake train, place in very same place, very same rotation and very same speed, then apply force to it pushing away :)

Also i developed an ground manage system, using an fake binocular you can aim at peds, cars or ground and call an attack of .105, .40 or .20mm gun, its very exciting and more enjoyable than the typical attack mode:



[Script] AC-130
9out of 10 based on 10 ratings. 9 user reviews.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.