mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 19:55:40 +02:00
Update Perun.lua
Added support for "Fortification" kill category.
This commit is contained in:
@@ -298,6 +298,7 @@ Perun.LogStatsCount = function(argPlayerID,argAction,argType)
|
|||||||
_temp['ps_kills_unarmed'] = 0
|
_temp['ps_kills_unarmed'] = 0
|
||||||
_temp['ps_kills_infantry'] = 0
|
_temp['ps_kills_infantry'] = 0
|
||||||
_temp['ps_kills_ships'] = 0
|
_temp['ps_kills_ships'] = 0
|
||||||
|
_temp['ps_kills_fortification'] = 0
|
||||||
_temp['ps_kills_other'] = 0
|
_temp['ps_kills_other'] = 0
|
||||||
_temp['ps_airfield_takeoffs'] = 0
|
_temp['ps_airfield_takeoffs'] = 0
|
||||||
_temp['ps_airfield_landings'] = 0
|
_temp['ps_airfield_landings'] = 0
|
||||||
@@ -352,6 +353,8 @@ Perun.LogStatsCount = function(argPlayerID,argAction,argType)
|
|||||||
Perun.StatData[_ucid]['ps_kills_armor']=Perun.StatData[_ucid]['ps_kills_armor']+1
|
Perun.StatData[_ucid]['ps_kills_armor']=Perun.StatData[_ucid]['ps_kills_armor']+1
|
||||||
elseif argAction == "kill_Infantry" then
|
elseif argAction == "kill_Infantry" then
|
||||||
Perun.StatData[_ucid]['ps_kills_infantry']=Perun.StatData[_ucid]['ps_kills_infantry']+1
|
Perun.StatData[_ucid]['ps_kills_infantry']=Perun.StatData[_ucid]['ps_kills_infantry']+1
|
||||||
|
elseif argAction == "kill_Fortification" then
|
||||||
|
Perun.StatData[_ucid]['ps_kills_fortification']=Perun.StatData[_ucid]['ps_kills_fortification']+1
|
||||||
elseif argAction == "kill_Other" then
|
elseif argAction == "kill_Other" then
|
||||||
Perun.StatData[_ucid]['ps_kills_other']=Perun.StatData[_ucid]['ps_kills_other']+1
|
Perun.StatData[_ucid]['ps_kills_other']=Perun.StatData[_ucid]['ps_kills_other']+1
|
||||||
elseif argAction == "kill_PvP" then
|
elseif argAction == "kill_PvP" then
|
||||||
@@ -529,12 +532,15 @@ Perun.onGameEvent = function (eventName,arg1,arg2,arg3,arg4,arg5,arg6,arg7)
|
|||||||
Perun.LogStatsCount(arg1,"kill_Armor",arg2)
|
Perun.LogStatsCount(arg1,"kill_Armor",arg2)
|
||||||
elseif Perun.GetCategory(arg5) == "Infantry" then
|
elseif Perun.GetCategory(arg5) == "Infantry" then
|
||||||
Perun.LogStatsCount(arg1,"kill_Infantry",arg2)
|
Perun.LogStatsCount(arg1,"kill_Infantry",arg2)
|
||||||
|
elseif Perun.GetCategory(arg5) == "Fortification" then
|
||||||
|
Perun.LogStatsCount(arg1,"kill_Fortification",arg2)
|
||||||
else
|
else
|
||||||
Perun.LogStatsCount(arg1,"kill_Other",arg2)
|
Perun.LogStatsCount(arg1,"kill_Other",arg2)
|
||||||
end
|
end
|
||||||
if net.get_player_info(arg4, "name") ~= nil and arg3 ~= arg6 then
|
if net.get_player_info(arg4, "name") ~= nil and arg3 ~= arg6 then
|
||||||
Perun.LogStatsCount(arg1,"kill_PvP",arg2)
|
Perun.LogStatsCount(arg1,"kill_PvP",arg2)
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
_temp2 = " AI ";
|
_temp2 = " AI ";
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user