I know Im Close
Posted: Tue Mar 23, 2004 10:41 pm
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
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