gameConnection::onDeath(%client, %killerPlayer, %killer, %damageType, %damageLoc)
What do each of these mean and what can they possibly be?
In the CityRP mod when parent:: is called, it passes %damageLoc as %unknownA. Why shouldn't Blockland know what the last one is?
parent::onDeath(%this, %this, %killer, %damageType, %unknownA);
Also why is %this repeated?
Or just explain the top one ^.^
function gameConnection::onDeath(%client, %killerPlayer, %killer, %damageType, %damageLoc)
{
if(isObject(%this.CityRPTrigger))
{
%this.CityRPTrigger.getDatablock().onLeaveTrigger(%this.CityRPTrigger, %this.player);
}
if(isObject(%this.CityRPLotTrigger))
{
%this.CityRPLotTrigger.getDatablock().onLeaveTrigger(%this.CityRPLotTrigger, %this.player);
}
%this.CityRP(1);
if(getWord(CityRPData.getData(%this.bl_id).valueJailData, 1) < 1)
{
if(%this.player.currTool)
{
serverCmddropTool(%this, %this.player.currTool);
}
if(isObject(%killer) && %killer != %this)
{
else {
commandToClient(%killer, 'centerPrint', "\c6You have commited a crime. [\c3Murder\c6]", 1);
%killer.CityRP(2, $CityRP::demerits::murder);
}
}
}
parent::onDeath(%this, %this, %killer, %damageType, %unknownA);
}