Skip to content

Instantly share code, notes, and snippets.

@Andrewcpu
Created December 2, 2022 08:20
Show Gist options
  • Save Andrewcpu/072ec119209bf08e14c4a3c12d6de4d6 to your computer and use it in GitHub Desktop.
Save Andrewcpu/072ec119209bf08e14c4a3c12d6de4d6 to your computer and use it in GitHub Desktop.
{
"nodes": [
{
"nodes": [
{
"input": [
{
"type": "IdentifierType",
"value": "lastKiller"
},
null,
{
"constant": "global",
"type": "ScopeType"
}
],
"type": "DeclareObjectVariable"
},
{
"output": [
{
"_ref": "a4c0f12a-ad9d-4560-9a4c-88a654515f64",
"name": "killed",
"type": "PlayerType"
},
{
"_ref": "ebd9a663-55c6-43be-ba2a-a8cd9fcc8341",
"name": "killer",
"type": "PlayerType"
},
{
"_ref": "88033a00-1507-4d24-a1a8-226e6f47fb5e",
"name": "deathContext",
"type": "DeathContextType"
}
],
"next": {
"output": [
{
"output": [
{
"next": {
"output": [
{},
{
"next": null,
"output": [],
"input": [
{
"_ref": "76f53f4b-d68a-4765-904b-0fc06026e600",
"name": "player",
"type": "PlayerType"
}
],
"type": "PrintPlayerToKillfeed"
},
{
"_ref": "76f53f4b-d68a-4765-904b-0fc06026e600",
"name": "player",
"type": "PlayerType"
},
{
"_ref": "a789bf7b-8788-4295-b00a-a4a3a11808d6",
"name": "it",
"type": "NumberType"
}
],
"input": [
{
"output": [
{
"_ref": "e4f8c131-5d19-47c0-a78e-812fed6fe1cc",
"name": "players",
"type": "PlayersType"
}
],
"input": [
{
"output": [
{
"_ref": "b41fc225-4165-432b-889d-8fdb7823c52b",
"name": "team",
"type": "TeamType"
}
],
"input": [
{
"_ref": "ebd9a663-55c6-43be-ba2a-a8cd9fcc8341",
"name": "killer",
"type": "PlayerType"
}
],
"outputValueName": "team",
"type": "GetPlayerTeam",
"value": "b41fc225-4165-432b-889d-8fdb7823c52b",
"returnType": "TeamType"
}
],
"outputValueName": "players",
"type": "GetAllPlayersOnTeam",
"value": "e4f8c131-5d19-47c0-a78e-812fed6fe1cc",
"returnType": "PlayersType"
}
],
"type": "ForEachPlayer"
},
"output": [],
"input": [
{
"_ref": "a4c0f12a-ad9d-4560-9a4c-88a654515f64",
"name": "killed",
"type": "PlayerType"
},
{
"type": "Team",
"value": "cobra"
}
],
"type": "SetPlayerTeam"
},
{
"next": null,
"output": [],
"input": [
{
"_ref": "a4c0f12a-ad9d-4560-9a4c-88a654515f64",
"name": "killed",
"type": "PlayerType"
}
],
"type": "PrintPlayerToKillfeed"
}
],
"input": [
{
"output": [
{
"_ref": "c4c9872d-4938-4e54-a83e-d74352dedb00",
"name": "equal",
"type": "BooleanType"
}
],
"input": [
{
"output": [
{
"_ref": "d548c593-ca1f-4a76-abeb-e2b895d2e3b7",
"name": "team",
"type": "TeamType"
}
],
"input": [
{
"_ref": "a4c0f12a-ad9d-4560-9a4c-88a654515f64",
"name": "killed",
"type": "PlayerType"
}
],
"outputValueName": "team",
"type": "GetPlayerTeam",
"value": "d548c593-ca1f-4a76-abeb-e2b895d2e3b7",
"returnType": "TeamType"
},
{
"type": "Team",
"value": "eagle"
}
],
"outputValueName": "equal",
"type": "CompareTeams",
"value": "c4c9872d-4938-4e54-a83e-d74352dedb00",
"returnType": "BooleanType"
}
],
"type": "Branch"
},
{
"next": null,
"output": [],
"input": [
{
"_ref": "a4c0f12a-ad9d-4560-9a4c-88a654515f64",
"name": "killed",
"type": "PlayerType"
}
],
"type": "PrintPlayerToKillfeed"
}
],
"input": [
{
"output": [
{
"_ref": "c6afdc43-9902-4429-b251-ccde5a4ebbe0",
"name": "equal",
"type": "BooleanType"
}
],
"input": [
{
"output": [
{
"_ref": "caa24914-b19b-4139-b47f-81a350040125",
"name": "team",
"type": "TeamType"
}
],
"input": [
{
"_ref": "ebd9a663-55c6-43be-ba2a-a8cd9fcc8341",
"name": "killer",
"type": "PlayerType"
}
],
"outputValueName": "team",
"type": "GetPlayerTeam",
"value": "caa24914-b19b-4139-b47f-81a350040125",
"returnType": "TeamType"
},
{
"type": "Team",
"value": "cobra"
}
],
"outputValueName": "equal",
"type": "CompareTeams",
"value": "c6afdc43-9902-4429-b251-ccde5a4ebbe0",
"returnType": "BooleanType"
}
],
"type": "Branch"
},
"input": [],
"type": "PlayerKilledEvent"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment