Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » JFW_CPU_Neo_Vehicle_Ai
Re: JFW_CPU_Neo_Vehicle_Ai [message #423453 is a reply to message #423297] Wed, 24 March 2010 00:55 Go to previous messageGo to previous message
TNaismith
Messages: 86
Registered: May 2006
Location: Canada
Karma:
Recruit
It sounds like you might be referring to the following tutorial on RenegadeHelp.net: Advanced Bot Tutorial

If so, I'm under the impression that it isn't officially part of 3.4.4 scripts right now, the version included in 3.4.4 is a beta test version, and isn't fully functional -- at least according to the README10 document located within the 3.4.4 scripts directory:

I've highlighted the sections where it mentions the script is still in beta/not fully functional. I do think it's included properly in the 4.0 scripts release though. (Which hasn't been released yet by Tiberium Technologies)
Quote:


; ************************* Scripts by Joshua "NeoSaber" Kraft *************************



================================================================================ ====================

; ************************* [Script Name] Neo_CreateObject_RandomTimer

================================================================================ ====================

[Description]

- This script creates a preset at the position of the object it is attached to, and sets the newly created preset to face the same way as the attached object does. It does so at random intervals, that come between the Min and Max parameters.

[Parameters]

- Preset_Name (The name of the preset to create. Default is 'blank')

- Min (Minimum value that random time could be. Default is 0.0)

- Max (Maximum value that random time could be. Default is 60.0)

- Repeat (Determines if timer starts again when it runs out. 1 = yes, 0 = no. Default is 1)

[NOTES]

- This script should probably be attached to a Daves Arrow that is placed on the map. If set to repeat, when the timer runs out the preset will be created and it will choose a new random number to set the timer to. It will continue to do so indefinitely.

================================================================================ ====================

; ************************* [Script Name] Neo_Vehicle_AI

================================================================================ ====================

[Description]

- Early version of an AI script for vehicles. It can guard allies, hunt down enemies, and does a basic threat assessment on targets. It checks if targets are vehicles or soldiers, players or not players, and distance to determine which targets are a priority to attack.

[Parameters]

- MaxRange (The maximum range, in meters, that the vehicle will attack enemies. Default is 0.0)

- vsSoldier (Ammo to use against Soldiers. Primary = 1, Secondary = 0. Default is 1)

- vsVehicle (Ammo to use against ground Vehicles. Primary = 1, Secondary = 0. Default is 1)

- vsAircraft (Ammo to use against Aircraft. Primary = 1, Secondary = 0. Default is 1)

[NOTES]

- This script should be attached to a vehicle. It doesn't yet account for players getting in and out of a vehicle so transitions should be disabled on any vehicle this is attached to. Restrictions on the vehicle's turret rotation can cause the AI to get confused in combat.

- The script currently responds to damage, sounds, and sighting enemies. When idle, if it is shot by an ally it will attempt to guard that ally. If instead it is shot by or sees an enemy it will hunt that enemy. When its target dies (whether it be an ally to guard or an enemy to kill) it will return to idle. If hunting and it finds a higher priority target, it will attack the new target instead. An example of this would be if it was hunting an AI soldier and it sees a player. Players rank as a greater threat than bots so it would turn its attention towards the player. However, if it was hunting an AI vehicle and saw a player walking around it would continue to attack the vehicle since a player walking around ranks as a lower threat than a vehicle.

- This script can also respond to several customs. The code that checks for customs may not be working right yet, so make use of it at your own risk. Here are 4 of the customs it may respond to:

- 127127: hunt at location of sender
- 781781: hunt a new player (sender)
- 329329: guard location of sender
- 983983: guard a new player (sender)

- This script is still a beta, so future versions of the script may be incompatible with this version.


Personally I've tried this script myself, and it doesn't quite work. My vehicles end up staring at each other as if they want to attack, but they refuse to commence firing. They move around initially if I set a M08_Goto_Point on a Dave's Arrow, or if I set a waypath, but within less than a minute into starting up the map, they don't do much else.

Not sure if I helped that much, but good luck anyways. I have been trying to get this script working properly, but I've just resigned myself to waiting for 4.0 to be released.


http://img33.imageshack.us/img33/7928/t2010021mcsig140.gif
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Island Skins
Next Topic: xcc files
Goto Forum:
  


Current Time: Sat Dec 21 07:29:09 MST 2024

Total time taken to generate the page: 0.00719 seconds