Left 4 Dead 2

Left 4 Dead 2

Super Knockback Tanks
127 Comments
Isolda 5 Sep @ 4:11pm 
And just to be clear: no lag/jittering (associated with Coldfront) while trying to recreate it privately in single player (but I know it happened hosting local). The error still happens on vanilla maps and Coldfront alike.
Isolda 5 Sep @ 4:02pm 
The full error is:
AN ERROR HAS OCCURED [the index 'GetActiveWeapon' does not exist]

CALLSTACK
*FUNCTION [OnGameEvent_player_hurt()] c:/program files (x86)/steam/steamapps/common/left 4 dead 2/left4dead2/addons/workshop/3383897874.vpk/scripts/vscripts/director_base_addon.nut line [7]
*FUNCTION [__RunEventCallbacks()] unnamed line [211]
*FUNCTION [__RunGameEventCallbacks()] unnamed line [218]

LOCALS
[attacker] INSTANCE
[victim] INSTANCE
[event] TABLE
[this] TABLE
[funcName] "OnGameEvent_player_hurt"
[idx] 0
[useTable] TABLE
[bWarnIfMissing] false
[globalTableName] "GameEventCallbacks"
[prefix] "OnGameEvent_"
[params] TABLE
[event] "player_hurt"
[this] TABLE
[params] TABLE
[event] "player_hurt"
[this] TABLE
Isolda 5 Sep @ 4:02pm 
With every mod unchecked and non-workshop mods moved out of the way, the error still occurs, except this time it appears the fall damage causes the console error, not the Tank punch. I have locally hosted Coldfront a few times with this script on (and I was aware of this at first harmless console error), where the framerate became jittery for everyone when the Tank fight happens halfway through the map (which spammed the error in console if memory serves right).

Launching through console in single player does not cause jittering (but the error persists). I remember killing the Tank removed the stuttering, and no other Tank in the campaign caused that (including the following finale Tanks). At first console glance, Coldfront modifies and is loading a director_base_addon script, but I don't understand why it would cause that.
kurochama 5 Sep @ 3:40pm 
Actually "GetActiveWeapon" is tricky sometimes. Sometimes, you'll need to add some checks like this to prevent "does not exist" error on console:
if(!player.GetActiveWeapon() || !player.GetActiveWeapon().IsValid())
{
return;
}

& although it triggers some errors, usually it won't cause lag unless if it's spammed continuously via timer or regular tick.
Geebanger0  [author] 5 Sep @ 3:14pm 
If you wouldn't mind, could you do a couple more tests?

- Try it on a vanilla map like Dead Center with no other mods enabled, just to confirm that the script is working.

- If it is working, see if you get lag on any map other than coldfront 5.
Geebanger0  [author] 5 Sep @ 3:11pm 
heres how the script works

when a player takes damage
- get the ID of the player and the attacker
- check which weapon the attacker was using
if the attacker was using a tank_claw
- give the player massive upward velocity

