GamingPrince83 Posted April 11, 2014 Posted April 11, 2014 Would it be possible through coding, to make Npcs follow the bot routes from MP? I'm asking this question, because i like spawning Npcs and dueling them and there are some great MP Maps but they don't have waypoints, so Npcs can't chase you if your out of range or not in their line of sight..
eezstreet Posted April 11, 2014 Posted April 11, 2014 Not without a pretty big code mod. However you may add waypoints, point_combat, etc through a map mod, and this may make the AI a little better.
GamingPrince83 Posted April 11, 2014 Author Posted April 11, 2014 Not without a pretty big code mod. However you may add waypoints, point_combat, etc through a map mod, and this may make the AI a little better.How does a map mod work, from what i know, you need to decompile the bsp file to be able to open it with Radiant and i don't know how to do it.
eezstreet Posted April 11, 2014 Posted April 11, 2014 Basically, when you make a map mod, you're modifying the entities in the map and then recompiling, only inserting the entities into the map. Since entities are spawned and have their logic handled on the server, clients won't need to have your modified BSP.
MoonDog Posted April 11, 2014 Posted April 11, 2014 A decompile isn't necessary, unless you need it for education purposes or to more easily get origins. With the state of this community, anyone using a decompile for benign purposes would be shocking. You can open the .bsp with notepad, search for "worldspawn", and find the entity list that way. Everything from the opening bracket of the world spawn entry {"classname" "worldspawn"} to the closing bracket of the last entity example:{"classname" "your_mom"} needs to be copied out into a new txt file. Simple save that file as the_maps_name.ent. Modify the existing entities or add new ones, keeping to the proper syntax. You can then recompile the .ent file back into the BSP with an onlyents compile on Q3map2. There are a bunch of tutorials out there on how to do this. I like to use Boba Fett's little entity re-wrapper. Just need to setup your paths, and have the .ent file and the .bsp in the same folder as q3map2. Drag and drop the .ent file onto this .bat @echo offclstitle Entity Recompiler - Wrapper made by BobaFettecho q3map2 entity recompile wrapperecho by BobaFettecho.m:cd C:\Program Files\GtkRadiant-1.4q3map2.exe -v -game ja -onlyents %1echo.echo Compiling finished, press any key to close this windowpause>nul
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now