Adam Kadmon

Infistar Broke Something

6 posts in this topic

Hello @infiSTAR.

I noticed that after last update, the damage is handle differently?

I had something on my server that made people but not vehicles invulnerable from killer bushes and rocks.

After last update this stopped working, and I noticed probably because of this line of code that changed:

 

OLD VERSION:


		_fnc_handleDamage = '
			params[[''_unit'',objNull],[''_selectionName'',''''],[''_damage'',0],[''_source'',objNull],[''_projectile'',''''],[''_hitPartIndex'',-1]];
			_name = '+str _name+';
			_puid = '+str _puid+';
			_AHKickLog = '+str _AHKickLog+';
			_AHKickOFF = '+str _AHKickOFF+';
			
			_ret = true;
			if(ExilePlayerInSafezone)then
			{
				_vehicle = vehicle _unit;
				_vehicle allowDamage false;
				_ret = false;
			}
			else
			{
				_vehicle = vehicle _unit;
				_vehicle allowDamage true;
			};
			if(_ret)then{_this call ExileClient_object_player_event_onHandleDamage;}else{_ret};
		';
		_handleDamage_ID = -1;


NEW VERSION:



_fnc_handleDamage = '
	params[[''_unit'',objNull],[''_selectionName'',''''],[''_damage'',0],[''_source'',objNull],[''_projectile'',''''],[''_hitPartIndex'',-1]];
	_ret = damage _unit;
	if(ExilePlayerInSafezone)then
	{
		_vehicle = vehicle _unit;
		_vehicle allowDamage false;
	}
	else
	{
		_vehicle = vehicle _unit;
		_vehicle allowDamage true;
		_ret = _ret + _damage;
	};
	_ret
';

Any idea how to make it so that the damage still uses ExileClient_object_player_event_onHandleDamage ?

I tried modifying the last 3 lines with the old one but didn't work.

Edited by Adam Kadmon

Share this post


Link to post
Share on other sites

And yea, I also noticed actually that there are more lines that have been modifying damage handler. So bottom line is, any idea how I can make it so that it recalls the custom onHandleDamage?

Share this post


Link to post
Share on other sites
Advertisement
22 hours ago, SeanJSOS said:

How did you fix this? I am having the same issue.

In Exile AHAT Config files change to true those statements:

 

useCustomFiredEventHandler = "true";
useCustomHandeDamageHandler = "true";

  • Like 1

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.