1
Bugs in older version (2.2.1) / Re: Invisible lines in battlescape
« on: November 27, 2009, 09:47:01 am »
Tried rev 27211 and the lines are visible.
New board
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Which is exactly the same as a custom template.
please post a screenshot
From code's point of view it's a bit more difficult. 'Cause how can we know if a soldier used one or more of his extra ammunitions?
For this, first we need to implement the long awaited equipment templates feature. Then we can check if items in the soldier's selected template are missing from his inventory and try to add it. If we can't (no more left) add a message to a list and show it finally (in a popup).
-geever
We don't (yet) handle getting out and putting back items to storage on (de-)equipping.
By commenting out that call you've made the item unusable if you unassign and fire your soldier if I'm right. I didn't check it but I'm sure it causes very serious sideeffects.
IIRC there have been several discussions on this 'issue' in these forums, introducing many more concepts including 'user defined equiment templates'
If I remember right that cvar was usefull to hide health bar for scientists, workers and medics too.
I'm not sure if your change broke that or not.
By the way that menu was changed in the latest dev version, there is no such problem anymore.I most certainly do hope so, it had a terrible design. I'm thinking of moving on to the dev version, if that screen has been reworked there.
string hp_val
{
if "mn_show_employee == 1"
pos "975 360" string "*cvar mn_thp" align ur
}
bar hp_bar
{
if "mn_show_employee == 1"
pos "716 383" current "*cvar mn_vhp" size "245 6" color "0 .8 0 1" max "*cvar mn_vhpmax" align uc
}
I searched for mn_show_employee in the C code and found it only in the section that deals with hiring staff, so I suppose the condition in the above code is wrong. After commenting out the condition, the health bar is displaying correctly. Also with the condition above in place, I verified that setting the Base->Hire staff screen to anything other than Soldiers will indeed disable the health bar.