FCNPC or RNPC?
#9

Quote:
Originally Posted by n0minal
View Post
Yeah but the problem with mapandreas is that it only returns the highest Z position in the ground, you can't go trough tunnels and buildings etc, that's a thing that can be done easily in pawn but anyways I would like to see something like that done in the plugin, people wouldn't have to do too much effort to have perfect zombies and followers arround the map. I don't know if you understood me but, imagine that there's a player inside the tunnel, with the basic mapandreas findz you would reach the Z coord in the top of the tunnel, so if you activate the parameter "use_mapandreas" the npc would go to the top of it instead of getting inside the tunnel. But there comes the logic, I could just not use mapandreas and let the zombie go straight from his coords to target's coords, but lets figure out that it's a steep tunnel, so the NPC will start to flying a bit upper from the ground because that the player Z_Coord is increasing, with colandreas we could just get the current zombie z coord, and raycast a line from a bit upper to deep down him, the result coord would be the collision point with the ground that would make him keep his path on the floor not flying, I'm developing my own zombies system based on this and dropping player nodes by his path, I think that we have tools that we have never had before to do these kind of things be perfect like that.
Thats the catch indeed. The steep tunnel wouldnt be a problem though, movement is interpolated and not purely locked to the mapandreas raster, and san andreas objects are linear enough, so the interpolation works well. But the highest z-coord stuff really sucks about it and makes it useless for several mapping scenarios and indoor movement.
Doing it purely with colandreas might be too slow though if you use many NPCs. Finding the path through a simple course might take several thousand collision checks. Just checking a variable in an array that often doesnt even scratch the performance limit, but several thousand raycasts for each NPCs might be too much, even though ColAndreas is really fast. A hybrid mode might work, simply speaking using mapandreas above the ground and colandreas below. Using a pure ColAndreas pathfinder would probably require a much more careful programmed NPC AI to sustain the same amount of NPCs.


Quote:
Originally Posted by ZiGGi
View Post
In FCNPC 1.4.0 you can load npcmodes to memory too with FCNPC_LoadPlayingPlayback. Or if you just use FCNPC_StartPlayingPlayback then your recorded file writes to the memory and played only after fully load.

P.S. Maybe in the future, I can fully escape from memory hacking in FCNPC and realize everything with RPC calls. So, after it, FCNPC will be possible to not update after every SA-MP release (except in cases of updating RPC values, or in some other rare cases).
Sounds interesting. Looks like you brought some really nice features and updates to FCNPC, I should check that out in detail when I got the time.

Im not meaning to say memory hacking is bad btw. As long as theres someone updating it for new samp versions its absolutely fine. Got to keep in mind that even samp itself is based on memory hacking.
Reply


Messages In This Thread
FCNPC or RNPC? - by iLearner - 24.10.2016, 06:51
Re: FCNPC or RNPC? - by AIped - 24.10.2016, 07:24
Re: FCNPC or RNPC? - by iLearner - 24.10.2016, 07:29
Re: FCNPC or RNPC? - by n0minal - 24.10.2016, 11:01
Re: FCNPC or RNPC? - by Romz - 24.10.2016, 13:53
Re: FCNPC or RNPC? - by Mauzen - 24.10.2016, 18:18
Re: FCNPC or RNPC? - by Crystallize - 24.10.2016, 18:48
Re: FCNPC or RNPC? - by ZiGGi - 25.10.2016, 02:53
Re: FCNPC or RNPC? - by Mauzen - 26.10.2016, 23:03
Re: FCNPC or RNPC? - by n0minal - 27.10.2016, 02:45

Forum Jump:


Users browsing this thread: 1 Guest(s)