Posts: 92
Threads: 15
Joined: Jul 2010
Reputation:
0
12.07.2014, 23:38
(
Last edited by Reynolds; 13/07/2014 at 12:22 AM.
)
I made something which kind of does that. Now I am only having issues with high slopes (such as highway turnoffs). I am thinking of setting the car's quats to the atan of x and y differences so that the car would be on the correct "slope", if that makes sense.
The only problem now is that I can't make the car stick to the right side of the road. Basic trig would solve that, providing there were a function in RNPC which could tell me the car's Z position at a specific stage of the recording. I would suppose this is not possible, but it would certainly be very cool.
Posts: 92
Threads: 15
Joined: Jul 2010
Reputation:
0
I'm feelin' lucky! That update would solve many problems I've been having with real-time NPC plugins. Will it be possible to change the NPC's angular velocity in the future to improve vehicle turns? (The current script I wrote makes cars turn at right angles without any tire screeching and proper turning).
Also, could you confirm that SetAngleQuats doesn't work properly with AddMovement? It seems that no matter what value I set, I can't make the car roll over or set its pitch to a specific value.
Posts: 5
Threads: 0
Joined: May 2010
Reputation:
0
I dont know why but this plugin is not working for me.. does not create bots. I try on r1 , r2-2, r3 linux and windows.. Help me.
Posts: 2,203
Threads: 154
Joined: Oct 2009
Reputation:
0
@Mauzen theoretical question if i may.
How hard would it be to record npc in vehicle making 90% turn and then reuse that recording with offset's? (If his starting coordinate was 10, 10, 10 we move it to a new coordinates and its playing 10+offset, 10+offset, 10+offset)?
Im just desperate for decent vehicle movement system...
Posts: 1
Threads: 0
Joined: Oct 2013
Reputation:
0
19.09.2015, 07:32
(
Последний раз редактировалось DerShoxy; 19.09.2015 в 09:03.
)
Edit:// nvm...just found the problem
Posts: 1,773
Threads: 47
Joined: Jan 2015
Reputation:
0
This plugin do't works with PathFinder due to the MapAndreas issues. Can you update(@Mauzen) the MapAndreas compatible to that of PathFinder?
I did comment the MapAndreas natives of RNPC but no NPC is connected then.
Posts: 40
Threads: 1
Joined: Jan 2010
Reputation:
0
I can update RNPC for MapAndreas class integration. I will release special version.
Posts: 2,041
Threads: 97
Joined: Jun 2013
I'm getting problems with ZCMD when I add RNPC include, so I have to add OnPlayerCommandReceived to fix it.
Posts: 1,504
Threads: 109
Joined: Jan 2012
Quote:
Originally Posted by EnzoMetlc
I'm getting problems with ZCMD when I add RNPC include, so I have to add OnPlayerCommandReceived to fix it.
|
pawn Код:
#include <a_samp>
#include <rnpc>
#include <zcmd>
Posts: 824
Threads: 80
Joined: Oct 2013
Reputation:
0
Mauzen, have you been able to repair the bug that crash to create more than 59 NPCs (supposedly is around that number up) ?, that is, if 50 is placed all is perfect, but if you put more than 60, due to as pause and return to the game (or at least that happens to me) most times crashea the game is rare that you do not crashea. Well, that's all, greetings and good luck.