Posts: 1,498
Threads: 110
Joined: Aug 2013
Would it be possible to script an AI RC Baron which would specific team in specific area? I mean like with the limitations of samp... that looks impossible but I want to hear your opinions too.
Let me explain a little bit more:
User1 uses the CMD to activate AI RC Baron or w/e car.
AI RC Baron spawns and follows and kills players in specific area e.g the area the RC was spawned... but without me driving it instead it would be an "AI BOT" "NPC" or whatever.
Posts: 637
Threads: 23
Joined: Feb 2013
Reputation:
0
I don't know much about NPC plugins but I think spawning it, following, killing can be scripted.. But what about making the NPC shoot from RC Baron.
Posts: 1,498
Threads: 110
Joined: Aug 2013
Quote:
Originally Posted by coool
I don't know much about NPC plugins but I think spawning it, following, killing can be scripted.. But what about making the NPC shoot from RC Baron.
|
Yeah I mean those can be done but shooting a rc baron...
Posts: 637
Threads: 23
Joined: Feb 2013
Reputation:
0
Maybe it can be done by using FCNPC_SetKeys
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
Vehicle movements dont work well with any kind of NPCs. Even driving a car around a corner usually looks bad. Sure this would be possible with both FCNPC and RNPC, but it would look terrible, not even close to a real player.
Posts: 1,498
Threads: 110
Joined: Aug 2013
Quote:
Originally Posted by Mauzen
Vehicle movements dont work well with any kind of NPCs. Even driving a car around a corner usually looks bad. Sure this would be possible with both FCNPC and RNPC, but it would look terrible, not even close to a real player.
|
So what do you suggest to use ?
Posts: 1,801
Threads: 21
Joined: Mar 2008
Reputation:
0
Hmm I've tried around with RC Planes and rotation on Paths, it's quite easy.
Y rotation can be ignored if the curves are limited to a decent degree. Calculating the X and Z Rotation is either easily possible by euler -> quat conversion or use Gamer_Z's QuaternionStuff Plugin (that also allows correct x,y,z rot but didn't mess with that yet).
The path isn't too hard either, I tried writing a "brute-force" random path generator and it generates nice routes which look good when the NPCs fly them. Plus they never crash into Buildings or whatever, using ColAndreas (they even find little holes and fly through 2km long Tubes I mapped in the Map Editor). This is of course not doing what you wanted, but it could be adjusted to that (adding a target shouldn't be too hard).
It's already dangerous if they are rapid-firing, given the auto-aim that they have. So if you let these fly somewhere near the Player you can be sure he will die eventually.
So, if you are seriously interested in doing this, this could serve as proof that it's possible (without much complexity).