Page 1 of 1

Weapon Priorities

Posted: Fri Apr 18, 2003 2:00 am
by MC Disgruntled Goat
Hey JV

I have a bot in a map that I want unarmed. In the AI paramaters window, I set his weapon as none but in the objective match game he spawns with a SMG. Would I set all his weapon priorities to 0 like you mentioned in the bot manual or is there an easier way to do this? Thank you and thanks for the bots, Goat

Posted: Fri Apr 18, 2003 6:06 am
by jv_map
Easiest way:

Create a .scr file in the global/jv_bots/ folder, for example goatweapon.scr.

In the file, write:

Code: Select all

setup:
    // no setup
end

shutdown:
    // no shutdown
end

getweapon:
    // always the same weapon
end

setweapon:
    self weapon none
end


Then in your map's script type

Code: Select all

level.jvbot_libweapon = goatweapon

All bots will be unarmed now.

Posted: Fri Apr 18, 2003 6:31 am
by MC Disgruntled Goat
Thank you very much!!!! And thanks for all the bots!!!

Posted: Fri Apr 18, 2003 6:36 am
by jv_map
You're welcome :)

Stay tuned for two newer versions ;)

Posted: Fri Apr 18, 2003 8:41 am
by mohaa_rox
2 versions which are?

Posted: Fri Apr 18, 2003 10:25 am
by jv_map
1.1 -> bugfix

2.0 <--- gonna rock :shock: