AI NOT ATTACK...HELP PLEASE

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
WarTech
Colour Sergeant
Posts: 88
Joined: Mon May 05, 2003 3:15 am

AI NOT ATTACK...HELP PLEASE

Post by WarTech »

I add it a bot via script to a map, "I did not create the Map, just used script to add the bot into the map", Anyway, the bot looks at you but does nothing else. I did ad the global/ai.scr right under the main. Can any of you gurus tell how to make the ai attack. Or provide me with a simple script PLEASE. Note below is the example I used.




// tunisian_fe
// ARCHITECTURE: Havoc
// SCRIPTING: Havoc

main:

exec global/ai.scr

// set scoreboard messages
setcvar "g_obj_alliedtext1" "Tunisian_Fe"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "tunisianload"



level waitTill prespawn

//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/exploder.scr
exec global/bomber.scr


level.script = maps/dm/tunisian_fe.scr
exec global/ambient.scr tunisian_fe

$world farplane_color "0.752941 0.752941 0.752941"
level.fogplane = 11000
$world farplane level.fogplane
level waittill spawn


end

//--------------------------------------------------------------------------------
bot1:
wait 3

spawn human/german_waffenss_shutze "targetname" "bot1"
$bot1.origin = ( -657 1701 82)
$bot1.angle = -129
$bot1.sight = 50000
$bot1.accuracy = 70
$bot1.aggresiveness = 95
$bot1.position = crouch

goto bot1
end
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

human/german_waffenss_shutze doesn't have the right animation includes. Please read my single player maps without test tutorial :)
Image
WarTech
Colour Sergeant
Posts: 88
Joined: Mon May 05, 2003 3:15 am

Post by WarTech »

jv_map wrote:human/german_waffenss_shutze doesn't have the right animation includes. Please read my single player maps without test tutorial :)
Where is this located, can you point me to it? By the way I am doing it for Multiplayer maps as a Server Side Mod. Thanks For assistance. Please help me. All fingers are pointing at you so far as to the know how. Once more thanks for your help
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Here

Post by jv_map »

/tutorials/sp_wotest.php

You can also use the TIKIs from the jv_bot pk3s :)

Get them here (if you haven't already)
http://www.planetmedal.com/freebrief/mohaa/bots/
Image
WarTech
Colour Sergeant
Posts: 88
Joined: Mon May 05, 2003 3:15 am

Re: Here

Post by WarTech »

jv_map wrote:/tutorials/sp_wotest.php

You can also use the TIKIs from the jv_bot pk3s :)

Get them here (if you haven't already)
http://www.planetmedal.com/freebrief/mohaa/bots/
Jv I hope you received the e-mail I sent you with the server side pack for you to test. This is what I found out so for. Using the script that I sent you with the server side mode and using your Tks for the Ai's I can script in the bots into any map. Now as I state in the e-mail flughafen map runs fine in Team match mode with out using your Tks. Now the Question is: Why that map does not need your Tk files and runs just right with the stock Ai files and the rest of the maps dont. I hope you can figure it out or anyone out there with some code knowledge. I really want it to be a server side mod ,,,since most of the players have no clue how to install the files need it to see the bots.
Post Reply