const master_switch = UI.AddCheckbox("premium trashtalk");
const normal_killsays = ["S-Sorry onii-chan p-please d-do me harder ;w;",
    "Y-You got me all wet now senpai!",
    "pounce out of your window disgusting tranny, you shouldnt exist in this world",
    "D-Don't t-touch me there senpai",
    "P-Please l-love me harder oniichan ohh grrh aahhhh~!",
    "Give me all your cum senpai ahhhhh~",
    "go take some estrogen tranny", "F-Fuck me harder chan!",
    "Oh my god I hate you so much senpai but please k-keep fucking me harder! ahhh~", "k-keep fucking me harder! ahhh~",
    "ahhh~", "D-do you like my stripped panties getting soaked by you and your hard cock? ehhh master you're so lewd ^0^~",
    "kun your cute little dick between my pussy lips looks really cute, I'm blushing", "Master does it feel good when I slide by tits up and down on your cute manly part?", "oniichan~~~~",
    "oniichan my t-toes are so warm with your cum all over them uwu~", "Lets take this swimsuit off already <3 i'll drink your unknown melty juice",
    "S-stop senpai if we keep making these lewd sounds im going to cum~~", "senpai~~",
    "You're such a pervert for filling me up with your baby batter senpai~~", "Fill up my baby chamber with your semen kun ^-^",
    "M-master d-dont spank my petite butt so hard ahhhH~~~ you're getting me so w-wet~", "so hard ahhhH~~~", "you're getting me so w-wet~",
    "senpai your cock is already throbbing from my huge tits~",
    "Hey kun, Can I have some semen?",
    "hehe don't touch me there oni-chann UwU", "Your cum is all over my wet clit M-master",
    "It Feels like you're pounding me with the force of a thousand suns senpai"
];
  
const hs_killsays = ["you're getting me so w-wet~", "Your cum is all over my wet clit M-master", "It Feels like you're pounding me with the force of a thousand suns senpai", "S-Sorry onii-chan p-please d-do me harder ;w;",
    "Y-You got me all wet now senpai!",
    "pounce out of your window disgusting tranny, you shouldnt exist in this world",
    "D-Don't t-touch me there senpai",
    "P-Please l-love me harder oniichan ohh grrh aahhhh~!",
    "Give me all your cum senpai ahhhhh~",
    "go take some estrogen tranny", "F-Fuck me harder chan!",
    "Oh my god I hate you so much senpai but please k-keep fucking me harder! ahhh~", "k-keep fucking me harder! ahhh~",
    "ahhh~", "D-do you like my stripped panties getting soaked by you and your hard cock? ehhh master you're so lewd ^0^~",
    "kun your cute little dick between my pussy lips looks really cute, I'm blushing", "Master does it feel good when I slide by tits up and down on your cute manly part?", "oniichan~~~~",
    "oniichan my t-toes are so warm with your cum all over them uwu~", "Lets take this swimsuit off already <3 i'll drink your unknown melty juice",
    "S-stop senpai if we keep making these lewd sounds im going to cum~~", "senpai~~",
    "You're such a pervert for filling me up with your baby batter senpai~~", "Fill up my baby chamber with your semen kun ^-^",
    "M-master d-dont spank my petite butt so hard ahhhH~~~ you're getting me so w-wet~", "so hard ahhhH~~~", "you're getting me so w-wet~",
    "senpai your cock is already throbbing from my huge tits~",
    "Hey kun, Can I have some semen?",
    "hehe don't touch me there oni-chann UwU", "Your cum is all over my wet clit M-master",
    "It Feels like you're pounding me with the force of a thousand suns senpai"
];

const on_player_death = function()
{
    if(UI.GetValue.apply(null, master_switch))
    {
        const attacker = Entity.GetEntityFromUserID(Event.GetInt("attacker"));
        if(Entity.IsLocalPlayer(attacker) && attacker != Entity.GetEntityFromUserID(Event.GetInt("userid")))
        {
            Cheat.ExecuteCommand("say " + (Event.GetInt("headshot") == 1 && Math.random() > 0.5 ? hs_killsays[Math.floor(Math.random() * hs_killsays.length)] : normal_killsays[Math.floor(Math.random() * normal_killsays.length)]));
        }
    }
};

Cheat.Print("trashtalk js loaded, killsay count: " + normal_killsays.length + hs_killsays.length + "\n");
Cheat.RegisterCallback("player_death", "on_player_death");