-
Notifications
You must be signed in to change notification settings - Fork 147
Vehicle destroyed event and db log update #396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
CamperNoob
wants to merge
23
commits into
Team-Silver-Sphere:master
Choose a base branch
from
CamperNoob:VehicleDestroyedEvent_and_DbLog_Update
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Vehicle destroyed event and db log update #396
CamperNoob
wants to merge
23
commits into
Team-Silver-Sphere:master
from
CamperNoob:VehicleDestroyedEvent_and_DbLog_Update
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Finished with logic, filling up the lookups
Add more, enclose in quotes for abc-123 cases
ADF, BAF, CAF, USA, USMC = BLUFOR PLA, PLANMC, PLAAGF = PAC RGF, RAF = RUS MEA, TLF, INS, IMF, WPMC - left as is
Finished with the list
Added missed INS in rhib logi and transport
Added 'Side' lookup
…ted from player 'Side' and vehicle 'Sides'
Added all available in SDK vehicles (some may be just referring to turret). Sorted alphabetically.
remove plugin used for testing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PLAYER_POSSESS_SOLDIERevent to determine player's team (extension ofPLAYER_POSSESS, writes team data toplayer.teamName). Useslookup\soldier-lookup.jsto translate filenames into more consistent team names.VEHICLE_DAMAGEDevent on a new squad log record type (from update that added destroyed vehicles counter in scoreboards) and extensionVEHICLE_DESTROYED. Useslog-parser\lookup\vehicles-lookup.jsto determine vehicle teams.dblog_VehicleDestroystable inplugins\db-log.jswhich storesVEHICLE_DESTROYEDevents afterteamkillcalculation (done withplugins\lookup\factions-lookup.jsto improve confidence ofteamkill).plugins\socket-io-api.jsto include all new event types:VEHICLE_DAMAGED,VEHICLE_DESTROYED,PLAYER_POSSESS_SOLDIER.Known issues:
teamkillis not determined correctly 100% time - issue exists because of how the log record is structured - it includes attacker info and vehicle file name only. The only sensible way to determineteamkill- store teamName fromplayer_possess_soldier, since all soldier model names include the faction name (e.g.BP_Soldier_PLA_Rifleman1.uasset), and compare it to vehicle teamName array (since some vehicles, for example RHIB, appear for multiple factions).log-parser\lookup\vehicles-lookup.jsmay have some incorrect faction assignments, since this information was manually determined according to squad wiki. Vehicle list itself is full (maybe includes a few entries not for vehicle, but it's turret) - according to files present in Squad Editor.teamkill = nullwhen it fails to determine if destroyed vehicle was teamkilled or not (can happen if vehicle is not present in lookup, or player team name was empty for any reason).player.teamNamewill be empty if SquadJS will be started/restarted mid-game (after players were already spawned) and will remain empty until the player exits the vehicle, or respawns.P.S. Branch is open for commits in case locations of lookup files should be changed, or modifications to lookups themselves should be made.