The_king_of_dragons писал(а):
Помогите пожалуйста
Бот спаунится без оружия, вот что прописано в ai. файле:
sniper1
{
attributes
{
camper 1.0
alertness 1024
fov 90
aim_skill 1.0
aim_accuracy 2.0
attack_skill 1.0
reaction_time 0.25
starting_health 25
hearing_scale 1.0
}
spawn
{
takeweapon mp40
setammo ammo_grenades 0 // Grenades
giveweapon weapon_mauserrifle
setammo ammo_792mm 200
selectweapon weapon_mauserrifle
}
}
In addition to Yo$hik's solution above, you should have the line
takeweapon mp40 changed to
takeweapon weapon_mp40. For any weapon, it must be written as
takeweapon weapon_name or
giveweapon weapon_name, where "name" is the name of the weapon that you want. Also, you should change the ammo amount from
200 to
999, so that the AI will not run out of ammo.
Are you just making a test map, or are you starting a new project? I'm curious.