- Fixed bug with resolver and backtracking.
- Improved hitscan and hitbox overlap algorithms.
- Scaled on shot options to shift on shot only.
- Fixed bugs with shift on shot.
- Double Fire now works with shift on shot.
- Fixed head hitscan not respecting selected color.
Visuals
- Added FOV changer.
- Fixed No Fog.
- Potential crashfix for world materials modulation.
- Fixed radar origin position when in thirdperson.
- Fixed jittering players with shifted tickbase.
- Fixed hitmarker position.
Misc
- Split log damage options.
UI
- Added UI-style binds.
- Fixed spectator window showing in menu.
Lua Scripting
- Fixed SendStringCmd callback.
- Added file.Read( filename ) (shortcut for File:Read())
- Added file.Write( filename, data ) (shortcut for File:Write())
- Added GuiObject:Reference( ... ) (checks only child objects unlike gui.Reference)
- Added GuiObject:GetString() (returns stringified value when possible)
- Added GuiObject:SetString( str ) (sets object value from string)
- Added GuiObject:SetIcon( texture, scale ) (sets Window icon)
- Added GuiObject:Children() (iterator for child objects)
- Added gui.XML( layout ) (allows to create more complex UI via XML, example below)
- XML schema can be found by gui.elements and gui.attributes command in AIMWARE console.
Lua examples for this update:
test.xml (Example layout via XML)
<Window var="mymenu" name="My Menu" width="300" height="300">
<Tab name="Tab 1">
<Groupbox name="Options">
<Checkbox var="enable" name="Enable" value="on">
<ColorPicker var="clr" value="240 30 20 255"/>
</Checkbox>
<Slider var="factor" name="Factor" desc="Determine the factor." min="0" max="100"/>
<Combobox var="mode" name="Mode" options=["Offensive","Defensive"]/>
</Groupbox>
</Tab>
<Tab name="Tab 2">
<Text>This tab is empty.</Text>
</Tab>
</Window>
XML loading via Lua
local test = gui.XML( file.Read( "test.xml" ) );
local enable = test:Reference( "enable" );
local color = enable:Reference( "clr" );
local factor = test:Reference( "factor" );
local mode = test:Reference( "mode" );
callbacks.Register( "Draw", function()
if enable:GetValue() then
draw.Color( color:GetValue() );
draw.Text( 16, 16, "Enabled with factor " .. factor:GetValue() .. " and mode " .. mode:GetString() );
end
end )
Print all UI objects example
local function PrintChildren( obj, prefix )
print( prefix .. obj:GetName() );
for child in obj:Children() do
PrintChildren( child, prefix .. "\t" );
end
end
PrintChildren( gui.Reference( "MENU" ), "" );