ja2_7609+AI 中文版 r1942

» 2021-02-20 JA2&v1.13 3条评论

详情《JA2 1.13 稳定版 AI 增强 MOD【中文版】》,直达百毒 Builds 目录(以后更新就不贴百毒地址了,免得需要改地址)。

(r3xx~r1437 的更新跟 TBS 一起消失了,在此叹下气)

部分 r1438~r1942 新特性视频(Y2B,自备木弟子)

r1594

Enemy can use wirecutters to cut path to closest enemy, also flanking soldiers can use wirecutters to cut fence if they cannot find next flanking spot.
EXTRA_ITEMS option adds small chance for enemy soldiers to have wirecutters, depending on soldier class and game difficulty.
Only attacking soldiers will use wirecutters, garrison soldiers will prefer to not destroy fortifications.

Limitations: currently soldier can cut fences only around him, he will not intentionally move to fence to cut it.

r1597

New option REPAIR_WIRE_FENCES (FALSE by default) allows repairing cut fences using wire cutters.
Works by assigning bPartnerDelta to cut fence structure information.

r1621

Building sandbags is possible with only shovel (only for dirt/grass surface).
Fortification is instant action now, uses AP_USEWIRECUTTERS cost.
Show hammer icon on merc portrait while doing fortification action.
Swapped red/gray fortification cursors to make them consistent with other action cursors.
Allow fortification actions in diagonal direction when action spot is directly near soldier.
Don't play COOL quote when doing fortification actions.
Fixed various fortification related bugs (AP costs, moving to build, cursor type etc).

r1714

Added new flag to AmmoTypes.xml: AMMO_AIRBURST = 16, which forces bullet to explode in the air once it reaches range to target or max weapon range.
Airburst ammotype requires explosionSize > 1, highExplosive > 1.
Explosion on the second level now can affect tiles on the first level, if there is no roof above them.
Implemented safety distance - grenade will only explode after traveling at least 5 tiles from shooter (unless it hits something before).
There is some randomization to distance - 33% chance for grenade to explode at each tile once it reaches (distance to target - 1) tiles.
Note: explosion fragments work incorrectly with airburst (actually, with any explosive ammo), so don't use them.

r1726

New option "Safe [D] button" in the ingame options allows to stop accidental endturns and also provides new functionality.

Now the player can cycle through mercs in a new way - when you press [D], the game will switch to next closest merc who still has APs, and mark current merc to not select him next time, after all mercs have been selected this way, the process starts again by clearing "selected" flag for all mercs and selecting closest merc. Unlike the [Space] button, all mercs in the sector can be selected this way, not just active squad.

This is how it looks in the game:

r1748
No rain sight penalty under roof.
Improved smoke/gas sight penalty.
Limited visibility in smoke to 1 tile.

r1846
AI soldiers can try to blow up known opponent from above or below using their TNT.

Experimental feature from Vengeance:Reloaded mod which I plan to also implement in +AI.

Vision bonus works only for selected area when spotting or focus skill is active.
Focus feature allows not only using vision bonus to scout area, but also provides bonus to interrupt in the focus area.
Both spotting and focus limit normal vision to 5 tiles around soldier.
AI uses standard watched locations where it can have vision bonus and interrupt bonus automatically.

r1921

You can now give "Move to" order to militia, to place them tactically before battle.
By default, soldier will be switched to FARPATROL/DEFENSIVE mode.
If you don't want militia to move from new spot, give it "Hold" order after arriving, it will switch soldier to STATIONARY.
Some limitations:
- works only in realtime
- if move spot is on different level, soldier will climb but not move further
- you can only order movement to roof if it was correctly defined in editor, some flat roofs cannot be used by AI as they don't have correct room number

r1935

New ingame option "Smart Tree Tops" allows to hide only trees that can block view for visible soldiers or cursor position.

r1438~r1942 log(E文不好懒翻译,有兴趣可以细看,不看就游戏中感受)

