Fixes for issues with vehicle patrols and static weapons

Code for spawning and monitoring vehicle patrols and static weapons was
redone.
A new method of monitoring these vehicles using a single loop rather
than many loops was added.
This commit is contained in:
Ghostrider-DbD- 2016-10-25 18:59:59 -04:00
parent 210c837618
commit 3e662d4562
2 changed files with 4 additions and 4 deletions

View File

@ -36,8 +36,8 @@ while {true} do
uiSleep 20;
{
_v setHitPointDamage [_x, 1];
diag_log format["vehicleMonitor: hitpart %1 for vehicle %1 set to 1",_x,_v];
} forEach ["HitLFWheel","HitRFWheel","HitEngine","HitLBWheel","HitRBWheel","HitTurret","HitGun"];
//diag_log format["vehicleMonitor: hitpart %1 for vehicle %1 set to 1",_x,_v];
} forEach ["HitLFWheel","HitLF2Wheel","HitRFWheel","HitRF2Wheel","HitEngine","HitLBWheel","HitLMWheel","HitRBWheel","HitRMWheel","HitTurret","HitGun","HitTurret","HitGun","HitTurret","HitGun","HitTurret","HitGun"];
if (blck_debugOn) then
{
diag_log format["_fnc_vehicleMonitor:: damage applied to a patrol vehicle -- >> current damage for vehicle %1 is = %2",_v, (getAllHitPointsDamage _v)];

View File

@ -3,10 +3,10 @@
For the Mission System originally coded by blckeagls
By Ghostrider
Functions and global variables used by the mission system.
Last modified 10/17/16
Last modified 10/25/16
*/
//blck_variablesLoaded = false;
blck_debugON = true;
blck_debugON = false;
blck_debugLevel = 3;
blck_minFPS = 13;