GTA IV–Is it so difficult for the programmers...

benitok

Senior Member
Joined
Jan 30, 2007
Messages
746
Reaction score
0
Location
Cape Town
Last night I played GTA IV, I caused an accident and my car went up in flames as well as the car I hit, the guy in the other car jumps out in flames. He dies and another few cars ended up in the fire and started to catch fire. In the background I can here the ambulance coming, but no fire truck.

Guess what the ambulance does, it drives over the victims and into the fire. Now the ambulance is stuck and tries to get out, by reversing onto the victim and forward again until eventually it also exploded in the fire.

Why oh why can’t the programmers get this part right, I mean it’s easy.

If fire or victim in road
Stop next to them
Help victim
Call fire truck to help
End if
Else
Drive to safe distance
Stop and help victim
Call fire truck to help
End if
:D
 
I actually enjoy it more the way it is currently. Especially if you are in a helicopter and you hover over water, the cops chasing you will fling themselves into the water and all you see are the cherries and berries flashing deep down below...
 
Last night I played GTA IV, I caused an accident and my car went up in flames as well as the car I hit, the guy in the other car jumps out in flames. He dies and another few cars ended up in the fire and started to catch fire. In the background I can here the ambulance coming, but no fire truck.

Guess what the ambulance does, it drives over the victims and into the fire. Now the ambulance is stuck and tries to get out, by reversing onto the victim and forward again until eventually it also exploded in the fire.

Why oh why can’t the programmers get this part right, I mean it’s easy.

If fire or victim in road
Stop next to them
Help victim
Call fire truck to help
End if
Else
Drive to safe distance
Stop and help victim
Call fire truck to help
End if
:D

You are smart , you should be a programmer , you should be able to prove Einsteins theories wrong. Defy gravity.
 
Last night I played GTA IV, I caused an accident and my car went up in flames as well as the car I hit, the guy in the other car jumps out in flames. He dies and another few cars ended up in the fire and started to catch fire. In the background I can here the ambulance coming, but no fire truck.

Guess what the ambulance does, it drives over the victims and into the fire. Now the ambulance is stuck and tries to get out, by reversing onto the victim and forward again until eventually it also exploded in the fire.

Why oh why can’t the programmers get this part right, I mean it’s easy.

If fire or victim in road
Stop next to them
Help victim
Call fire truck to help
End if
Else
Drive to safe distance
Stop and help victim
Call fire truck to help
End if
:D



LOL .. if u look at your code you have one extra end if. See u also got the code wrong so give R* a break ;) :p
 
You are smart , you should be a programmer , you should be able to prove Einsteins theories wrong. Defy gravity.
Lol einstein had no theory on gravity :D That would be sir Isaac Newton
Einstein was a nut
 
bah.. i use me curly brackets.

Guess they could have coded it to do the correct thing, but that would be boring. Or maybe they where just lazy and did not bother, spend too much time on them 'dancers'.
 
It is done on purpose! Like the fact that even if you bump into an old man ... he wants to fight you.

Sandbox FTW !!!
 
Why oh why can’t the programmers get this part right, I mean it’s easy.
Go program some PAC-man and then come back.

Besides, if the firetruck does what its supposed to then there is less destruction and carnage.:rolleyes:
 
After my most modest toe dipping into game development (hey I got a 2D sprite to move!) I have the utmost respect for all gamer programmers no matter how bad the game. It's FRIGGIN hard.
 
After my most modest toe dipping into game development (hey I got a 2D sprite to move!) I have the utmost respect for all gamer programmers no matter how bad the game. It's FRIGGIN hard.

dude...making a 2D sprite move is like 1 line of code. WTF?:p
 
What Sprite.Move(); ?

That's where the plebs get unstuck ;)

Move(); itself is at least 6+ without even checking for user input, checking animation state or collision detection.
 
nobody said anything about collision / user input / animation state / etc....

But i can create a button that will move an object (sprite/whatever) to another location with 1 line of code. making a sprite move is basic.
 
Last night I played GTA IV, I caused an accident and my car went up in flames as well as the car I hit, the guy in the other car jumps out in flames. He dies and another few cars ended up in the fire and started to catch fire. In the background I can here the ambulance coming, but no fire truck.

Guess what the ambulance does, it drives over the victims and into the fire. Now the ambulance is stuck and tries to get out, by reversing onto the victim and forward again until eventually it also exploded in the fire.

This is realistic. I'd bet it's happened here before
 
nobody said anything about collision / user input / animation state / etc....

But i can create a button that will move an object (sprite/whatever) to another location with 1 line of code. making a sprite move is basic.

You're missing the point. As basic as a sprite is, the amount of thought that goes into a game like GTA on a design level is simply astounding. I bow before these guys, they are programming and engineering gods. There's no way that you can make a comparison between the two.

I personally think that the OP is being unreasonable (if he's being serious then he's being an idiot who obviously has no experience in the design of a large program, and is most likely some retarded 'copy and paste' script kiddy). In any case, who cares if it's a glitch - this is GTA, it's actually funny!
 
All you need I guess is a coordinate system on the map, that is how I would do it. If civilian dies at 1765.1542 then ambulance must plot route to 1764.1541 and park next to him. If 1764.1541 is occupied by an object then try 1763.1543 and so on and so forth until a succesful destination is attained and course plotted. Then all the ambulance needs is a collision avoidance system and prediction system to avoid pedestrians/cars on the way. Driving along the roads should be easy as that can be pre-programmed routes and buildings are then not a problem. Heck even bots in the old counterstrike could figure out their own path. :)

Although if everyone drives perfect in GTA then it's no fun at all :p

One thing I would have liked to see is more crowd reaction. Like when you have a major smash most pedestrians just stroll on by like zombies instead of running around and checking out the scene and commenting. Or if you start hitting someone people around should start surrounding you and cheering and making a ring :p
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X