r1942
Improved militia command code.
---------------------
r1941
Smart tree top hiding: more optimization.
---------------------
r1940
Smart tree top hiding: code optimization.
---------------------
r1939
Set final destination for militia when giving "Move to" order to move between level, so it will move to desired spot after climbing. Switch militia to STATIONARY order when giving "Move to" order, so it will not walk away later.
---------------------
r1938
Only spawn legal random items (check food, dirt, sci-fi, tons of guns mode and inventory type). Minor code improvements.
---------------------
r1937
Added 0.1s delay to hide tree top when moving cursor to prevent flickering when moving mouse over trees.
---------------------
r1936
Improved Smart tree top feature.
---------------------
r1935
New ingame options: Smart tree tops.
---------------------
r1934
Fix: UI attack handling prioritised interactive structures over target soldiers even if target soldier was explicitly provided causing deadlocks e.g. when trying to punch enemy overlapped by a door (by anv)
---------------------
r1933
More bullets when shooting with autofire if - soldier is using machinegun and has cover - soldier is under psycho effect - rush attack prepare is active - soldier has spare magazine and has cover
---------------------
r1932
Red AI: more bullets for suppression fire when using LMG or if soldier has spare magazine (OCTH only). Increased chance for suppression fire for SEEKENEMY soldier.
---------------------
r1931
ReInitMergedItem: show item id, attachment id when doing assert.
---------------------
r1930
Fix: guiBaseJA2Clock overflow (by MH17).
---------------------
r1929
CalcMorale: don't limit morale if we outnumber. AnyCoverAtSpot: allow adjacent cover for opponents except closest opponent. AIEstimateCTH: added visibility penalty for spots out of sight.
---------------------
r1928
When changing stance from UI, first stop cowering. Stop cowering when merc starts to move. Increase delay to stop AI when in fast forward mode.
---------------------
r1927
Experimental tweak: don't switch movement to WALKING after water.
---------------------
r1926
Improved communication checks between soldiers: both have extended ear and sector is not jammed or they can see each other and not too far away. Don't stop cowering animation for player merc if he is unconscious. GetSquadleadersCountInVicin...
---------------------
r1925
CalcChanceHTH: only use reduced chance for boxers.
---------------------
r1924
NO_STANDING_ANIM_ADJUSTMENT_IN_COMBAT: only for player. AIDoctorFriend, AIDoctorSelf: first change soldier to stationary. AIDoctorFriend: change target to stationary.
---------------------
r1923
FindSunGogglesInInv: count item is sun goggles if it has day or bright vision bonus > 0. StartRadioAnimation: no animation if in water, invisible or incorrect bodytype. CalcChanceHTH: restored base chance for melee attacks to 67.
---------------------
r1922
Improved code to check if militia options are available. Start radio animation when giving orders to militia. Show locator when "Move to" order is successful, say curse quote if cannot find path. FindClosestClimbPointAvailableToAI: don't ch...
---------------------
r1921
New militia order: Move to (works in realtime only). Cancel current AI order when giving militia order. Don't allow selecting shaded options.
---------------------
r1920
GetItemSlots: use MAXITEMS + 1 as AttachmentSlots limit. Improved path AI code.
---------------------
r1919
CheckDangerousDirection: don't check sight.
---------------------
r1918
Use UINT16 for Item[] loops. PickARandomLaunchable: use 1 + progress / 10 to allow coolness 10 items.
---------------------
r1917
CountCorpses: use soldier's level to check corpse level.
---------------------
r1916
OCTH: reworked code to avoid lucky hits, increased MIN_AIMING_SCREWUP 22 -> 30. AI: don't use reverse movement mode when in water.
---------------------
r1915
EstimateThrowDamage: take into account <buddyitem> tag for single shot rocket launchers.
---------------------
r1914
Added DecideActionUtils file.
---------------------
r1913
Check corpses in a room when deciding to blow up wall or jump window. ClosestReachableDisturbance: decide to move to closest spot where we can blow up wall if opponent is in a room. CountCorpses: - return number of corpses instead of TRUE/...
---------------------
r1912
SightCoverAtSpot, AnyCoverAtSpot: don't check diagonal directions to improve performance.
---------------------
r1911
ClosestReachableDisturbance: speed optimization when searching for jump window - limit search distance.
---------------------
r1910
Path AI: disabled sight/cover checks to improve performance.
---------------------
r1909
AI medic: improved code for militia medics. CalcCoverValue: increase bonus to position which will make enemy turn to shoot. Don't reduce range factor for positions without cover is soldier has SEEKENEMY order. When calculating bonus/penalty...
---------------------
r1908
LBE tooltips: improved code. GetHearingBonus: when using listening skilll, need several turns to reach max hearing bonus. Create AI soldier: give TNT if demolitions trait assigned and EXTRA_ITEMS option enabled. ClosestReachableDisturbance:...
---------------------
r1907
Improved code for LBE tooltip. DecayRottingCorpseAIWarnings: keep min 1 value underground. Always allow suppression for not SEEKENEMY soldier if he can see opponent after turning.
---------------------
r1906
DecayRottingCorpseAIWarnings: improved code to check room and level.
---------------------
r1905
DecayRottingCorpseAIWarnings: keep min value 1 when in combat (only for rooms).
---------------------
r1904
Re-enabled improved LBE tooltips. Red AI suppression fire: less chance for SEEKENEMY.
---------------------
r1903
Disabled extended BR LBE tooltips. UpdateAttachmentTooltips: separated launchables loop. Speed optimization: gMAXATTACHMENTS_READ, gMAXLAUNCHABLES_READ.
---------------------
r1902
Speed optimization: implement gMAXITEMS_READ, gMAXAMMOTYPES_READ. InternalInitItemDescriptionBox: added code to reset incorrect ammo type. UpdateAttachmentTooltips: first check items in a separate loop, improved vector search code. GetItemS...
---------------------
r1901
Bobby Ray: show some additional stats for LBE (MOLLE space available/consumed, MOLLE slots, combat pack/backpack combos) (by rftr). Fixed some warnings.
---------------------
r1900
Stop Speck from spamming your email when multiple new mercs are available on the same day (by rftr).
---------------------
r1899
BeginSoldierJumpWindowAI: for AI, first inflict damage from jumping into closed window, then start jump. IsGivingAid: also check START_AID, START_AID_PRN to allow AI soldier to stop medic animation that just started. AI_ACTION_JUMP_WINDOW: ...
---------------------
r1898
ClosestReachableFriendInTrouble: disabled medic code. Improved medic AI for more consistency, check that healing spot is safe.
---------------------
r1897
AI: don't end turn after starting first aid in turnbased to make healing faster.
---------------------
r1896
Allow to start dragging if only second hand is busy. Reverse movement: limit to 1 tile for seek/cover.
---------------------
r1895
AI searching for items to pick up: - allow to pick up from the same spot even in dangerous situation - use correct item id if weapon is not in hand - take into account trait skills when deciding to pick up weapon - changed code to compare d...
---------------------
r1894
Assigning skill traits to AI: for SMG/Assault rifle, check that gun is autofire/burst capable.
---------------------
r1893
AI skill traits assignment tweaks: - use IC_PUNCH instead of 128 for melee weapons - assign MARTIAL_ARTS_NT for militia only if soldier has brass knuckles - chance to assign demolitions trait if soldier has TNT - assign throwing trait if so...
---------------------
r1892
Removed quick item panel feature. Tactical panel: minor code improvements.
---------------------
r1891
New AI function: CheckClosedWindow. ClosestReachableDisturbance: - improved TNT check - don't change bLevel if found TNT spot
---------------------
r1890
Added CheckWindow function - check window in direction.
---------------------
r1889
EXTRA_ITEMS: - changed default TNT item to C1 - search for explosive item if C1 is not correct explosive, require ubDamage > 40
---------------------
r1888
InitializeMultiplayerProfile: use std::unique instead of std::auto_ptr. Path AI: disabled path flanking to improve performance.
---------------------
r1887
UIHandleNewMerc: - check if can place new merc at mouse location - set arriving spot for merc
---------------------
r1886
New functions: RoomNo, SameRoom. BeginSoldierClimbWindow: deduct APs for jumping when teleporting soldier. Deduct APs when teleporting soldiers to/from roof. AI_ACTION_JUMP_WINDOW: - in turnbased, add random facing change after jump, if sol...
---------------------
r1885
Re-enabled light sprite when throwing flares, but no muzzle flash so no interrupt. Play grenade_breaklight.ogg / grenade_breaklight_delay.ogg for all flare grenades (disabled grenade_flare.ogg / grenade_flare_delay.ogg).
---------------------
r1884
Removed randomness from window jump decision. Removed unused defines: TRAVELCOST_JUMPABLEWINDOW, TRAVELCOST_JUMPABLEWINDOW_N, TRAVELCOST_JUMPABLEWINDOW_W.
---------------------
r1883
Zombie AI: allow jumping through window in Red, Black state if it allows to improve path cost to closest opponent (only if ZOMBIE_CAN_JUMP_WINDOWS = TRUE).
---------------------
r1882
Path AI: moved smart flanking higher in conditions. GetAPsToJumpThroughWindows: code cleanup. New function: BeginSoldierJumpWindowAI, similar to BeginSoldierClimbWindow but for AI. AI_ACTION_JUMP_WINDOW: set next action to AI_ACTION_END_TUR...
---------------------
r1881
CalcMorale: - reworked health/breath modifiers - penalty if friends flanking and soldier is in sage spot - combined attack hit/target collapsed/target suppressed in one check - bonus if weapon is out of range
---------------------
r1880
Only allow path flanking if complex AI allowed.
---------------------
r1879
FindAdvanceSpot: avoid moving into light at night if spot has no standing sight cover.
---------------------
r1878
Added code for AI path flanking (avoid approaching to enemy from direction with corpses).
---------------------
r1877
Renamed WKAEUP_FROM_SLEEP to WAKEUP_FROM_SLEEP. EVENT_SoldierBeginFirstAid: stop dragging. CancelDrag: initialize new animation to fix incorrect position.
---------------------
r1876
Radio Listening skill: - simplified code - don't turn off listening when soldier spends AP (to make it more useful for AI) - need to spend 1 turn listening to start showing noise locators - listening stops when soldier is suppressed (reacte...
---------------------
r1875
CancelDrag: change dragged soldier to stationary. OCTH: disabled additional effective sight based penalty for obstacles.
---------------------
r1874
AI: - limit some special actions to ENEMY_TEAM (use TNT, use wire cutters, smoke to cover position, blow up fences with grenade) - make AI want to use listen skill when in rain - allow black cover advance code for militia and civilians
---------------------
r1873
OCTH: increase minimum miss to prevent lucky shots with low CTH at distance.
---------------------
r1872
Main Red AI: allow taking cover in realtime at the start of the turn if soldier recently saw/heard enemy, with 30% chance. GetSightAdjustmentStealthAtLightLevel: linear scale from darkness level.
---------------------
r1871
GetSightAdjustmentCamouflageOnTerrain: scale camo with light level. LightTrueLevel: re-enabled full effect of shadows on light level at night.
---------------------
r1870
Long jump: - change to stationary stance before jumping (fixes problems with jumping from moving animation) - switch to standing animation before jumping if soldier is prone (allows to correctly jump from prone stance)
---------------------
r1869
New option NIGHT_SHADOWS (FALSE by default). NightBonusScale: full night vision bonus in darkness. OCTH: disabled aim time bonus for max CTH. LightTrueLevel: shadows have no effect on light level at night.
---------------------
r1868
Added basic requirements to start snitching (alive, conscious, not in transit etc).
---------------------
r1867
Fixed AI role icon display.
---------------------
r1866
Path AI: sniper should avoid spots without cover.
---------------------
r1865
EstimatePathCostToLocation: safety checks.
---------------------
r1864
Medic AI: prefer safe path with cover from opponents. CheckForChangingOrders: switch BRAVESOLO< BRAVEAID, AGGRESSIVE medic to CUNNINGAID. CalcMorale: limit AI morale for AI medics if there are friends nearby and no successful attack.
---------------------
r1863
WillExplosiveWeaponFail: play dry fire sound to indicate weapon fail. CheckForChangingOrders: switch medic to defensive attitude. AICheckSpecialRole: add medic to special AI role.
---------------------
r1862
DecideMedic: - limit self healing to the start of the turn - fixed bug with changing facing
---------------------
r1861
Reworked medic AI code. CanMedicAI: check merc bodytype. WillExplosiveWeaponFail checks: if explosive type is not normal, use mini grenade explosion. GetClosestWoundedSoldierID: skip friend in turnbased if he is not bleeding and not dying
---------------------
r1860
New icon for AI GL operator. Disabled flanking when underground, simplified start flanking code.
---------------------
r1859
New enemy AI role icon: GL launcher. New enemy additional icons: has key, has TNT.
---------------------
r1858
Main Red AI: - moved decision weight calculation to PrepareMainRedAIWeights - don't search for cover in realtime
---------------------
r1857
End muzzle flash and show message if it hasn't been ended correctly, when: - soldier spends AP - soldier moves at new tile - soldier begins new turn
---------------------
r1856
Reduce default MAX_MOVEMENT_PENALTY to 40. Set default DIRECTIONAL_PENALTY = FALSE. Disable default INSANE vision bonus. Disable muzzle flash when throwing items. Disable muzzle flash when throwing flare/molotov as it doesn't get removed co...
---------------------
r1855
Allow AI to mark INVISIBLE bomb as seen if it has LOS to it. Inventory choosing: reduce chance for AI to have TNT, make it dependent on difficulty level.
---------------------
r1854
CountKnownEnemies: allow to check level. AI_ACTION_PLANT_BOMB: reduced delay to 1-2 turns. Use TNT to blow up enemies nearby: reduced chance to plant bomb. Use TNT to blow up walls and fences: - only at the beginning of the turn - always a...
---------------------
r1853
AI_ACTION_PLANT_BOMB: set dropped bomb to INVISIBLE.
---------------------
r1852
Player mercs should avoid moving into gas/fire when in autobandage mode or under AI control.
---------------------
r1851
Reworked spot danger checks to use SpotDangerLevel. Removed CheckNPCDestination. SearchForItems: allow same spot for picking up items, regardless of danger level. Code cleanup and optimization.
---------------------
r1850
AI_ACTION_PLANT_BOMB: - randomize delay 1-3 turns - set trap difficulty as 6 + SoldierDifficulty
---------------------
r1849
IsLocationSittable: return FALSE if location on roof is not sittable.
---------------------
r1848
IsLocationSittableExcludingPeople: return FALSE if location on roof is not sittable. ClosestReachableDisturbance: when checking spot to plant bomb, check if location is sittable.
---------------------
r1847
CheckForEndOfBattle: disable AddPossiblePendingEnemiesToBattle() to prevent bug with enemy appearing in sector after the battle end.
---------------------
r1846
New AI function: CountKnownEnemies() CheckForChangingOrders: - switch special role from BRAVESOLO/BRAVEAID/AGGRESSIVE(except machinegunner) to CUNNINGSOLO/CUNNINGAID - set Commander/MortarOperator/RadioOperator to DEFENSIVE - switch SEEKENE...
---------------------
r1845
CheckForChangingOrders: - switch special AI role to defensive - switch SEEKENEMY/DEFENSIVE to CUNNINGSOLO to make attacking AI more aggressive
---------------------
r1844
Allow higher chance when spreading fire: use sqrt(1 + ubGeneration).
---------------------
r1843
OCTH: - limit max long range penalty to AIM_BONUS_SAME_TARGET - penalty for shooting beyond visual range, up to SHOOT_UNSEEN_PENALTY at double visual range - no penalty for assisted shot - when calculating max aiming bonus, use average from...
---------------------
r1842
AI: don't try to blow up cliffs.
---------------------
r1841
Red AI: allow chance to really hit = 1 when deciding suppression fire.
---------------------
r1840
AbortPath, AbortFinalSpot: added smoke check to light at night check, minor code improvements.
---------------------
r1839
AbortPath, AbortFinalSpot: simplified light at night check.
---------------------
r1838
Restored first aid code.
---------------------
r1837
Red, Black AI: more restrictive rush attack, less chance when high percent killed.
---------------------
r1836
Red, Black AI: allow soldiers to blow up walls/fences/obstacles when flanking or to improve path cost. AI_ACTION_PLANT_BOMB: added DROP_ITEM/CUTTING_FENCE and THROW_IMPACT_2 sound. CountCorpses: simplified code, always check visible. Decide...
---------------------
r1835
AI: improved code to cut wire fence. Inventory choosing: added chance to create TNT.
---------------------
r1834
New AI action: AI_ACTION_PLANT_BOMB.
---------------------
r1833
Main Red AI: fixed weight calculation.
---------------------
r1832
HandleItem: use current spot and direction for self healing to prevent endless clock.
---------------------
r1831
CalcBestShot: - improved shoot through walls check - disabled return fire code
---------------------
r1830
CalcCoverValue: - allow advance to zombie/bloodcat/melee opponent if beyond gun range - when checking for retreat, always check if new spot is in gun range - apply aggression booster only when iRangeFactor > 0
---------------------
r1829
Increased max distance for reverse movement mode to 2. Simplified reverse movement mode code. Reworked code to determine reverse movement mode.
---------------------
r1828
More first aid kits for AI, depending on difficulty and game progress.
---------------------
r1827
NWSS: play room effect for first shot only.
---------------------
r1824
AI inventory choosing: more variety for mortar shells, improved hand/GL grenade choosing code. Added AICheckWeOutnumberSector AI function. AICheckWeOutnumberPublic: always require 2x number.
---------------------
r1823
DetermineMovementMode: allow CRAWLING near fences when taking cover.
---------------------
r1822
Tweaked AI path penalties.
---------------------
r1821
Covert operations: when alert raised and team recently saw/heard any enemy, immediately uncover any spy, except cowering civilian spy.
---------------------
r1820
Simplified CorpseWarning code: always return highest number of nearby corpse AI warning.
---------------------
r1819
Simplified AI corpse warning code.
---------------------
r1818
CalcBestShot: penalize standing/crouched stance for heavy weapons. AI: reduced weapon holding BP cost for raising weapon to 30, allow to raise weapon when crouched or prone.
---------------------
r1817
Tweaked the GL grenade number bonus for AI equipment.
---------------------
r1816
More ammo for mortars and grenade launchers when choosing AI inventory.
---------------------
r1815
SightCoverAtSpot bug fix: when checking adjacent reachable tiles for unlimited sight, use new spot.
---------------------
r1814
AI: - improved mortar use code: use next action to fire mortar after stepping back - use AICheckSpecialRole
---------------------
r1813
Improved any cover check.
---------------------
r1812
Experimental AI tweak: take into account movement penalty for enemy when deciding best cover, only if soldier is under attack or used weapon this turn.
---------------------
r1811
SightCoverAtSpot: improved code to check structure density.
---------------------
r1810
Improved code for AI path tweaks. SightCoverAtSpot, AnyCoverAtSpot: simplified code. AbortPath: initialize sDangerousSpot, sLastSafeSpot. AbortFinalSpot: initialize sDangerousSpot.
---------------------
r1809
AI: - improved code for using flashlight to reveal enemy position - improved code for using smoke to cover movement
---------------------
r1808
Added FindFenceAroundSpot() function. StopTacticalOrderL initialize ubTacticalTurns with 0. Improved code for using smoke for cover when flanking.
---------------------
r1807
Non-neutral civs should also discover active bombs.
---------------------
r1806
Improved code to check bomb nearby. Using grenade for special purpose: not during interrupt, check SoldierAI.
---------------------
r1805
AI: - only zombies, creatures, bloodcats, unarmed soldiers and neutral soldiers ignore empty vehicles - ignore empty vehicle if there is reachable regular opponent - prefer regular opponent over empty vehicle when deciding shoot or throw - ...
---------------------
r1804
HandleSight: also set bomb visibility.
---------------------
r1803
NCTH: when calculating movement offset, apply min aperture depending on distance.
---------------------
r1802
Don't check valid spot when starting to spot/watch. Increased chance for soldier to have wire cutters. SumDistanceToKnownEnemiesInRoom: fixed code. CheckTossGrenadeSpecial: - fixed code to find number of adjacent tiles of destructible obsta...
---------------------
r1801
Improved code for watching/spotting.
---------------------
r1800
VR r2698 fix: snitch assignments were not properly taking mercs out of vehicles
---------------------
r1799
Improved muzzle flash code for grenades. CommonEnterCombatModeCode: fixed DebugAI code.
---------------------
r1798
Increased AP cost to use radio set.
---------------------
r1797
RedSmokeDanger: set min terrain density to consider spot safe to 75.
---------------------
r1796
Improved r8460 fix: also check for incorrect ammo item. Red AI: fixed cautious move spot check.
---------------------
r1795
Red AI: Improved cautious move check.
---------------------
r1794
Set min 1 tile for distance when applying sight adjustment if original sight distance > 0.
---------------------
r1793
GetSightAdjustment: use max from camo/stealth penalty. AICheckSpecialRole: added GL role.
---------------------
r1792
Enable muzzle flash for flare/molotov.
---------------------
r1791
Experimental fix: stop muzzle flash in InternalReduceAttackBusyCount at the end of the attack instead of UIHandleLAEndLockOurTurn. Don't show muzzle flash when unjamming weapon. UseHandToHand: no bonus to strength when using taser. OCTH: pe...
---------------------
r1790
Main Red AI: improved code for watching modifiers.
---------------------
r1789
InLightAtNight: - simplified code - always check light in a room
---------------------
r1788
Reduce light for destroyed tank after 60 minutes. Check destroyed tanks more often. Correctly show muzzle flash when shooting. OCTH: weapon penalty starts from max(NORMAL_RANGE, max_weapon_range / 3).
---------------------
r1787
Reduce light radius for destroyed tank after DELAY_UNTIL_ROTTING.
---------------------
r1786
Added light for destroyed tanks. Changed message color for drop/pick up backpack to yellow.
---------------------
r1785
CalcBestShot: fixed bug with checking LMG when suppressing. Main Red AI: helping does not prevent seeking. FindFlankingSpot: - set search range to TACTICAL_RANGE / 4 - don't limit AP search budget - changed edge check to NorthSpot
---------------------
r1784
HandleArmedObjectImpact: fixed bug. Artillery strike code uses INT32 for gridno.
---------------------
r1783
Reduce bonus from laser in day light. WatchedLocLocationIsEmpty: - improved code to check if new gridno is out of bounds - use knowledge functions - don't ignore collapsed/cowering OCTH: - start weapon penalty from NORMAL_RANGE - minor co...
---------------------
r1782
Always make tank/vehicle corpses visible. Use wire cutters to cut fence: fixed bug. allow buddy explosion for flares (use for sound and animation).
---------------------
r1781
Use non-linear law when determining stat improvement speed.
---------------------
r1780
Improved code to slow down stat improving speed with high stat value/high delta. AI_ACTION_RED_ALERT: taunt only when raising alert for the first time. HandleInitialRedAlert: improved code to set alerted status for QUEEN and JOE.
---------------------
r1779
Fixed breaking AI deadlock code.
---------------------
r1778
Max darkness in shadows halves night vision bonus instead of completely removing it. NCTH, OCTH: improved code to determine target visibility. Improved code to break AI deadlock when ESC key pressed.
---------------------
r1777
DistanceVisible: don't allow returning negative value. CheckForEndOfBattle: re-enabled check to see if more enemy soldiers exist in the strategic layer. OCTH: no aiming if sight is blocked completely.
---------------------
r1776
Update sight when manipulating inventory. Improved code to start watching/spotting. DistanceVisible: - vision penalty should apply to all directions - apply cowering penalty even if soldier has no tunnel vision CanSpot: improved code to ch...
---------------------
r1775
Increment watched location when soldier hears enemy: check sight with raised weapon. CalcMorale: make only hostile civilians more aggressive. AbortPath: use SafeSpot check for last safe spot.
---------------------
r1774
Uncover military spy on sight in combat situation.
---------------------
r1773
When alert is raised, uncover any spy on close look, except cowering civilian spy. Don't reduce suspicion level if any alerted enemy recently saw/heard this spy.
---------------------
r1772
ClosestReachableFriendInTrouble: less restricting max distance check in turnbased.
---------------------
r1771
AICheckSpotTooFar: - FALSE if high percent of soldiers was killed - allow max range if soldier heard enemy recently
---------------------
r1770
Don't allow soldiers to spawn at top north spots.
---------------------
r1769
CalcManThreatValue: - take into account 100AP/25AP system - use ShockLevelPercent instead of bShock - use cube level 1 when checking CTGT
---------------------
r1768
CalcBestShot: - allow blind suppression fire for all teams except MILITIA_TEAM - improved LOS checks to take into account weapon raising - allow machinegunner to suppress any target - allow shooting through walls if high percent killed - al...
---------------------
r1767
Disable LOS caching.
---------------------
r1766
Renamed LOS functions.
---------------------
r1765
Increased temp string sizes. Code formatting.
---------------------
r1764
Reverted old/new F1..F10 selection method. Mercs don't die instantly option: increased damage to health below OKLIFE. Increased damage to health below OKLIFE for robots and zombies.
---------------------
r1763
DEFEAT_MODE option: fixed max value 4. PlayerStrength: improved code, also count covert soldiers. EnemyStrength: improved code. HandleMoraleEvent: fixed MORALE_RAN_AWAY, no penalty if soldier has covert trait and is in covert mode. CheckFor...
---------------------
r1762
New option DEFEAT_MODE: - 0: default, any lost battle is considered defeat - 1: if found alerted opponent in sector - 2: if at least one of retreating mercs is not covert - 3: if at least one merc was killed in battle - 4: if all mercs were...
---------------------
r1761
SightCoverAtSpot: improved enemy sight code. Code formatting.
---------------------
r1760
Also take into account MILITIA_TEAM aware status when retreating/losing battle.
---------------------
r1759
Apply morale/reputation penalty when retreating from sector/losing battle: also if CIV_TEAM was alerted. Also log defeat when losing battle if CIV_TEAM was alerted. Only play MUSIC_TACTICAL_DEATH when battle is lost if ENEMY_TEAM or CIV_YEA...
---------------------
r1758
CalcChanceToHitGun, CalcNewChanceToHitGun: improved code to determine target visibility.
---------------------
r1757
CalcCounterForceAccuracy, CalcChanceToHitGun, CalcNewChanceToHitGun code optimization: check SEEN_CURRENTLY knowledge before checking LOS.
---------------------
r1756
CalcBestShot: initialize bAimShotLocation = AIM_SHOT_RANDOM. Suppression fire: if low CTGT at current bAimShotLocation/bTargetCubeLevel, try to shoot higher to avoid hitting cover.
---------------------
r1755
Tactical panel: changed "suppressed" string to "under fire". NCTH, OCTH: don't count target as unseen if player merc is aiming at visible soldier.
---------------------
r1754
CalcMorale: improved code to limit AI morale from morale/shock level.
---------------------
r1753
[F] key: show first line with ORANGE font to better distinguish information. Code cleanup, removed unused code. CalcChanceToHitGun: fixed gun condition related bug in max weapon aim calculation. CalcMorale: allow MORALE_HOPELESS when under ...
---------------------
r1752
OCTH: - changed close range, long range to be based on TACTICAL range instead of DAY_VISION_RANGE - re-enabled long range reduction for directional movement penalty - re-enabled long range reduction for animation movement penalty
---------------------
r1751
AICheckWeOutnumberPublic: changed distance to TACTICAL_RANGE.
---------------------
r1750
AdjustMaxSightRangeForEnvEffects: no bonus from lightning for tiles under roof. CheckForGunJam: allow rain penalty when on the second level.
---------------------
r1749
CheckForGunJam: apply rain penalty only if there is no roof above.
---------------------
r1748
LineOfSightTest: improved smoke visibility test.
---------------------
r1747
CalcCoverValue: - allow STATIONARY soldiers advance when moving into cover or on the roof (except moving to the edge of the roof). - only allow retreat if morale is worse than MORALE_CONFIDENT CalcMorale: - only limit morale category from ...
---------------------
r1746
GetItemAimBonus: reverted code to square law from 0 to full at minrangeforaimbonus.
---------------------
r1745
GetItemAimBonus: - zero bonus if range < minrangeforaimbonus - full bonus if range >= 2 * minrangeforaimbonus - linearly scale bonus from minrangeforaimbonus to 2 * minrangeforaimbonus OCTH: - improved max weapon aiming bonus calculation -...
---------------------
r1744
GetMoraleModifier: use bMorale for AI instead of bAIMorale.
---------------------
r1743
CalcBestThrow: - reverted MAX_TOSS_SEARCH_DIST to 1 - increase search range to 2 if complex AI is allowed - don't increase search range for gas grenades
---------------------
r1742
Increased MAX_TOSS_SEARCH_DIST to 2. CalcBestThrow: - don't even check opponents too far for a throw - changed max distance to consider damage to opponent to max(3, ubSafetyMargin / 2)
---------------------
r1741
CalcBestThrow: fixed bug ending throw search if one if the checked spots was too far for throw.
---------------------
r1740
CheckTossGrenadeAt, CheckTossAt: avoid offscreen tiles as they may cause bugs when attacked.
---------------------
r1739
CalcBestThrow, GetBestAoEGridNo: exclude offscreen tiles as they may cause bugs when attacked.
---------------------
r1738
Don't allow artillery/mortar attacks to hit offscreen spots, to prevent bug with incorrect object trajectory or game crash.
---------------------
r1737
OCTH: reduce penalty for target hiding crouched/prone behind obstacle, if shooter is on roof and target is on floor level.
---------------------
r1736
Show message when AI radio operator uses radio.
---------------------
r1735
Civilian spy: only covert LBE allows to hide restricted items on close look.
---------------------
r1734
Add smoke after explosion: only on visible world tile. RandomGridFromRadius: improved code.
---------------------
r1733
Reverted M_PI to PI.
---------------------
r1732
ArtilleryStrike: supply GetArtilleryLaunchParams with launcher item and not just mortar shell, as it will check it's range later. RandomGridFromRadius: new code, avoid selecting spot not on visible world tile. GetArtilleryLaunchParams: adde...
---------------------
r1731
Updated names and tooltips for ingame options.
---------------------
r1730
Use Alt+Arrow to switch to closest merc in direction. Use Alt+D to switch to next unused merc. If "Smart selection" option is enabled, show next smart selected with light gray name, show next unused with light gray name if Alt is pressed. U...
---------------------
r1729
Added new ingame option: "Smart merc selection", which allows to use [D] button to quickly switch to closest merc. This option requires "Safe [D] button" option to be active. If "Show inactive mercs" option is also selected, the name of the...
---------------------
r1728
FindNextSmartSelectMerc: improved code to allow also checking considered mercs. Ctrl+Shift+D - disable interrupts for this merc until the end of this turn. Ctrl+D - end turn in turnbased. Ctrl+D - start turnbased when in realtime mode.
---------------------
r1727
OCTH: - increased base weapon aiming bonus to 40 - added gun status/condition to OCTH tooltip
---------------------
r1726
Updated tooltip and description for Safe [D] option.
---------------------
r1725
When safe [D] button option activated: - [D] switches to next closest merc who haven't been considered yet, if all mercs have been considered, it clears flag for all mercs and starts again - [Ctrl]+[D] ends turn (without disabling interrupt...
---------------------
r1724
Increase min duration for signal smoke to prevent it from disappearing before the artillery strike starts.
---------------------
r1723
New ingame option "Safe [D} button": disabled [D] button in combat. Localized strings for disabling interrupts until the end of turn. Improved Russian translation.
---------------------
r1722
GetBestAoEGridNo: improved code to store excluded tiles.
---------------------
r1721
Artillery strike: - count opponents seen/heard 2 turns ago - use full RADIO_OPERATOR_MORTAR_RADIUS when checking for friends/opponents - min rating to allow artillery strike depends on difficulty level
---------------------
r1720
OCTH tooltip: added effective marksmanship, morale bonus and fatigue penalty.
---------------------
r1719
OCTH: compensating stability penalty requires high experience level and high effective dexterity.
---------------------
r1718
OCTH: - show animation/directional penalty in one line as the game uses only max value - start base weapon range penalty (1% per tile) from NORMAL_RANGE * 2 - use square low when calculating base stability penalty - fixed close range penalt...
---------------------
r1717
Disqualify boxer if any player merc throws/drops something on the ring after the boxing started.
---------------------
r1716
Hopefully improved AI code: don't try to resume movement after ActionDone was executed. Limited AI reverse movement to 1 tile. Added more AI debug information.
---------------------
r1715
Don't add burn marks from jump grenades. Disable smoke creation for explosions on level = 1 without roof. Make smaller smoke from explosion for jumping grenades.
---------------------
r1714
Airburst: - improved code - changed chance to explode at each tile starting from distance - 1 tiles to 33% - always explode after reaching distance + 1 tiles
---------------------
r1713
Airburst feature: - added safety distance - grenade will only explode after traveling at least 5 tiles from shooter (unless it hits something before) - added some randomization to distance, there's a 50% chance for grenade to explode at eac...
---------------------
r1712
Added new flag to AmmoTypes.Xml: AMMO_AIRBURST = 16, which forces bullet to explode in the air once reached range to target or max weapon range. Airburst ammotype requires explosionSize > 1, highExplosive > 1. Explosion on the second level ...
---------------------
r1711
CalcBestThrow: - use correct known opponent's level when calculating CTH with rocket launcher - need higher CTH and CTGT (at least 80%) to decide to attack opponent in a room (or from a room) with hand grenade or grenade launcher, also appl...
---------------------
r1710
CalcCoverValue: - improved sight check - optimized code - lowered penalty from no cover when advancing
---------------------
r1709
CalcCoverValue: - don't allow advancing for soldiers with STATIONARY order - don't allow advancing when in a room except when advancing to room tile with cover or to a roof tile not on the edge
---------------------
r1708
EDB: minor code improvements.
---------------------
r1707
Improved EDB code: do not show AimLevels, PercentTargetTrackingSpeed and PercentDropCompensation when using OCTH.
---------------------
r1706
Improved OCTH tooltip code.
---------------------
r1705
Slightly changed OCTH tooltip order.
---------------------
r1704
Use bExpLevel instead of EffectiveExpLevel for AI calculations to speed up code execution a bit.
---------------------
r1703
OCTH: - modify max weapon aim by gun's status - modify max shooter aim by soldier's breath level - code optimization
---------------------
r1702
OCTH tooltip: added chance before applying weapon limit.
---------------------
r1701
Improved OCTH tooltip. Improved code for max weapon aim.
---------------------
r1700
OCTH: improved code for max weapon aim bonus.
---------------------
r1699
OCTH: max aim bonus = min (max weapon aim, max shooter aim).
---------------------
r1698
Update sight when doing item transformation.
---------------------
r1697
Improved disarming code.
---------------------
r1696
Added more OCTH info to OCTH tooltip (EXT_TOOLTIP_CTH option). Scope uses square law to modify sight range, depending on aim: no modification with no aim, normal modification with 4 aim clicks, square modification with 8 aim clicks.
---------------------
r1695
Interface: check GetAimBonus with GetMinRangeForAimBonus as distance, to get full aim bonus. GetItemAimBonus: - provide full aim bonus at distance > minrangeforaimbonus - scale aim bonus with square low at distance < minrangeforaimbonus OCT...
---------------------
r1694
Covert: - instead of damaging vest, mark this uniform type as compromised, so next time this spy will be seen in the same uniform he will be uncovered - when spy is uncovered, play "inform about" taunt - updated covert related strings
---------------------
r1693
Only apply CTH penalty to AI soldier if he can have skills to compensate.
---------------------
r1692
Do not uncover civilian spy at close distance when alert is raised if spy is cowering.
---------------------
r1691
Mark soldier as doing suspicious action, if: - he is heard making any type of attack - if someone is suppressed by his attack - if someone is taking damage, and attacker was recently seen/heard by soldier being hit
---------------------
r1690
CheckForEndOfBattle: clear enemy kill counter when battle is finished.
---------------------
r1689
Covert: - uncover military spy on sight if observing soldier is alerted - uncover civilian spy at close range if observing soldier is alerted
---------------------
r1688
OCTH: improved penalty for shooting at close range with long range weapons.
---------------------
r1687
Unified code to check if soldier should use civilian AI. SoldierAI: exclude civilians.
---------------------
r1686
Improved AI RPG use: - check for friendly fire chance when using rocket launcher - set min chance to hit 80% when deciding to use rocket launcher, except tanks or when shooting at tank - changed min chance to hit to use launcher/RPG so that...
---------------------
r1685
Test if civilian carries clothes only on close look.
---------------------
r1684
AI: - improved civilian AI behavior (cower/stop cower/run away in battle) - allow using grenade launcher underground as it uses low trajectory and can hit targets up to 200m
---------------------
r1683
OCTH: 10% penalty at max weapon range.
---------------------
r1682
OCTH: - shooting pistol one handed: penalty 5% - shooting SMG one handed: penalty 10% - shooting dual handed: penalty DUAL_SHOT_CTH_PENALTY which can be reduced with ambidextrous trait by PENALTY_TO_SHOOT_DOUBLE_GUNS_REDUCTION value
---------------------
r1681
CanDragInPrinciple: one of the hands should be free and should not carry two handed weapon in main hand.
---------------------
r1680
VR r2621 fix: freeze when ending turn with the squad list open and inventory auto-collapse enabled (by anv)
---------------------
r1679
Only show "suppression fire" message if target soldier cannot be seen after turning. CTGT(): fix bug with restoring original spot. CheckSuppressionDirection: improved code. Black AI: allow prefer bullets over aim when using NCTH, add chance...
---------------------
r1678
Limit suppression fire if SUPPRESSION_EFFECTIVENESS < 100.
---------------------
r1677
Added AI CTGT functions: - from soldier to soldier - from soldier to soldier with specified location, level and animation state - from soldier to location - from soldier to location with specified location, level and animation state
---------------------
r1676
When initializing cover cache (start/refresh/cancel AI, begin new turn), also stop/clear individual LOS cache.
---------------------
r1675
When ALT key is pressed, show [F1]..[F10] together with merc's name to indicate the key to quick select this merc. With default selection method, F1..F10 selects merc, with old selection method, just locates. Fixed incorrect spelling. Warni...
---------------------
r1674
CanSeeEnemyAtSpot, CanSeeProneEnemyAtSpot: use unified function with stance argument. SightCoverNearSpot, ProneSightCoverNearSpot: use unified function with stance argument. SightCoverAtSpot, ProneSightCoverAtSpot, CrouchedSightCoverAtSpot:...
---------------------
r1673
CanSeeEnemyAtSpot, CanSeeProneEnemyAtSpot: improved LOS check to take into account sight bonuses/penalties. SightCoverAtSpot, ProneSightCoverAtSpot, CrouchedSightCoverAtSpot: LOS check to take into account sight bonuses/penalties.
---------------------
r1672
AddNoiseAtRandomSightCoverSpot: - doubled max search range if complex AI allowed - reset gubNPCAPBudget, gubNPCDistLimit when path searching is finished
---------------------
r1671
Allow complex AI: improved code, removed unnecessary gfTurnBasedAI check. Black AI: try to use regular grenade for special purpose if soldier cannot attack or has low CTH.
---------------------
r1670
FindNearestUngassedLand, FindNearbyDarkerSpot: - optimization: don't check spots already checked in previous loop - increase max distance to 35, reduce to 25 if complex AI not allowed, reduce to 15 in realtime
---------------------
r1669
Raise suspicion for covert: for seen/heard this turn, check if spy can be seen by soldier (if he turns).
---------------------
r1668
Fixed critical bug in LOS function.
---------------------
r1667
For AI, replace SoldierToSoldierLineOfSightTest, SoldierTo3DLocationLineOfSightTest, SoldierToVirtualSoldierLineOfSightTest and LocationToLocationLineOfSightTest with LOS functions. Fixed incorrect AI LOS checks. CanDragPerson: use world mo...
---------------------
r1666
Added new LOS functions: location to location (uses stance instead of LOS_POS), soldier to soldier (with option to force weapon ready). ClosestReachableDisturbance: check all opponents when in combat situation (if soldier is under fire or s...
---------------------
r1665
Say TAUNT_RELOAD, TAUNT_OUT_OF_AMMO taunts if mag size > 4 or Chance (CHANCE_SAY_ANNOYING_PHRASE).
---------------------
r1664
Red, Black AI: - possibly update knowledge before any other actions. - added more debug information
---------------------
r1663
TellPlayerAboutNoise fix: one direction was not checked when using Extended Ear. DecayPublicOpplist: apply HEARD_3_TURNS_AGO tweak only for valid opponents. TeamSeesGridNo: only check friends that are not too far from GridNo or look in it's...
---------------------
r1662
New AI function LOS: check line of sight from soldier to soldier using specified position/level/stance. Removed SoldierAtGridNoToSoldierLineOfSightTest function. Reverted r8112 fix: for tanks use default LOS pos. Minor code improvements, wa...
---------------------
r1661
Code cleanup, formatting.
---------------------
r1660
Red, Black AI: don't start retreat/rush attack if another tactical order is active.
---------------------
r1659
Play USE_WIRE_CUTTERS sound when repairing wire fence. Play Sounds\Misc\Fortification1.ogg .. FortificationN.ogg sound when doing fortification action.
---------------------
r1658
Red, Black AI: stop retreating if current spot is safe. Black AI: start retreating only if morale < MORLE_CONFIDENT. SpotDangerLevel: also check Water and CorpseWarning for danger level = 1.
---------------------
r1657
Use tactical order code for rush attacks and retreats. Minor code improvements and warnings fixes.
---------------------
r1656
Use SOLDIER_DOING_FORTIFICATION flag instead of usMultiTurnAction to show fortification icon on merc's portrait. Renamed bOverTurnAPS to sTacticalUnused. Renamed sMTActionGridNo to iTacticalUnused. Renamed usMultiTurnAction to ubTacticalTur...
---------------------
r1655
Moved flanking flag SOLDIER_EXTRA_FLANKING from usSoldierFlagMask to TACTICAL_FLAG_EXTRA_FLANKING in flags.ubTacticalFlags.
---------------------
r1654
Red AI: don't start flanking if another tactical order is active. Change type of ubTacticalFlags to UINT8.
---------------------
r1653
Minor code improvements.
---------------------
r1652
Reworked flanking code to use bTacticalOrder.
---------------------
r1651
SOLDIERTYPE: renamed bRTPCombat to bSuppressionShock.
---------------------
r1650
Removed OLDSOLDIERTYPE_101 class.
---------------------
r1649
Added enum for tactical order types. SOLDIERTYPE: formatting, added comments.
---------------------
r1648
Flanking: minor code cleanup.
---------------------
r1647
Removed SNIPER order. Disabled options: AI_SNIPER_RESTRICT_TO_ELITE, AI_SNIPER_MIN_RANGE, AI_SNIPER_CHANCE, AI_SNIPER_CHANCE_WITH_SR.
---------------------
r1646
ManSeesMan: also call SetNewSituation if opponent's level is different.
---------------------
r1645
ManSeesMan: only call SetNewSituation if location is different to reduce frequency of AI re-evaluation.
---------------------
r1644
Red, Black AI; improved code to reserve APs to go prone/hide after shooting. Only allow radio animation on initial red alert
---------------------
r1643
Improved code for militia/enemy artillery strike, added small chance for smoke shells on low progress.
---------------------
r1642
HandleSight: check if soldier can see hidden corpse and make it visible (only for player team or militia team, if WE_SEE_WHAT_MILITIA_SEES_AND_VICE_VERSA = TRUE). Skill Menu: check if can drag corpse before adding it to menu. Added support ...
---------------------
r1641
Press ESC to close skills menu. Press ESC to stop dragging. Minor code improvements.
---------------------
r1640
Only load StructureMove.xml file if it exists, to allow compatibility with stock 1.13 and mods.
---------------------
r1639
r8870 Improved feature: structures can be dragged. Which ones is defined in a new xml (by Flugente)
---------------------
r1638
When assigning bNextAction, also clear usNextActionData if not used. When switching to bNextAction, clear iNextActionSpecialData since we don't need it anymore.
---------------------
r1637
CancelAIAction: clear next action data. TurnBasedHandleNPCAI, RTHandleAI: clear next action data before making decisions.
---------------------
r1636
Don't show "no clothes item in xml" to allow using new camo palette without defining all new clothes in XML Fixed compiler warnings.
---------------------
r1635
Minor code cleanup.
---------------------
r1634
Lua: minor code improvements.
---------------------
r1633
Fix compiler warnings.
---------------------
r1632
Check full item size (with attachments) when trying to put item into gun sling.
---------------------
r1631
PopupAttachmentInfo class: added missing initializations in constructor. DragSelection class: added missing initialization in constructor. GenerateRandomEquipment: fixed alcohol item check. Fixed some warnings.
---------------------
r1630
BuildString class: added missing assignment operator. MERCPROFILEGEAR class: added missing copy constructor. WORLDITEM class: added missing copy constructor. CheckForGunJam: fixed min/max reliability limits. Fixed some warnings.
---------------------
r1629
ClosestReachableDisturbance: - don't skip opponents if knowledge on last found opponent is HEARD_3_TURNS_AGO - only check noise locations if soldier haven't seen opponents recently and closest disturbance is not reachable or noise is closer...
---------------------
r1628
CalcBestShot: - check max aim only of complex AI not allowed or if solder is sniper/marksman and not in close combat. - sniper/marksman prefer shot with max CTH instead of best hit rate - prone soldier prefers max CTH instead of best hit r...
---------------------
r1627
Allow building sandbags with shovel on any terrain where filled sandbag can be placed. Improved code for building fortifications with shovel.
---------------------
r1626
Allow creating fortification with shovel if there is full sandbag in inventory. When creating fortification with shovel, first use full sandbags from inventory, them use empty sandbags.
---------------------
r1625
Making fortification with shovel requires empty sandbag in inventory, which get used in the process. Removing fortification creates filled sandbag on the ground. EXTRA_ITEMS option: add shovel and empty sandbags to some of enemy soldiers.
---------------------
r1624
Disabled retrieving sandbag item when removing fortification.
---------------------
r1623
Red, Black AI: allow using wire cutter for garrison soldier if rush attack active.
---------------------
r1622
Don't play USE_WIRE_CUTTERS sound for fortification actions. Play PICKING_SOMETHING_UP sound when finishing fortification action. Fix problem with entering certain sectors.
---------------------
r1621
Don't play COOL quote when doing fortification actions.
---------------------
r1620
Allow fortification actions in diagonal direction when action spot is directly near soldier.
---------------------
r1619
Improved fortification code, fixed various fortification related bugs. Soldier can use shovel to build fortification without sandbags, only on grass/dirt surface.
---------------------
r1618
Uncover spy if dragging someone.
---------------------
r1617
Repair fences: - use AP_USEWIRECUTTERS for AP cost - correctly calculate AP when soldier needs turning to start repairing fence - disable repair cursor when soldier is prone
---------------------
r1616
Disabled multi turn actions, all fortification actions are instant and use wire cutter code. Fortification actions cost AP_USEWIRECUTTERS. Fixed AP calculation for wire cutter and fortification cursor when soldier needs to turn first. Show ...
---------------------
r1615
ClosestReachableDisturbance: fixed bug with using stored closest reachable opponent. Improved code to repair structures. Improved code to store original structure for structures that can be swapped (use tile database instead of checking the...
---------------------
r1614
Use toolkit to repair wire fences instead of wire cutters. Using toolkit to repair wire fences takes 5-15 status points.
---------------------
r1613
Soldier structure: use InitializeExtraData() to initialize all added extra data that is not saved. ClosestReachableDisturbance: in realtime, check only closest opponent if Slow PC options is enabled.
---------------------
r1612
ClosestReachableDisturbance, ClosestReachableFriendInTrouble: improved code, store found friend/opponent in the first loop if successfully passed all checks.
---------------------
r1611
ClosestReachableDisturbance, ClosestReachableFriendInTrouble: always check stored friend/opponent first, then check other soldiers.
---------------------
r1610
ClosestReachableDisturbance, ClosestReachableFriendInTrouble: improved AI optimization code.
---------------------
r1609
AI speed optimization: lower max search range when searching for items in realtime or if complex AI not allowed
---------------------
r1608
AI speed optimization: - remember last reachable opponent (for 1-5 turns), ignore other opponents except closest known, if complex AI not allowed - when complex AI not allowed, ignore opponent if farther away than closest reachable - rememb...
---------------------
r1607
Allow breaking AI with ESC key after 1 second.
---------------------
r1606
Suspicion counter: bonus if opponent previously saw this spy uncovered.
---------------------
r1605
Improved gbSeenOpponents code, use special value for uncovered opponents.
---------------------
r1604
Improved check for gbSeenOpponents[]
---------------------
r1603
Improved code for unintended hits: reduce chance to hit enemy with distance.
---------------------
r1602
NCTH: limit max deviation only when shooting at visible target.
---------------------
r1601
DamageSoldierFromBlast: - improved check for various types of explosives - heavy weapons skill provides DAMAGE_TO_TANKS_PERCENT_BONUS against tanks only when using rocket launcher - heavy weapons skill provides HW_DAMAGE_PERCENT_BONUS when...
---------------------
r1600
Red, Black AI: allow longer autofire for tanks fore better suppression.
---------------------
r1599
Fixed SOLDIER_TAKEN_LARGE_HIT, SOLDIER_TAKEN_HIT flags for vehicles/tanks.
---------------------
r1598
EXTRA_ITEMS option fix: chance to give wire cutters to elite/regular soldiers.
---------------------
r1597
Enabled REPAIR_WIRE_FENCES option.
---------------------
r1596
New option REPAIR_WIRE_FENCES (FALSE by default) allows repairing cut fences using wire cutters.
---------------------
r1595
Red AI: - improved code for cutting fence for flanking - added NewOKDestination check when finding spot to shorten path
---------------------
r1594
EXTRA_ITEMS option: added chance to equip soldier with wirecutters. Red, Black AI: - soldier can try to cut fence when flanking if he cannot find next flanking spot - soldier can cut fence with wirecutters if it allows him to shorten path ...
---------------------
r1593
Red AI: - radio operator may decide to jam frequencies if team is attacking and there are radio activated bombs in sector and RADIO_OPERATOR_JAMMING_BLOCKSRADIOBOMBS = TRUE - radio operator may decide to use listening mode if RADIO_OPERATOR...
---------------------
r1592
Increased penalty for boxers for tiles with blood and marbles. New AI action: AI_ACTION_HANDLE_ITEM.
---------------------
r1591
Medic AI: added code to drag wounded friend into safe place.
---------------------
r1590
New AI action: AI_ACTION_CANCEL_DRAG. IsActionAffordable: added support for missing AI actions. AI: - stop dragging before deciding anything - use IsActionAffordable() check for AI_ACTION_DRINK_CANTEEN and AI_ACTION_USE_DRUG
---------------------
r1589
BecomeSpotter: only show messages for player team. Red, Black AI: medic can use smoke grenade to cover himself and wounded friend before starting healing. Added more debug info to medic/first aid AI.
---------------------
r1588
Re-enabled using radio for calling artillery or reinforcements during player interrupt. If player is ordering artillery strike during interrupt, 1 wait turn is added.
---------------------
r1587
Enemy role icon: use color code to indicate radio operator status - red for jamming, blue for listening, purple for scanning.
---------------------
r1586
AI_ACTION_USE_SKILLL improved code, check is usActionData is defined, default ubID = NOBODY New AI functions: TeamHasJammingRadioOperator, TeamCanOrderArtilleryStrike. CalcBestThrow: team needs radio operator with active scanning to determi...
---------------------
r1585
Red AI shooting code: optimization for big battles.
---------------------
r1584
Red AI: allow shooting code at least once every turn and every time soldier moves at new tile.
---------------------
r1583
Fixed critical bug in FindNearbyDarkerSpot()
---------------------
r1582
Reload when in safe situation: - chance 25% - check safe spot
---------------------
r1581
Red AI: try to reload gun when in peaceful situation and have less than 1/2 of magazine.
---------------------
r1580
Red AI: - removed second CheckIfShotPossible() call - only use reloading before suppression fire if weapon is autofire capable and can swap clips
---------------------
r1579
AI: - fixed CanNPCAttack check - when trying to step back to deploy mortar, check if we can reach the spot and have enough APs - use reverse movement when trying to step back to deploy mortar
---------------------
r1578
Improved r8658: check weapon magazine size and chance to say phrase when using gun.
---------------------
r1577
Re-enabled r8658: If a gun has a magazine size < 5, the 'out of ammo' soundfile is only displayed with a chance of CHANCE_SAY_ANNOYING_PHRASE. This should make using guns with tiny magazine sizes less annoying. (by Flugente)
---------------------
r1576
AI Artillery strike (for militia team and enemy team): - try to find first mortar shell item instead of using hardcoded id = 140 - at low progress level, use tear gas shells to make artillery strikes less devastating - at high progress leve...
---------------------
r1575
Red AI: - reload before suppression fire less often in dangerous situation, also check AP_MINIMUM to allow reloading before suppression fire check - use CanNPCAttack() check only for sniper and suppression fire
---------------------
r1574
GetBestAoEGridNo: - check valid opponent - use general Knowledge and location functions - allow SEEN_THIS_TURN and HEARD_THIS_TURN knowledge
---------------------
r1573
CanUseSkill: cannot use artillery and reinforcements skills during interrupt. IsJamming, IsScanning: don't turn off radio as these functions can be used by AI. New AI function: TeamHasListeningRadioOperator() TeamHasScanningRadioOperator us...
---------------------
r1572
Added small chance for enemy soldiers to carry signal smoke grenade. AI soldiers can attack with red smoke grenade if there is artillery strike active or to scare opponents. AI will not use red smoke grenades underground and will not throw ...
---------------------
r1571
Improved code for first time sector description (moved message code to HandleTacticalEndTurn).
---------------------
r1570
Improved first time sector description: only show when there is selected active merc.
---------------------
r1569
New tags in SectorNames.xml: <szFirstTimeDescription>, <szFirstTimeDescription1>, <szFirstTimeDescription2>, <szFirstTimeDescription3> - show sector description message when entering sector for the first time, 1..3 are used for underground ...
---------------------
r1568
HandleGotoNewGridNo: use standard grenades (smoke grenade, tear gas grenade, mustard gas grenade, molotov) if possible to determine damage to soldier moving through tile. If grenade is not found, first search for hand grenade of needed type...
---------------------
r1567
ADD_SMOKE_AFTER_EXPLOSION option: use first found smoke hand grenade if SMOKE_GRENADE is incorrect item.
---------------------
r1566
Improved code for AI to search for grenades of various types.
---------------------
r1565
Boxers: PUNCH_APS_REDUCTION reduces APs for attack when using <BrassKnuckles> item. Don't allow ninja kick animation if using punch weapon.
---------------------
r1564
DetermineMovementMode: improved reverse mode check (don't change stance, use WALKING instead of RUNNING).
---------------------
r1563
AI: when deciding using reverse movement mode, check if current spot or movement spot can be seen or attacked by enemy, or if soldier is under attack or there is fresh corpse nearby.
---------------------
r1562
SoldierGotHitExplosion: lowered explosion power requirement for flyback animation to 40
---------------------
r1561
Re-enabled roof collapse animation.
---------------------
r1560
FindAmmoToReload: added assert messages to indicate that searching attached weapon failed. DecideAction: initialize bWeaponMode = WM_NORMAL to prevent FindAmmoToReload from crashing. AI reverse movement: check that reverse movement is possi...
---------------------
r1559
Experimental feature: use alt movement mode when moving for 1-2 tiles backwards or sideways. DetermineMovementMode: replace RUNNING with WALKING when using reverse movement mode. Red AI: - alt movement mode for retreat - alt movement mode w...
---------------------
r1558
Improved suppression calculation on the edge of the roof: allow check from tile not on a roof to tile on flat roof.
---------------------
r1557
Improved suppression calculation on the edge of the roof.
---------------------
r1556
Use full suppression when target is on the edge of the roof. OCTH: only allow min cth 1% when not aiming at head and not shooting beyond weapon range.
---------------------
r1555
Suppression: restored 1/3 chance for buckshot.
---------------------
r1554
Suppression: - removed 1/3 chance for buckshot - improved calculation for damage reduction for buckshot - removed pMapElement->ubAdjacentSoldierCnt > 0 check since ubAdjacentSoldierCnt seems to not work correctly - improved calculation of n...
---------------------
r1553
CalcBestShot: improved hit rate calculation, take into account possible options INCREASE_AIMING_COSTS, FIRST_AIM_READY_COST_DIVISOR. OCTH: sniper with sniper rifle halves SHOT_HEAD_PENALTY, marksman with sniper rifle, rifle or assault rifle...
---------------------
r1552
CalcBestThrow: - improved AI code to avoid hitting friends with grenades - correctly set usGrenade for mortar attacks CheckTossGrenadeSpecial: fixed incorrect fragments range calculation.
---------------------
r1551
Added a nullpointer check to a DDraw call, gets rid of one FIXME. (by Asdow)
---------------------
r1550
ProcessStatChange: lowering skill progress chance from stat delta cannot make it lower than 1.
---------------------
r1549
VR r2559 fix: climbing related AI deadlocks (by anv)
---------------------
r1548
r8881: Changed the way the STI file for CTH indicator is loaded to prevent the game from constantly loading and unloading the graphics file from the disk every time the function gets called. Now it's only done once per the lifetime of the g...
---------------------
r1547
Women get badguy battlesound sets 6-8.
---------------------
r1546
Use more battlesounds for female bodytypes.
---------------------
r1545
r8863 (by Fugente): - Fix: assignment not displayed consistently in personnel page - Fix: bizarre function
---------------------
r1544
r8868 fix (by silversurfer): - when USE_XML_SQUADNAMES was TRUE, the squad box was shifted upwards over the column headers, causing clipping issues - when READ_PROFILE_DATA_FROM_XML was TRUE, the game would still read profile data from prof...
---------------------
r1543
r8871 fix: animation loops until new order given (by Flugente)
---------------------
r1542
r2479 fix: NPC go to grid script properly interrupts cowering (by anv) CalcBestSHot: only try to suppress alive and conscious human targets. DecideActionRed: disable stealth and reverse movement mode earlier.
---------------------
r1541
r8875 Fix: Re-enabled the condition check for mercs to enter tactical screen from map screen. Someone removed it, which made it possible to enter tactical with no mercs in the sector. (by silversurfer)
---------------------
r1540
CalcBestShot: fixed bug for stance change check.
---------------------
r1539
Improved friendly fire AI code.
---------------------
r1538
r8869 fix: nullpointer access (by Flugente)
---------------------
r1537
r8841 fix: when failing to apply a gasmask to another soldier, the message still states success (by Flugente) r8839 Don't check whether an explosion damaging a room pisses of civilians if there is no room to begin with (by Flugente) r8835 f...
---------------------
r1536
r8843 (by Flugente) - Fix: wrong face displayed on insurance website - Chg: no insurance payout on suspicious deaths (no enemy presence during merc death, or merc died from friendly fire)
---------------------
r1535
r8846 fix: mercs staffing a facility for global propaganda cause mine income to drop to 0% (by Flugente)
---------------------
r1534
r8855 fix: dragging soldiers is frequently canceled (by Flugente) CalcMorale: improved code.
---------------------
r1533
r8816 Fix: crash after heli landing in UB (by Asdow) Fix: unnecessary town initialization in UB (by Asdow)
---------------------
r1532
NCTH: tweak distance based first shot aiming penalty. OCTH: tweak increase max distance based first shot penalty.
---------------------
r1531
Fix: compiler warnings
---------------------
r1530
r8813: minor code cleanup (by sun_alf)
---------------------
r1529
r8812: Minor code cleanup. Critical gun fail: show explosion animation if bVisible == -1
---------------------
r1528
Bigmaps lockbusting fix: removed incorrect type cast (by Franimus). Don't show names of inactive mercs if cursor is on target (to prevent names appearing when using ALT+scroll for setting burst length).
---------------------
r1527
Do not show extended status for inactive mercs when multi selection enabled.
---------------------
r1526
Lowered chance for unintended hits. Show names of inactive mercs using dark gray color when ALT pressed or new ingame option TOPTION_ALWAYS_SHOW_INACTIVE enabled. Show extended status for inactive mercs: sniper, spotter, dragging, dragged, ...
---------------------
r1525
New tag <shotAnimation> in AmmoTypes.xml allows defining custom shot animation. r8115 fix: negative values for ExplosionSoundID or AltExplosionSoundID in ExplosionData.xml cause a game crash, even though negative values are intended (by Flu...
---------------------
r1524
Enemy health color: show adrenaline and rush attack using same color.
---------------------
r1523
Spreading fire: - do not spread fire on roof - ignore rain if in building under roof
---------------------
r1522
Complex AO: - only for ENEMY_TEAM - reduced max combatants to 40 - only in turnbased mode
---------------------
r1521
Added small chance for critical gun jam if weapon is in bad status (but not overheated).
---------------------
r1520
Smoke effect for gun shots: - requires ammoflag 8 - only for merc bodytypes - only for guns
---------------------
r1519
Added small chance for weapon to critically fail when jamming while highly overheated.
---------------------
r1518
AI: - sniper/marksman can use wisdom drug to improve CTH - sniper/marksman can use vision drug if under attack and cannot see enemy
---------------------
r1517
AI soldiers will use drugs sometimes if available. Play sound when drinking alcohol (Sounds\Misc\Alcohol1.ogg, Alcohol2.ogg, ...) EXTRA_ITEMS: add chance for enemy to have various drugs.
---------------------
r1516
Show drunk status for enemy soldiers using health text color.
---------------------
r1515
AI: drink from canteen if low on breath. ApplyCanteen: display no AP message only for player mercs. EXTRA_ITEMS: Randomly add canteen to AI.
---------------------
r1514
AI: improved retreat code.
---------------------
r1513
Suppression: - lowered AP to react when prone - only cower when reached cowering shock level - deduct AP when prone and react - unready weapon if prone and react
---------------------
r1512
Rush attack start: add adrenaline effect.
---------------------
r1511
Increased MAXATTACHMENTS to 60000 for Aimnas to work. Minor code improvements and warnings fixes. Project update.
---------------------
r1510
GenerateProsString, GenerateConsString: don't use overheating for gun descriptions. GetHelpTextForItem: use GetGunAccuracy. DrawItemUIBarEx: use GetGunOverheatDisplayPercentage to draw gun temperature. GetGunAccuracy: - start lowering accur...
---------------------
r1509
Path AI tweaks.
---------------------
r1508
Allow complex AI calculations only when there are no more than 64 combatants in sector. Allow small chance of unintended hit for prone/cowering persons. AICheckWeOutnumberPublic: change to friends >= enemies + 5. AICheckWeOutnumber: additio...
---------------------
r1507
HourlyLarryUpdate: - initialize usTemptation for every soldier - all facility types including AMBIENT can trigger addictions
---------------------
r1506
Improved code to update scope mode when changing stance. CalcBestShot: allow shooting HeavyGun in standing stance if not twohanded or alt weapon holding is disabled. GetBPCostPer10APsForGunHolding: also check twohanded and standing stance ...
---------------------
r1505
VR r2370: fixed hourly alcohol/drug update - drug items were being used up without applying drug effects, preventing Larry profile swap and background related drunkenness (by anv)
---------------------
r1504
Improved code for unintended hits.
---------------------
r1503
NCTH: modify effective suppression range depending on weapon recoil. HearNoise: don't randomize noise location if opponent is seen publicly. CalcBestShot: limit return fire code to this turn, consider only previous attacker.
---------------------
r1502
Switch from alt weapon holding when changing stance in realtime. NCTH: limit effective suppression distance when shooting in alt weapon holding mode.
---------------------
r1501
NCTH: - limit max shown cursor aperture - limit max bullet deviation, depending on weapon range - limit ground shots
---------------------
r1500
Structure damage: improved code.
---------------------
r1499
DamageStructure: fix possible division by zero.
---------------------
r1498
Improved code to create fire on grass from tracers.
---------------------
r1497
Guns can damage structures: - mostly light structures (wood, light metal) can be damaged - chance is higher when using AP ammo - chance is higher when using high power ammo - when using tracer ammo, there's a small chance to create fire whe...
---------------------
r1496
Travel time improvements: - negative backgrounds work for foot travel - for foot travel, use lowest value - for vehicle/air travel, use highest value - no bonus for ranger when flying in helicopter
---------------------
r1495
When tracer bullet hits ground, theres a chance that fire will be created if there is grass on this tile. Spreading fire code: - check that Molotov (item 979) is fire explosive item. - removed light creation as it's now handled in SpreadEf...
---------------------
r1494
UIHandleNewBadMerc: - randomly create admin, regular or elite - create soldier at interface level Slip on blood: improved code. VaporizeCorpse: spread blood only if fExplode = true. RemoveBlood: correctly remove blood on specified level. Up...
---------------------
r1493
CalcBestThrow: - use smoke launchable if not found non smoke - limit safety margin to DAY_VISION_RANGE / 2
---------------------
r1492
Added r7783, r7788 (by silversurfer).
---------------------
r1491
Restored AI decision delay when recruiting new troops, less AI waiting on higher levels.
---------------------
r1490
Interrogate prisoner: don't change reinforcement pool when unlimited reinforcements enabled. EvaluateQueenSituation: - allow recruiting when pool size drops below QUEEN_POOL_INCREMENT_PER_DIFFICULTY_LEVEL, this should result in more stable ...
---------------------
r1489
VR r2348 fix - loading .jpc.7z with a single image would cause exception as file was not considered open (by anv) Show tooltips for all soldiers. Allow tooltips for bloodcats, bugs, tanks and robots in debug mode.
---------------------
r1488
Halved chance to slip on blood.
---------------------
r1487
Update soldier morale when changing inventory.
---------------------
r1486
NWSS: - new tag in AmmoStrings.xml: <NWSSCaliber> - new tags in Weapons.xml: <ubNWSSCase>, <ubNWSSLast>, <szNWSSSound>
---------------------
r1485
Hotkeys for quick transformations: Shift+O - transform scope Shift+L - transform flashlight Shifr+Y - transform laser
---------------------
r1484
Only allow opportunity attack when boxing is active and boxer is in RED/BLACK status.
---------------------
r1483
Black AI: improved code for sidearm using. CalcBestShot: always check if can shoot at target seen by another soldier.
---------------------
r1481
Don't allow chain reaction for items on the ground with ubVolatility = 0. Lowered chain reaction bonus chance for items on the ground.
---------------------
r1480
[F] key should correctly show CTH for different types of attacks: - gun - launcher - grenade - thrown knife - punch - toss item
---------------------
r1479
Stab/Steal/Punch attacks: reduce defender rating if defender is blind or cannot see attacker after turning (only for human bodytypes).
---------------------
r1478
Scale tactical ambients and sector steady ambients with general effects volume. Minor code improvements.
---------------------
r1477
First decay light effects and then decay smoke effects, because fire can create light. Dynamic creation of light effects for fire and signal smoke. Fixed/improved code to decay light effects so that ubDuration works correctly. Note: <ubRadi...
---------------------
r1476
New tag in CivGroupNames.xml: CustomSide, allows to set custom side for civilian group using tag Side.
---------------------
r1475
Red AI: when soldier is being bandaged, turn to closest known threat, crouch if not crouched and wait.
---------------------
r1474
Do not show icons on big portraits.
---------------------
r1473
No cowering effect in water.
---------------------
r1472
Combined all standard interrupt checks into one function CanInterrupt(). Reset SOLDIER_TAKEN_LARGE_HIT flag at the end of each turn. Tank uses smoke grenade for cover if he is under attack, has health < max health - 20 and haven't seen enem...
---------------------
r1471
When shooting at swimming soldier, allow aiming at head and torso. Zombie AI: - CalcMorale() - set default aiming location as AIM_SHOT_RANDOM
---------------------
r1470
More zombie raise sounds. More water splash sounds.
---------------------
r1469
Localized messages for item moving assignment. ClosestReachableDisturbance: - zombies do not attack vehicles - improved code to prefer not dying enemies
---------------------
r1468
TurnSoldierIntoCorpse: fixed damage to items dropped by MILITIA_TEAM. GetCorpseAtGridNo: check if sBaseGridNo is out of bounds. ClosestReachableDisturbanceClosestKnownOpponent, ClosestKnownOpponentID: boxers should not ignore dying opponent...
---------------------
r1467
Improved noise volume bonus when dragging something. Improved dragging sound: any number of sounds supported.
---------------------
r1466
Fixed translation bug.
---------------------
r1465
Improved dragging sound. Fixed grenade pin sound for signal smoke.
---------------------
r1464
Mercs can drag corpses and people (by Flugente). Play sound when dragging something. Mercs always make movement noise when dragging. Movement noise is louder if soldier is dragging something. Disabled showing trait distance when selecting s...
---------------------
r1463
r8482 fix: boxing exception to covert behaviour only works between 2 boxers (by Flugente) Minor AI code improvements.
---------------------
r1462
CheckNPCDestination: improved code. FindBestPath: allow SEEKENEMY to move into deep water. UIPlotPath: disabled code to ignore person at destination to fix endless clock when moving to invisible opponent. ClosestReachableDisturbance: when i...
---------------------
r1461
Improved CheckNPCDestination check - compare danger levels.
---------------------
r1460
Added CheckNPCDestination function for common checks for: - gas - deep water - light at night - north spot - door nearby - explosive structure nearby - bomb nearby - red smoke danger
---------------------
r1459
HandleFlashLights: use HandleSight for soldier only if he is not dying.
---------------------
r1458
RandomFriendWithin: more checks for target spot, improved code. RandDestWithinRange: more checks for target spot, improved code.
---------------------
r1457
LegalNPCDestination: only avoid locations near doors in green mode. Improved AI location searching routines, added LegalNPCDestination checks. FindFlankingSpot: removed edge of the map check.
---------------------
r1456
Added random chance to create fire when explosion damages burnable object (grass, cloth, furniture). Randomized chance to spread fire. Don't add light effects when spreading fire on roof.
---------------------
r1455
Fixed Russian translation. Increased volume for water splash sound.
---------------------
r1454
Only normal, stun and flashbang explosives create water explosion. Increase max force when throwing items into water (because of no bouncing). Play sound when item hits water.
---------------------
r1453
Removed DEBUG_ATTACKBUSY define from debug version. Added TOPIC_GAME to registered topics. StructureHit: check water level. OBJECT_DETONATE_ON_IMPACT(): check fExplodeOnImpact only for explosives.
---------------------
r1452
InternalDoMercBattleSound: don't try to play sound if file not exists.
---------------------
r1451
Fixed LOS bug introduced in r1204.
---------------------
r1450
Disabled warnings for missing options TAUNT_VOICE and TAUNT_VOICE_SHOW_INFO. Improved creation of smoke and lights effects after explosion. Add light effect when signal smoke is created.
---------------------
r1449
FindTossSpotInDirection: also check one tile farther to throw smoke grenade. Improved Russian translation.
---------------------
r1448
New option TAUNT_VOICE (FALSE by default): if true, will play sound file instead of showing text. New option TAUNT_VOICE_SHOW_INFO (FALSE by default): if true, will show debug info when playing voice taunt. TAUNT_INFORM_ABOUT: check that op...
---------------------
r1447
Doubled canteen drink effect for restoring breath.
---------------------
r1446
SSA: fixed ambient in tropical sectors.
---------------------
r1445
New option in game settings: "Slow PC" disables complex AI calculations to speed up enemy turn. AnyCoverAtSpot: fixed cover cache code. GetItemVisionRangeBonus, GetItemPercentTunnelVision, GetItemHearingRangeBonus: improved code.
---------------------
r1444
Updated tooltip for toggling artificial merc light.
---------------------
r1443
Disable interrupt if soldier was suppressed this turn. Penalty to watch decision if soldier cannot interrupt. Penalize seek/help if target too far: - only when in town or underground - only if number of known opponents is less than 10 - 2 *...
---------------------
r1442
Fix deadlock when executing AI_ACTION_STOP_COWERING for soldiers.
---------------------
r1441
AI: improved AI_ACTION_STOP_COWERING.
---------------------
r1440
StandardInterruptConditionsMet: allow interrupt if not cowering CalcInterruptDuelPts: penalty if soldier was suppressed this turn, penalty if soldier taken large hit CalcMorale: - also make civilians more aggressive - limit AI morale if no ...
---------------------
r1439
When giving AI boxer dusters, make them undroppable.
---------------------
r1438
Reworked taser code: - take into account taser status - randomize breath damage 50-150% - head attack +50% breath loss, legs attack -50% breath loss - apply bodybuilder resistance for taser attacks
---------------------

 

zww
or
oooo

“ja2_7609+AI 中文版 r1942”有3条评论

  1. kn007 says:

    大佬更新的这个,我都没玩过

    1. zwwooooo says:

      @kn007 这个太老了,骨灰级别才能继续玩。(顺便测试评论)

      1. kn007 says:

        @zwwooooo 测试一下看看

回复给 kn007 ¬
取消回复

昵称 *

网址

B em del U Link Code Quote