Left 4 Dead 2

Left 4 Dead 2

Super Knockback Tanks
129 Comments
not_requested49 Dec 5 @ 8:26am 
nice, i was thinking about having this and now i dont have to make it myself
pech Nov 19 @ 8:40am 
watch yo tone
Isolda Sep 5 @ 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 Sep 5 @ 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 Sep 5 @ 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 Sep 5 @ 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] Sep 5 @ 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] Sep 5 @ 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 Sep 5 @ 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 Sep 5 @ 10:25am 
nevermind the mod worked
Geebanger0  [author] Sep 2 @ 4:47am 
are you on a local host server
Qxxqwas Sep 2 @ 4:43am 
the mod didn't worked
❆ЛёоНя!❆ May 26 @ 10:47am 
Don't ♥♥♥♥ with this Senator!
doctor crentist Apr 30 @ 5:12pm 
it makes the game ♥♥♥♥♥♥♥♥ but its so funny when you have voice over mods AND skin mods for the survivors like spongebob and you see him get ♥♥♥♥♥♥♥ flung as he screams
Geebanger0  [author] Apr 28 @ 12:50am 
thats great, son. just great.
Louis Apr 27 @ 9:50am 
pretty sure. threw a burger tank. into space. at work
Geebanger0  [author] Apr 19 @ 6:44pm 
are you sure
scotomy Apr 19 @ 6:42pm 
im tanking it im tanking it
Geebanger0  [author] Apr 18 @ 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 Apr 18 @ 5:51pm 
Can we just pretend this never happened? Please delete your comment so I can delete mine's.
Machoboy197 Apr 18 @ 5:50pm 
Oops, I was referring to a different addon, so sorry
Geebanger0  [author] Apr 18 @ 1:37pm 
it is a script
Machoboy197 Apr 18 @ 11:45am 
Don't download this, it has missing textures
Detz Mar 24 @ 6:34am 
feel that?
that's "so true"
Nox79 Mar 24 @ 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♥] Feb 21 @ 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 Feb 19 @ 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] Feb 12 @ 8:29pm 
:BL3Thumbsup:
Prof.NickelButt Feb 12 @ 2:54pm 
Verifying files seemed to fix the issue, thank you Geebanger0
El Rey De Salem Feb 11 @ 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] Feb 10 @ 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 Feb 10 @ 9:19pm 
Anyone else having trouble where the tanks still send you into the ♥♥♥♥♥♥♥ stratosphere after disabling and deleting the addon files?
GlarinGamer Jan 28 @ 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 Jan 28 @ 5:32am 
Huy Me Falto El Respeto: Karma Summon!!!! x144000
Geebanger0  [author] Jan 27 @ 10:46pm 
No. Ve y busca mujeres reales. Existen y son mucho mejores que Zoey.
El Rey De Salem Jan 27 @ 10:24pm 
Tienes Razón Tengo Que Clonarla :)
Geebanger0  [author] Jan 27 @ 9:02pm 
No, ella es fea. Puedes conseguir algo mejor que ella.
El Rey De Salem Jan 26 @ 9:24pm 
Mi Amor Zoey
Geebanger0  [author] Jan 9 @ 5:19pm 
if it were lite thered be no point. the tank already knocks you back enough by default
Unknown Jan 9 @ 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 Jan 6 @ 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 Jan 4 @ 8:24pm 
bro just takes off
Oakman227 (but festive) Dec 26, 2024 @ 5:55pm 
tanks on steroids
Tomas Horvath Dec 24, 2024 @ 5:54pm 
instant kill
Villadssejrj Dec 20, 2024 @ 7:33am 
pov you have 23 hp and tank hits you
XR CO-OP Dec 20, 2024 @ 2:08am 
I will try 555
Ricochet Dec 19, 2024 @ 6:29pm 
G A M E :gordon:
Dickinwing Dec 19, 2024 @ 4:31pm 
woow
少女的祈祷 Dec 17, 2024 @ 7:01am 
t:steambored: