Page 1 of 1

I know Im Close

Posted: Tue Mar 23, 2004 10:41 pm
by Cobra {sfx}
Hi guys, im new to scripting (few weeks) but learn fast, played the game since day 1 and been lookin for summat different to so - scripting etc.

Ive been spawning bots into stock maps and havin fun with them, now ive been using them in the usual camp spots and testing people against them and the bots really give em a hard time, so i made it as like a training round using the stock map hunt, now its time for more experimenting - ive been trying a bit more stuff with em - heres my prob ...

level waittill spawn
exec global/jv_mp_ai.scr::enable
exec global/mg42.scr


//which jumps to... global/mg42.scr...

{
"#set" "1"
"#noallies" "0"
"#set" "1"
"#range" "600"
"origin "-355 -879 311"
"#maxyawoffset" "45"
"$targetname" "mg"
"angle" "180"
"testanim" "idle"
"model statweapons/mg42_gun.tik"
"scale 1.0"
"classname" "turretweapon_german_mg42"
}
{
"angle" "180"
"origin" "-355 -879 311"
"testanim" "idle"
"model" "statweapons/mg42_bipod_nonstatic.tik"
"scale" "1.0"
"classname" "turretweapon_german_mg42bipod"
}
"#set" "1"
"$targetname" "mg_gunnertrigger"
"classname" "trigger_multiple"
// brush 0
{
"-355 -865 300" "-340 -865 300"
}
{
"#set" "1"
"targetname" "mg_node"
"origin" "-355 -889 300"
"classname" "info_pathnode"
}

//and all that should be used by this guy ...

soldier2:
local.soldiercount2 = 2
spawn human/multiplayer_allied_airborne_soldier.tik "targetname" "soldier2" "type_attack" "cover" "weapon" "mg_gunner"
thread soldier $soldier2 local.soldiercount2
$soldier2 turnto ( -355 -879 311)
$soldier2 waittill turndone
while(isAlive $soldier2)
{
wait 1
}
//remove $soldier2
wait 2
goto soldier3
end

the guy spawns there with no weapon (altho he has appeared with an mp4o before) but ive fixed that, and seems to be waiting for it. just no mg42 appears. Its for The Bridge/allied bot

Thanks for all the help and ideas ive picked up in these forums guys and especially you JV, i enjoy messin with these bots - real good fun and a learning curve ;)

Cobra

Posted: Wed Mar 24, 2004 2:28 pm
by M&M
well,i dont have any answers 4 ur questions but im more interested in this
Ive been spawning bots into stock maps and havin fun with them
i would like 2 add bots 2 my stock maps 2,so can u tell me how i can get that mod?

Posted: Wed Mar 24, 2004 8:56 pm
by Cobra {sfx}
I tried to post you my map to show you how it works but your email is full it said

Cobra

Posted: Wed Mar 24, 2004 9:46 pm
by M&M
really?thats wierd .maybe ur file is 2 big .try sending it M_N_M@arabia.com

it has a 10mbs storage space so i doubt it will give that error again :wink:

Posted: Wed Mar 24, 2004 10:14 pm
by Cobra {sfx}
ok that one sent m8 good luck ;)

Posted: Thu Mar 25, 2004 12:12 am
by M&M
tnx a dozen :wink: gonna try it out and c

edit:
darn,i know this is getting a little tedious but i opened the inbox and didnt find anything .so can u send it again 2 M_N_M@arabia.com ,make a carbon copy 2 Mondrawy@yahoo.com as well ,so i can be sure i get it.
sry 4 this :( .

Posted: Thu Mar 25, 2004 5:23 am
by Cobra {sfx}
ok ive sent to both, if your still having probs ill be on tonight after 6, get me on msn m8.

Cobra