from your error, it looks like its failing at the "check which weapon the attacker was using" step. If the script fails in that way, it shouldn't have any lag related impact, it should just stop.
Isolda 5 Sep @ 10:32am 
When a Tank punches a survivor, I get this console error: "AN ERROR HAS OCCURED [the index 'GetActiveWeapon' does not exist]" referencing line 7 on this script. On Coldfront map 5, it has caused massive lag spikes just when a Tank is alive, so I unfortunately can't run this script without worrying about that. Is there any solution you can come up with for this?
Qxxqwas 5 Sep @ 10:25am 
nevermind the mod worked
Geebanger0  [author] 2 Sep @ 4:47am 
are you on a local host server
Qxxqwas 2 Sep @ 4:43am 
the mod didn't worked
ЛёоНя! 26 May @ 10:47am 
Don't fuсk with this Senator!
doctor crentist 30 Apr @ 5:12pm 
it makes the game bullshit but its so funny when you have voice over mods AND skin mods for the survivors like spongebob and you see him get fucking flung as he screams
Geebanger0  [author] 28 Apr @ 12:50am 
thats great, son. just great.
Louis 27 Apr @ 9:50am 
pretty sure. threw a burger tank. into space. at work
Geebanger0  [author] 19 Apr @ 6:44pm 
are you sure
scotomy 19 Apr @ 6:42pm 
im tanking it im tanking it
Geebanger0  [author] 18 Apr @ 11:47pm 
No. You will suffer the consequences of your actions for eternity. I may forgive you, but history will not. Your failure shall be immortalised until the end of time.
Machoboy197 18 Apr @ 5:51pm 
Can we just pretend this never happened? Please delete your comment so I can delete mine's.
Machoboy197 18 Apr @ 5:50pm 
Oops, I was referring to a different addon, so sorry
Geebanger0  [author] 18 Apr @ 1:37pm 
it is a script
Machoboy197 18 Apr @ 11:45am 
Don't download this, it has missing textures
Detz 24 Mar @ 6:34am 
feel that?
that's "so true"
Nox79 24 Mar @ 6:34am 
Geebanger0!
La desinstalacion del mod es simple (solo desuscribirse) o vendría a ser mas complicada?
Busco un mod como este pero no encontré ninguno similar, así que estoy considerando suscribirme para probarlo pero me da pereza la idea de tener que ir archivo por archivo para desinstalarlo.
[♥PINKY-BEACH♥] 21 Feb @ 4:47pm 
Geebanger0!
La desinstalacion del mod es simple (solo desuscribirse) o vendría a ser mas complicada?
Busco un mod como este pero no encontré ninguno similar, así que estoy considerando suscribirme para probarlo pero me da pereza la idea de tener que ir archivo por archivo para desinstalarlo.
El Rey De Salem 19 Feb @ 1:40am 
El LAG Que Tenia Desapareció De La Nada No Actualize Nada Y No Hice Nada Asique No Me Explico Que Era Por Que Plugins Y Add-Ons No Eran Y Los CFG Tampoco, .___. , Creo Que Eran Ataques DDOS :c
Geebanger0  [author] 12 Feb @ 8:29pm 
:BL3Thumbsup:
Prof.NickelButt 12 Feb @ 2:54pm 
Verifying files seemed to fix the issue, thank you Geebanger0
El Rey De Salem 11 Feb @ 5:30am 
Ahora No Se Desactivan Los Add-ons Con De-suscribirse Tiene Que Buscar El ID Del Add-on ".vpk" Y Eliminarlo Manualmente O Por Lo Menos Así Me Anda A Mí El Juego Xd
n_n
Geebanger0  [author] 10 Feb @ 9:20pm 
did you do all of these too just to be sure
- unsubscribe from the addon
- restart your game
- verify your files
Prof.NickelButt 10 Feb @ 9:19pm 
Anyone else having trouble where the tanks still send you into the fucking stratosphere after disabling and deleting the addon files?
GlarinGamer 28 Jan @ 8:16am 
I've been waiting for a mod like this, looks just as dumb and funny as I imagined. :steamthumbsup:
El Rey De Salem 28 Jan @ 5:32am 
Huy Me Falto El Respeto: Karma Summon!!!! x144000
Geebanger0  [author] 27 Jan @ 10:46pm 
No. Ve y busca mujeres reales. Existen y son mucho mejores que Zoey.
El Rey De Salem 27 Jan @ 10:24pm 
Tienes Razón Tengo Que Clonarla :)
Geebanger0  [author] 27 Jan @ 9:02pm 
No, ella es fea. Puedes conseguir algo mejor que ella.
El Rey De Salem 26 Jan @ 9:24pm 
Mi Amor Zoey
Geebanger0  [author] 9 Jan @ 5:19pm 
if it were lite thered be no point. the tank already knocks you back enough by default
Unknown 9 Jan @ 9:49am 
You have tested it at a long distance as seen in the sample video and it is fine but in smaller or shorter places it looks ugly, make a lite version please bro or tell me how to modify it:steamsad:
Unknown 6 Jan @ 6:09am 
bro podrias hacer que no sea tan extremo? a veces solo lo saca del limite del mapa y se queda medio flotando el personaje para luego caer y morir, no se si puedas hacer una version lite donde su empuje no sea una kill sino que con suerte y caigas mejor y solo te bajes mucha vida por la altura pero obviamente quitarle un poco esa elevación tan alta, que le vuele un poco menos en pocas palabras :steamthis:
fallsie 4 Jan @ 8:24pm 
bro just takes off
Oakman227 (but spooky) 26 Dec, 2024 @ 5:55pm 
tanks on steroids
Tomas Horvath 24 Dec, 2024 @ 5:54pm 
instant kill
Villadssejrj 20 Dec, 2024 @ 7:33am 
pov you have 23 hp and tank hits you
XR CO-OP 20 Dec, 2024 @ 2:08am 
I will try 555
Ricochet 19 Dec, 2024 @ 6:29pm 
G A M E :gordon:
Dickinwing 19 Dec, 2024 @ 4:31pm 
woow
少女的祈祷 17 Dec, 2024 @ 7:01am 
t:steambored:
PeopleHater 17 Dec, 2024 @ 1:15am 
:winter2019angryyul: