Weapon Priorities

Please use this forum to ask all your MoHAA Bots questions / discussions

Moderator: Moderators

Post Reply
MC Disgruntled Goat
Lance Corporal
Posts: 22
Joined: Mon Sep 02, 2002 9:58 pm

Weapon Priorities

Post 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
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Image
MC Disgruntled Goat
Lance Corporal
Posts: 22
Joined: Mon Sep 02, 2002 9:58 pm

Post by MC Disgruntled Goat »

Thank you very much!!!! And thanks for all the bots!!!
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

You're welcome :)

Stay tuned for two newer versions ;)
Image
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

2 versions which are?
Live to map, not map to live.
-mohaa_rox, .map
moderator
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

1.1 -> bugfix

2.0 <--- gonna rock :shock:
Image
Post Reply