jh1 said:
If not in a vehicle, find one, while avoiding other pawns invehicles. This is top priority
It depends on if the bot has no weapon at all or a dummy weapon that does nothing. I would suggest the dummy weapon as bots generate logs if they have no weapons, and this will slowly build a very large log file, possible lagging the game, among other things.
Also with the dummy weapon it would be a simple matter of setting the
SuggestDefenseStyle(), and SuggestAttackStyle() so that they will try to run away.
As for finding Vehicles, Im pretty sure all you have to do is Increase the BotDesirability of that vehicle. That added to the fact that they don't have weapons to begin with they
should naturaly seek out a vehicle ...
jh1 said:
if in vehicle, kill stuff.
I would suggest sifting through the Onslaught Vehicle coding. I have been run over many a times by enemy bots in vehicles so there has to be code in there somewhere that tells them to do it. Find it and modify it so they do it more often.
jh1 said:
As for the process of finding a vehicle, my idea is to modify the findbestpathtoward function to find a vehicle. Here's where im stuck though - it takes an actor, but how can i specify that actor to be any vehicle? Any input at all is appreciated, Thanks a lot
casting. actor = Vehicle(actor)
Vehicle can be replaced with any class beneath actor.
This will set only actors of that class.
I hope this helps! ^_^