GTAMP.com

Grand Theft Auto Media Press
It is currently Sun May 19, 2013 12:49 pm

All times are UTC




Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Thu May 24, 2012 4:00 pm 
Offline
User avatar

Joined: Wed Mar 17, 2010 4:07 am
Posts: 395
Location: Wales, UK
Speaking of FOLLOW_CAR_ON_FOOT_WITH_OFFSET, I think it might be useful to include what a player/ped running speed is and also tie that in with SET_CHAR_MAX_DRIVESPEED too. If I remember, an example of these combined was in 1st city Yakuza hard mission to destroy Zaibatsu tanks with guards surrounding them.

I used to have it noted down but can't find it, will have try experiment with this command(s) I think!

_________________


Top
 Profile  
 
PostPosted: Thu May 24, 2012 6:56 pm 
Offline

Joined: Sat May 16, 2009 6:14 am
Posts: 781
Location: London, UK
I'll probably use a "see Character AI tutorial" link instead of repeating the table. The tutorial could include a working example with speeds set up, if you feel like writing it. :)

Normal running speed is 0.050, fwiw. So the vehicle speed be 0.049 at the fastest, I think.

Instant Gang peds run slightly faster, possibly 0.051? Elvis impersonators run much faster; could tail one in a car to find out.

_________________
Multiplayer Levels | Mission Code Tutorials | Multiplayer Videos


Top
 Profile  
 
PostPosted: Thu May 24, 2012 7:55 pm 
Offline
Hitman

Joined: Sat May 19, 2012 6:12 pm
Posts: 108
Location: Holland, AKA The Netherlands
I'll just throw in my own input here from what i found while testing about with runspeed in the attemp of making a character faster then a cop on low wanted levels but not as fast as a player, put this small list with the other strange commands i found so far:

Code:
SET_CHAR_MAX_RUNSPEED( character , x.y )
Speed 0.1 : Pretty damn high speed.
Speed 0.07: Reasonable but faster then normal speed.
//Speeds above 0.06 may cause instability and crash the game, especially high values.//
Speed 0.06: Normal running speed.
Speed 0.055: Almost as fast as normal speed. Perhaps handy for stronger peds.
Speed 0.053: A small bit faster then 0.05, handy for targets who are supposed to be chased.
Speed 0.05: Half-ish of normal speed. Cops use this on the lowest Wanted Levels.

Quite fun how Speeds 1.0 and above just make the character go faster then Superman in flight and just dash across the screen with steps of several miles, essentially teleporting forward rapidly, but this event almost always ends up in a crash.
Its also hilarious to see a bot catch up to a high-speed car with these speeds. :P

I suppose a list of reasonable speeds wouldnt hurt. Or atleast the speeds of low wanted level cops, and regular speed.


Top
 Profile  
 
PostPosted: Fri May 25, 2012 11:59 am 
Offline
User avatar

Joined: Wed Mar 17, 2010 4:07 am
Posts: 395
Location: Wales, UK
Been playing around with these commands today, but no matter the speed I set the character to he can always keep up with any car, even a GT-A1!

However, there are a few things I noticed:
  1. Accelerating as hard as you can he will not be able to keep up with you until you slow down/stop (he will run at normal speed).
  2. If you slowly accelerate up to top speed, he can keep up with you even in the fastest cars!
    • If you turn slightly when a character is following you at maximum speed he will stop and go back to normal speed. Only seems to do it if he has to jump.

Also worth noting, if not obvious enough, when doing the offset for the character they will be on one side even when the car turns around etc.

Might also be worth changing the 'rotation' description too, seems to be the following:

000 = In front of car.
090 = Passenger side.
180 = Behind the car.
270 = Driver side.

_________________


Top
 Profile  
 
PostPosted: Thu May 31, 2012 6:41 pm 
Offline
Hitman

Joined: Sat May 19, 2012 6:12 pm
Posts: 108
Location: Holland, AKA The Netherlands
I suppose it might be worth to mention FOLLOW_CAR_IN_CAR only seems to actually work when the car being followed has a driver in it(even if its simply a ped). If it doesnt have one it basically ignores the command and they'll just drive off seperately. Was thinking of posting this in the scripting weirdness section but its rather realistic and somewhat logical.

Still an issue though when you dont want to spend extra lines on waiting untill a ped has entered a car or anything. Would safe people the trouble of having to figure that one out.


Top
 Profile  
 
PostPosted: Sat Feb 23, 2013 1:17 am 
Offline

Joined: Sat May 16, 2009 6:14 am
Posts: 781
Location: London, UK
I've added that to the description of FOLLOW_CAR_IN_CAR now.

_________________
Multiplayer Levels | Mission Code Tutorials | Multiplayer Videos


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group