mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
BIGFIX: Reworked the code so that SCORING is working with STATIC objects.
The problems were in the EVENTDISPATCHER. -- Reworked the Event Dispatcher code... -- Added fields IniCategory and TgtCategory that indicate which Object Category is involved in the Event. -- Added fields IniPlayerName and TgtPlayerName that indicate which Player Name is the initiator or Target (only when the Object Category is a UNIT). -- In the Event.lua, I poperly documented every field in EVENTDATA and typed it correctly. -- Reworked te Scoring code.. -- Incorporated the Event.* added fields into the Scoring Code. -- Added a SCO-100 test mission -- A shooting range with STATIC objects, so that a player can TEST the scoring for STATIC objects in a mission. Hope this helps. FC
This commit is contained in:
@@ -122,7 +122,7 @@ function SCORING:_EventOnDeadOrCrash( Event )
|
||||
TargetUnitName = Event.IniDCSUnitName
|
||||
TargetGroup = Event.IniDCSGroup
|
||||
TargetGroupName = Event.IniDCSGroupName
|
||||
TargetPlayerName = TargetUnit:getPlayerName()
|
||||
TargetPlayerName = Event.IniPlayerName
|
||||
|
||||
TargetCoalition = TargetUnit:getCoalition()
|
||||
--TargetCategory = TargetUnit:getCategory()
|
||||
@@ -369,7 +369,7 @@ function SCORING:_EventOnHit( Event )
|
||||
InitUnitName = Event.IniDCSUnitName
|
||||
InitGroup = Event.IniDCSGroup
|
||||
InitGroupName = Event.IniDCSGroupName
|
||||
InitPlayerName = InitUnit:getPlayerName()
|
||||
InitPlayerName = Event.IniPlayerName
|
||||
|
||||
InitCoalition = InitUnit:getCoalition()
|
||||
--TODO: Workaround Client DCS Bug
|
||||
@@ -391,7 +391,7 @@ function SCORING:_EventOnHit( Event )
|
||||
TargetUnitName = Event.TgtDCSUnitName
|
||||
TargetGroup = Event.TgtDCSGroup
|
||||
TargetGroupName = Event.TgtDCSGroupName
|
||||
TargetPlayerName = TargetUnit:getPlayerName()
|
||||
TargetPlayerName = Event.TgtPlayerName
|
||||
|
||||
TargetCoalition = TargetUnit:getCoalition()
|
||||
--TODO: Workaround Client DCS Bug
|
||||
|
||||
Reference in New Issue
Block a user