Quantcast

Jump to content

» «
Photo

Drivers ignores more waypoints more than 10 waypoints in the AS Pack

3 replies to this topic
skatefilter5
  • skatefilter5

    Controlling Both Players

  • Members
  • Joined: 30 Apr 2016
  • Canada

#1

Posted 10 October 2017 - 06:11 PM Edited by skatefilter5, 11 October 2017 - 06:38 PM.

I was making a street race for the 8 drivers, to race across Los Santos, with objects like ramps, I have problems with drivers hit to the wall and not reserving, and the drivers ignores more waypoints is there a way to fix it? I assign all the driver into one AS pack and set it on loop, whenever these drivers pass more than 10 waypoints they go back to the starting waypoints, and not reversing, I have dum drivers. I don't know how DYOM makes it endless waypoints for the driver without ignore paths more than 10 and can reverse when they crash to the wall.

 

I tried at least 1 driver and it still do the same thing, ignore waypoints. What is the limit for AS pack anyway?

0615: define_AS_pack_begin [email protected]
05D1: AS_actor -1 drive_car -1 to -1399.9968 -588.8387 1059.4263 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1464.1903 -589.6142 1058.646 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1513.0107 -594.8481 1056.1873 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1523.1503 -604.2274 1056.0874 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1523.8932 -613.6641 1055.0573 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1514.082 -644.4407 1050.197 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1518.2037 -666.89 1051.114 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1525.1027 -691.2701 1055.2524 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1521.432 -702.4279 1055.7461 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1513.0724 -712.1246 1054.4247 speed 30.0 2 model #NULL 5 //---Actor ignores extra paths
05D1: AS_actor -1 drive_car -1 to -1467.8555 -734.757 1050.0984 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1467.2982 -735.0522 1050.1515 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1427.5807 -740.6136 1055.21 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1384.9669 -742.6732 1051.9281 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1332.3932 -740.7082 1054.4803 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1297.8243 -736.6279 1049.3242 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1291.2211 -717.3831 1054.2113 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1304.592 -692.1364 1056.3473 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1331.0325 -674.8593 1055.9453 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1382.551 -665.2627 1055.9905 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1460.6582 -660.8931 1054.8276 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1488.8619 -639.7817 1053.3491 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1464.4072 -612.0679 1054.3567 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1429.1605 -619.6572 1051.119 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1424.5424 -645.2435 1052.5977 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1445.6469 -684.8134 1053.6095 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1447.2539 -706.4541 1054.5122 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1439.1478 -716.0108 1055.8077 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1425.797 -719.6119 1056.0988 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1338.9297 -717.0709 1055.8342 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1330.319 -707.8829 1055.8956 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1335.3574 -696.1902 1055.9502 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1344.8141 -690.4016 1055.7429 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1382.8523 -685.137 1053.7909 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1400.12 -676.5093 1052.5504 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1404.5564 -666.402 1051.9691 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1403.3026 -648.483 1051.8267 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1392.4393 -625.745 1051.975 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1382.118 -619.938 1052.0236 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1365.6362 -622.0045 1052.8323 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1306.0431 -650.451 1055.8232 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1291.939 -645.7662 1056.2178 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1287.7822 -631.0732 1055.9567 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1312.4398 -606.2023 1055.9108 speed 30.0 2 model #NULL 5
05D1: AS_actor -1 drive_car -1 to -1343.5087 -593.3559 1056.0251 speed 30.0 2 model #NULL 5
0616: define_AS_pack_end [email protected]
0643: set_AS_pack [email protected] loop 1
0618: assign_actor [email protected] to_AS_pack [email protected]
061B: remove_references_to_AS_pack [email protected]

Is 5 on the left is for actor to reverse when getting stuck to the wall?


deltaCJ
  • deltaCJ

    Davy Jones' Sock

  • Members
  • Joined: 27 Dec 2013
  • Unknown

#2

Posted 13 October 2017 - 07:20 PM Edited by deltaCJ, 13 October 2017 - 07:21 PM.

Okay. First of all instead of bombarding the AS pack function with Drive-To's just use Seeman's car path creator. This is the easiest way to make routes.

 

Second of all you shouldn't use this script to make the cars drive. Poor scripting. 

 

Send full script

  • Sloth- likes this

