Ai Problem i cant solve |
![]() ![]() |
Ai Problem i cant solve |
Jul 31 2010, 11:14 AM
Post
#1
|
|
![]() Enlisted ![]() Group: Soldiers Posts: 7 Joined: 31-July 10 Member No.: 7,552 |
hey,
I've read trough some of the threads here to look for a solution of my problem. but no one seems to have tried this or maybe it just can't be done, but what I'm trying to accomplish sounds pretty simple. so here it comes, I'm currently developing a Zombie mod for Bf:V and one of my goals is to have the bots try to give a priority to shooting/killing other bots and the player and not try to capture flags and getting into vehicles, that's one problem. the other is the "zombie's" of course have no ranged weaponry so to test I have given the zombie side only a kit with a knife in it but they are not targeting an enemy unless you are in range of the max range which is 1.5 for the knife, and if put in an higher value they do target you but they try to knife you from that max range and that does not work (obviously ;p). so would anyone have a solution for one or maybe both of these problems ? This post has been edited by Farmo: Jul 31 2010, 11:16 AM |
|
|
|
Jul 31 2010, 09:48 PM
Post
#2
|
|
|
CinC (for now) ![]() Group: Mr. Admin Posts: 4,903 Joined: 28-December 03 From: Fort Hood, TX Member No.: 46 |
First of all, you can't only change the Zombie AI unless you change it for both sides. Now if you restrict bots to only play zombies, then it will work to change the AIbehaviors in the game.rfa file by setting the moveTo setting to a very low value and increase the Fire setting such as in this example:
rem *** Construct standard weights *** aiSettings.createBehaviourModifiers InfantryWeights aiSettings.setBehaviourModifier Avoid 1.0 aiSettings.setBehaviourModifier MoveTo 0.01 aiSettings.setBehaviourModifier Idle 0.001 aiSettings.setBehaviourModifier Fire 7.5 aiSettings.setBehaviourModifier Special 2.0 aiSettings.setBehaviourModifier Scout 1.0 aiSettings.setBehaviourModifier TakeCover 1.0 aiSettings.setBehaviourModifier Change 2.0 You can restrict bots to specific teams on vehicles in the object spawner code: If you want to restrict enemy bots from stealing a vehicle, use this code in the spawner with a 1 for Vietnam/Axis, 2 for US/Allies, 0 is neutral/default setting. If Zombies are team 1, then use this ObjectTemplate.teamOnVehicle 2 Here are some ideas that will restrict all bots use of vehicles: http://www.battlefieldsingleplayer.com/dna...20vehicles.html the knife weapon actually fires a short ranged invisible projectile. You can increase the knife projectile range to match the AI range you can get better results. If you want the bots to fight with hands, give them a hand weapon that is set as invisible. You can check out the AI that I did in the BF42 Zombie mod or the pirate sp mod in this thread: http://www.battlefieldsingleplayer.com/for...showtopic=15143 Also, check out the online mod tut: http://www.battlefieldsingleplayer.com/dna...Guide/index.htm -------------------- No, my Avatar is not my dog.
|
|
|
|
Aug 1 2010, 08:06 AM
Post
#3
|
|
![]() Enlisted ![]() Group: Soldiers Posts: 7 Joined: 31-July 10 Member No.: 7,552 |
yea changing only the Zombie Ai is no problem it was supposed to be a Coop mod anyhow,
and I did already figure out eh knife actually shoots invisible projectiles. but i just could not get them to attack me or bots they would just run to get in vehicles or capture Cp's witch was annoying because zombie's don't yell flagzzzzz they yell brainzzzz thanks for your help I already experimented with making fire a higher value but did not change the other value's, but it did not seem to help much, but I'll surely try your idea's, as you've made a zombie mod before. and the hand weapon idea what I was thinking to but I was just using the knife as a place holder to see if such a mod would be possible, seems i did not do my homework to well. i'll let you know what happens, for now it's back to testing. |
|
|
|
Aug 3 2010, 03:38 PM
Post
#4
|
|
![]() Enlisted ![]() Group: Soldiers Posts: 7 Joined: 31-July 10 Member No.: 7,552 |
but what I also did was change the AI/AIstrategies file in game.rfa , to be more aggressive and not to defend that works to I think because they don't really care about going prone or getting to cover when you hit them they turn around an target you instead of going prone first. and now I've struck another problem (actually 2 and I cant change what army is playing on a map without getting an error message in battlecraft, because when I load up a original Bfvietnam map i get a message saying it's missing some objects and when I ignore that and change the teams, and try to play the map the game crashes which is pretty annoying, I'm sure its just a stupid fault on my side but I cant seem to figure it out. This post has been edited by Farmo: Aug 3 2010, 03:40 PM |
|
|
|
Aug 3 2010, 05:12 PM
Post
#5
|
|
|
CinC (for now) ![]() Group: Mr. Admin Posts: 4,903 Joined: 28-December 03 From: Fort Hood, TX Member No.: 46 |
You have to edit the battlecraft cfg/lst files to add new teams, but it's easier to use winrfa to upack the map and edit the init.con file and change the teams by hand. You can also change or set a combat area here as well.
Bostogne would be a good city map, if you restrict the combat area to the city -------------------- No, my Avatar is not my dog.
|
|
|
|
Aug 4 2010, 09:49 PM
Post
#6
|
|
![]() Still dripping with the blood of his enemies on his claws... ![]() ![]() ![]() ![]() Group: Soldiers Posts: 487 Joined: 18-February 06 From: Tulsa, Oklahoma Member No.: 1,555 |
What have you decided to do about the amount of damage or health the Zombies can take?
-------------------- I want you to remember that no bas tard ever won a war by dying for his country. He won it by making the other poor dumb bas tard die for his country
|
|
|
|
Aug 8 2010, 06:11 AM
Post
#7
|
|
![]() Enlisted ![]() Group: Soldiers Posts: 7 Joined: 31-July 10 Member No.: 7,552 |
@ Dnamro, ok I'll see how that works out,
guess I'll first try to finish the AI, texture's models, and coding. @Crimson_Raptor hmm, i don't really know yet but as very zombie fan/fanatic, knows they only die by trough 1 shot in the head. but i don't think that it is possible to to that, so I'll give them the highest possible hit points that is possible and still make them die in 1 shot trough the head with your primary weapon. |
|
|
|
Aug 8 2010, 08:03 AM
Post
#8
|
|
|
CinC (for now) ![]() Group: Mr. Admin Posts: 4,903 Joined: 28-December 03 From: Fort Hood, TX Member No.: 46 |
The problem with A Zombie mod in battlefield is the limited hand to hand combat. What about giving the bots a spitting attack?
-------------------- No, my Avatar is not my dog.
|
|
|
|
Aug 12 2010, 11:20 AM
Post
#9
|
|
![]() Enlisted ![]() Group: Soldiers Posts: 7 Joined: 31-July 10 Member No.: 7,552 |
A spitting attack, would solve those problems but would ruin my view on how zombie's should behave.
maybe add some other fighting fore that tries to kill every survivor in the quarantined area, because the government is trying to wipe the whole outbreak under the carpet. but them they would behave lame because of the zombie AI, or wouldn't they? for now I'm gonna focus on my zombie's This post has been edited by Farmo: Aug 12 2010, 11:33 AM |
|
|
|
Aug 13 2010, 12:09 AM
Post
#10
|
|
![]() Still dripping with the blood of his enemies on his claws... ![]() ![]() ![]() ![]() Group: Soldiers Posts: 487 Joined: 18-February 06 From: Tulsa, Oklahoma Member No.: 1,555 |
Well since you need 3 weapons at the least for the Zombies, may I offer some suggestions?
1st (Knife) Slot Punch Attack (or a Jab attack, using the knife animation to simulate the end effect) 2nd Slot - Rip Attack (Arms going back and forth like tearing the flesh off of the enemy) 3rd (Primary) Slot - Grab Attack (like arms out kind of thing, more or a choke attack I suppose) The knife animation is strongly recommend for all, but you'd have to give the bots reason to what to do them. As all 3 would have a minimum distance to attack set to very, very low. Maybe make a punch attack able to hurt vehicles like the jeep, or any kind of light armor. A rip attack has a "burst" fire mode, like an automatic pistol. And the grab attack is like a one, two, 3 shot kill, like a sniper rifle. Zombies are so much fun! This post has been edited by Crimson_Raptor: Aug 13 2010, 12:09 AM -------------------- I want you to remember that no bas tard ever won a war by dying for his country. He won it by making the other poor dumb bas tard die for his country
|
|
|
|
Aug 13 2010, 09:59 PM
Post
#11
|
|
|
CinC (for now) ![]() Group: Mr. Admin Posts: 4,903 Joined: 28-December 03 From: Fort Hood, TX Member No.: 46 |
But, if all three attacks are hand to hand attacks, you would have to create classes and give each class a different attack in order to get the bots to use the different attacks.
-------------------- No, my Avatar is not my dog.
|
|
|
|
Aug 14 2010, 03:30 AM
Post
#12
|
|
![]() Still dripping with the blood of his enemies on his claws... ![]() ![]() ![]() ![]() Group: Soldiers Posts: 487 Joined: 18-February 06 From: Tulsa, Oklahoma Member No.: 1,555 |
Not if they're Zombies! Well then that makes weapon classes that much more difficult. Zombies aren't really good at using tools like chainsaws, and axes, and stabbing weapons. They prefer to eat away at their victims...
Ooo! A biting attack to replace the knife, a real close-quarters weapon! -------------------- I want you to remember that no bas tard ever won a war by dying for his country. He won it by making the other poor dumb bas tard die for his country
|
|
|
|
Aug 17 2010, 01:00 PM
Post
#13
|
|
![]() Enlisted ![]() Group: Soldiers Posts: 7 Joined: 31-July 10 Member No.: 7,552 |
You know Crimson_Raptor, I really like your take on the idea of giving the zombie's some variety
. and Dnamro's idea on making every attack form another class is handy to so your sure zombie's will take different classes and with it giving the horde more variety that way. and you know I could actually totally see a zombie by mistake still have a shovel in it's hand or a machete because of what they were doing before they became zombie's. and then kind or still trying to wield it (poorly but you know the real problem is getting the horde to really chase you I mean in a game it's now 16 against 48 zombie's I think and some zombie's chase and actually kill, and others really stand and do nothing, it's kind of sad to see, i just cant get them hungry enough I guess and combat area's are defined by a sqaure with the x and y positions on a map right ? also does someone know if there's is a mod that uses a Double barrelled old shotgun?, I'd love to put that in the mod but unfortunately I am not so skilled with modelling to create new models I can only edit them to some extend. come to think of it not that good a modder at all, oh well long as I'm having fun This post has been edited by Farmo: Aug 17 2010, 01:16 PM |
|
|
|
Aug 22 2010, 05:23 AM
Post
#14
|
|
![]() Still dripping with the blood of his enemies on his claws... ![]() ![]() ![]() ![]() Group: Soldiers Posts: 487 Joined: 18-February 06 From: Tulsa, Oklahoma Member No.: 1,555 |
You know Crimson_Raptor, I really like your take on the idea of giving the zombie's some variety No problemo, I'm glad I can help stir up the brain pot of our community, lol. and you know I could actually totally see a zombie by mistake still have a shovel in it's hand or a machete because of what they were doing before they became zombie's. and then kind or still trying to wield it (poorly Hmm, that is true, but a chainsaw shouldn't be used. The gas would've run out before they found a human to devour. you know, if it was a farming town setup, pitchforks and a Grim Reaper's scythe could be weapons of choice. In the city, that would be a harder choice, like they still have their cell phone in hand or subway sandwhich, lol! but you know the real problem is getting the horde to really chase you I mean in a game it's now 16 against 48 zombie's I think and some zombie's chase and actually kill, and others really stand and do nothing I've never seen bots go for the other team, or even just the human players, because Battlefield has a control point set up. Both sides go for the control points and get "stopped" by seeing or being fired at by the other team on their way "down the yellow brick road" of the pathmaps invovled. I wonder how a system like that might work with one side having nothing to do but kill and the other running around trying to defend control points. Of course, automatically the other team would "white out the flag of the control point once there for 10 seconds so when all the humans died they couldn't respawn. Man, that would be a frightenly real way to play against Zombies in a Battlefield-system. and combat area's are defined by a sqaure with the x and y positions on a map right ? On the minimap yes, but AI-wise everything is in circles and approx meters around it. I am not so skilled with modelling to create new models I can only edit them to some extend. come to think of it not that good a modder at all, oh well long as I'm having fun We are all learning all the time. None of us are experts, although we sometimes say we are and are called so by fans, rofl! I know othhers would recommend different programs, but GMax [ http://www.turbosquid.com/gmax ] is a free modeling program offered by Turbosquid [ http://turbosquid.com/ ], as well as their are dozens, upon dozens, upon dozens, of FREE models that you can resize and rescale for use in Battlefield 1942. In fact, here's some links from a quick search of the site's contents: Double-Barreled Shotgun in .3ds format http://www.turbosquid.com/3d-models/double...3ds-free/336778 Shotgun Shells in .gmax format to go with it [actually made by my friend Semedar] http://www.turbosquid.com/FullPreview/Index.cfm/ID/271578 Even a model of a Shotgun and shells included in .max format http://www.turbosquid.com/3d-models/3ds-ma...-shotgun/411134 And here's something else, a full pack of modern weapons already unwrapped and textured. Including a pump-action shotgun, one with an M4-stock for some reason, an FN P-90, an Uzi 9mm, and a Tec-9. http://www.turbosquid.com/FullPreview/Index.cfm/ID/522500 The gmax and the 3ds formats would be easy to use in Gmax, but I've never seen a plugin for the .max format to work in Gmax. -------------------- I want you to remember that no bas tard ever won a war by dying for his country. He won it by making the other poor dumb bas tard die for his country
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 4th September 2010 - 09:21 PM |