Jump to content

[Release][Fix Bug] Unconscious and invisible for AI and humanity boost


Recommended Posts

Make unconscious then you invisible for AI

 

When player play action "Die"(playActionNow "Die") or some animation like this, he broke world space synchronization!

 

And to game(to server side), thinks: now player stay only this position, then player go i mission AI don’t see him, kill all take loot. If u change animation player(use bandage), world space change to new place, but synchronization still broken.

When player log out and log in last "unconscious place".

Jast if u get in vihecles all was be ok.

 

 

And if AI or same times player or AI find your broken world space, whey easy kill you!

 

 

This animatoin use in unconscious, its easy to fix:

Chnge playActionNow "Die" to switchMove "AmovPpneMrunSnonWnonDfr"

and use infistar unconscious.

 

Need change in:

setup_functions_med.sqf

player_monitor.fsm

AH.sqf

 

Humanity boost (-20 000 use only 30 round)

 

Your frend lay down, you take automatic rifle, and shoot full ammo in his had

fn_damageHandler.sqf have bag, and give to you ~ -20K humanity! 

 

Easy to fix:

in fn_damageHandler.sqf chenge

if (_unitIsPlayer) then {
	if (_hit == "") then {
		if ((_source != player) && _isPlayer) then {
		//Enable aggressor Actions
			if (_source isKindOf "CAManBase") then {
				_source setVariable["startcombattimer",1];
			};
			_canHitFree = 	player getVariable ["freeTarget",false];
			_isBandit = (player getVariable["humanity",0]) <= -5000;
			_isPZombie = player isKindOf "PZombie_VB";

			if (!_canHitFree && !_isBandit && !_isPZombie) then {
				//Process Morality Hit
				_myKills = 0 max (1 - (player getVariable ["humanKills",0]) / 5);
				_humanityHit = -100 * _myKills * _damage;

				/* PVS/PVC - Skaronator */
				if (_humanityHit != 0) then {
					[_source,_humanityHit] spawn {
						private ["_source","_humanityHit"];
						_source = _this select 0;
						_humanityHit = _this select 1;
						PVDZE_send = [_source,"Humanity",[_source,_humanityHit,30]];
						publicVariableServer "PVDZE_send";
					};
				};
			};
		};
	};
};

to:

if (_unitIsPlayer) then {
	if (_hit == "") then {
		if ((_source != player) && _isPlayer) then {
		//Enable aggressor Actions
			if (_source isKindOf "CAManBase") then {
				_source setVariable["startcombattimer",1];
			};
		};
	};
};

change path for fn_damageHandler.sqf  in:

compiles.sqf

infistar_safe_zone.sqf - or some like

AH.sqf

 

 

 

I will be happy if I helped someone!

Sorry for my bad english! :P 

 

 

 with: Losing connection, drop loot, Esc, exit yes and Esc + G, losing connection, drop loot, exit yes.

Link to comment
Share on other sites

  • 2 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...