skatefilter5
  • skatefilter5

    Controlling Both Players

  • Members
  • Joined: 30 Apr 2016
  • Canada

#3

Posted 17 October 2017 - 06:43 PM

Okay. First of all instead of bombarding the AS pack function with Drive-To's just use Seeman's car path creator. This is the easiest way to make routes.

 

Second of all you shouldn't use this script to make the cars drive. Poor scripting. 

 

Send full script

were do i find semman's car path creator? it only exist SAMP car recorder


Sanmodder
  • Sanmodder

    Fan script

  • Members
  • Joined: 11 Sep 2017
  • Poland

#4

Posted 20 December 2017 - 02:21 PM

such a large package will never work well for you
maximal in such a package can be 4 or 5 commands
I do not do such packages often
I can not professionally say that to you

 

once I was doing a mod hot coffe, it is a package that has 4 and 5 max commands and repeats itself

but you can separate such packages into several

4 by 5 commands

but that also does not work, waiting is the most important thing

see

0615: define_AS_pack_begin 15 @
0605: actor -1 perform_animation "/////////" IFP "///////" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time 6000
0605: actor -1 perform_animation "///////" IFP "/////" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time 6000
0605: actor -1 perform_animation "//////" IFP "//////" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time 6000
0605: actor -1 perform_animation "//////" IFP "//////" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time 55000
0643: set_AS_pack 15 @ loop 1
0618: assign_actor 7 @ to_AS_pack 15 @
061B: remove_references_to_AS_pack 15 @
///////////// next
0615: define_AS_pack_begin 22 @
0812: AS_actor -1 perform_animation "//////" IFP "///////" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 1 time 6000 // versionB
0605: actor -1 perform_animation "///////" IFP "/////////" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time 6000
0605: actor -1 perform_animation "///////" IFP "//////" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time 6000
0605: actor -1 perform_animation "//////" IFP "////" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time 55000
0643: set_AS_pack 22 @ loop 1
0618: assign_actor $ PLAYER_ACTOR to_AS_pack 22 @
061B: remove_references_to_AS_pack 22 @


And you know why waiting is the most important thing

because how the driver has to go to the destination as the destination changes all the time
and goes to the wall
and after that why create such a package
how can you loop with meters to do

about something like that

19 @ = 0

: label
wait 0
repeat
wait 0
19 @ + = 1
until if 19 @> 60
0ACA: show_text_box "99999999999999999" /// test
Car.DriveTo (1 @, 2037.861, -1611.046, 13.3828)
Car.DriveTo (10 @, 2037.861, -1611.046, 13.3828)
19 @ = 0

repeat
wait 0
19 @ + = 1
until if 19 @> 60
Car.DriveTo (1 @, 2037.861, -1611.046, 13.3828) //// speed 35.0 2 model # NULL 5
Car.DriveTo (10 @, 2037.861, -1611.046, 13.3828) //// speed 35.0 2 model # NULL 5
19 @ = 0

repeat
wait 0
19 @ + = 1
until if 19 @> 60
Car.DriveTo (1 @, 2006.949, -1613.008, 13.3828) //// speed 35.0 2 model # NULL 5
Car.DriveTo (10 @, 2006.949, -1613.008, 13.3828) //// speed 35.0 2 model # NULL 5
19 @ = 0
 

wait 100
jump @label // return to begining
end_thread

{and after that improve the intelligence of the vehicle and the actor with these opcodes
00AE: set_car 1 @ traffic_behaviour_to 2
Car.SetDriverBehaviour (1 @, FollowRoad)
053F: set_car 1 @ tires_vulnerability 0
Car.SetImmunities (1 @, 1, 1, 1, 1, 1)
0587: enable_car 1 @ validate_position 0
077C: clear_actor 3 @ acquaintance 4 to_all_pedtypes // see ped.dat
039E: set_actor 3 @ locked 1 while_in_car
0526: set_actor 3 @ stay_in_car_when_jacked 1
09F6: set_actor 3 @ unjackable_through_driver_seat 0
072F: enable_car 1 @ stuck_check_distance 0.5 time 4000 and_restore_if stuck 1 flipped 1 unk_place_on_road_properly 1 to_path 7 // extended 03CC
0190: add_car 1 @ to_flipped_check // 6 max}





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users