project-navigation
Personal tools

Author Topic: Equip Soldiers  (Read 5125 times)

HaJo

  • Guest
Equip Soldiers
« on: July 22, 2006, 11:20:30 am »
Outfitting the soldiers is still very tedious, so here some suggestions:

* "Equip Soldiers" should be in a separate menu, not under "Aircraft"
 (at least, mention it in the tooltip)

* the keys 1-8 for selecting soldiers don't work in the Equip Soldiers-Screen
 (as during mission)

* a shortcut from Equip-Screen to Buy/Sell-Screen (and back) would be useful

* Sort/Highlight - Options for soldiers:
** by attribute (sniper/heavy-weapons/speed/...)
** by equipment (armor-value/weapons/ammo/...)
Sorting would also be useful on the selection-screen.

So you could select "has no primary weapon" and sort by "sniper-value",
then give the top two men sniper-rifles.
Repeat  for explosives-value --> rocket-laucher, etc.

* A quicker way to distribute items (armor, knife, grenades) to everyone,
e.g. a drop-in box where multiple items get distribute to all soldiers.

Offline Bandobras

  • Captain
  • *****
  • Posts: 586
    • View Profile
Equip Soldiers
« Reply #1 on: July 24, 2006, 01:27:32 pm »
Ha! I like it very much. Could anybody volunteer to design this? First some sketches and discussion here, then some mockup menues (the menu scripts are easy to edit). And then, if people and mattn like it, someone could implement the inner bits...

HaJo

  • Guest
Re: Equip Soldiers
« Reply #2 on: July 26, 2006, 09:51:19 pm »
Quote from: "HaJo"
the keys 1-8 for selecting soldiers don't work in the Equip Soldiers-Screen (as during mission)


I looked into menu_hud.ufo to see how the check for keypresses is done,
but I can find only commands bound to "click" (e.g. bt_actor0).

So, probably keypresses are checked in the main program.
Is there any access to those from the .ufo-scripts ?

The documentation on http://ufo.myexp.de/wiki/index.php/UFO-Scripts
has no info about this subject...

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Equip Soldiers
« Reply #3 on: July 26, 2006, 10:29:51 pm »
no - but have a look at the file keys.cfg (in base folder) there you can bind console command to keys. the binded console commands are of course available in all ufo-script files as normal command, too

HaJo

  • Guest
Equip Soldiers
« Reply #4 on: July 27, 2006, 12:54:39 am »
Quote from: "Mattn"
no - but have a look at the file keys.cfg


That means, I need some way to switch from
Code: [Select]
bind 1 "hud_select 0"
etc. during missions to
Code: [Select]
bind 1 "equip_select 0"
in the equipment-screen, and back again.

Maybe this could be hardcoded, but that would override keys.cfg

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Equip Soldiers
« Reply #5 on: July 27, 2006, 09:24:17 am »
seams like you are using an old version - the command is now soldier_select and you can select the soldiers with keys 1-8 in equipment screen (not in soldier selection screen - because this are more than 8 soldiers...)

HaJo

  • Guest
Equip Soldiers
« Reply #6 on: July 28, 2006, 01:49:41 pm »
But the problem remains the same, using the same keybinding
for different commands.

E.g. Cursor-Up/Down for selecting view-level during a mission,
and selecting items or soldiers in the equip- or buy/sell-screen,
of F1 for bringing up different help-screens.


Taku

  • Guest
Equip Soldiers
« Reply #8 on: August 06, 2006, 05:35:11 pm »
A double on an item would be the common way. Double click on a primary weapon and it goes to the hand and one ammo clip goes to the belt . A secondary weapon first tries holster, then hand then back pack on a double click. Armour would be equipped or switched.

Double click on an equipped piece would remove it and if it is an weapon all ammo would be removed alongside.

Or instead a double click two clicks would be even better, first select, second (un)equip.

Taku

v29a

  • Guest
Equip Soldiers
« Reply #9 on: August 06, 2006, 06:34:08 pm »
rmb could display item properties

Offline Bandobras

  • Captain
  • *****
  • Posts: 586
    • View Profile
Equip Soldiers
« Reply #10 on: August 06, 2006, 09:35:20 pm »
Quote from: "Taku"
A secondary weapon first tries holster, then hand then back pack on a double click. Armour would be equipped or switched.


There is actually a function for several days now, that does almost this: G_PackAmmoAndWeapon. But it's still some more work to do...