Left 4 Dead 2

Left 4 Dead 2

Trash-talking AI Specials V2
SI respond on being instakilled
yeah i made a second one in 12 hours ig i dunno
feel free to include if you want ig
example image: https://steamcommunity.com/sharedfiles/filedetails/?id=3322289749

Function code:
function OnGameEvent_player_hurt( params ) { // should play whenever without any rng cuz i dont think people like being deleted instantly if("userid" in params && "attacker" in params) { if(params.userid && params.victim) { local owie = GetPlayerFromUserID(params.userid) local ♥♥♥♥♥ = GetPlayerFromUserID(params.attacker) local maxhp = owie.GetMaxHealth() local damagedone = params.dmg_health // this below is only done here cuz of source engine jank that i remember happening in 1936 bc local safetynet = damagedone + 1 // if they were killed by a survivor, do the hokey pokey if(♥♥♥♥♥.IsSurvivor() && !owie.IsSurvivor() && !IsPlayerABot(♥♥♥♥♥) && safetynet >= maxhp) { SayLineOnDelay(GetRandomFromArray(Lines.InstaKilledLines), owie, ♥♥♥♥♥.GetPlayerName()) } } } }

Responses:
InstaKilledLines = [ "PLAYERNAME please try hiding your cheats better", "LMAO WTF WAS THAT", "yeah thats totally fair", "guys can you kick PLAYERNAME", "i bet you missed your parents funeral for l4d2", "get a life please", "yeah thats not cheating at all", "wallhacks", "PLAYERNAME is a cheater", "please kick PLAYERNAME they are cheating", "PLAYERNAME is hacking", "imagine spending your whole life on l4d2", "get a job you loser", "you're such a sweaty tryhard", "lets see how good you are once you turn your aimbot off", "You must be so proud of yourself, hacking at l4d2 all day", "its tryhards like you who ruin l4d2", "this is so unfair truly", "waited the whole respawn to get sent back", "PLAYERNAME are you gonna turn off your hacks anytime soon?", "that was ♥♥♥♥♥♥♥♥", "i am in your house", "how in the hell", "these ♥♥♥♥♥♥♥ tryhards bro", "dude", "can yall kick PLAYERNAME he's blatantly cheating", "bro kick PLAYERNAME already", ],
< >
Showing 1-1 of 1 comments
ChimiChamo  [developer] Sep 2, 2024 @ 6:49am 
would also require having to do some funky stuff to the player_death gameevent so these insta kill lines and regular on death lines arent played. will consider adding it though...eventually
< >
Showing 1-1 of 1 comments
Per page: 1530 50