Left 4 Dead 2

Left 4 Dead 2

Homemade Sentry Floating Turret (Standalone)
78 Comments
kurochama  [author] 5 Jul @ 12:09am 
@Sultan Abu Al Pepsi , unfortunately, unlike the gnome turret that uses L4D2 models (so other players can see it without problem), this one uses custom models. So, other players need to have this mod enabled so they won't see the error model.
Sultan Abu Al Pepsi 4 Jul @ 11:39pm 
is there any way to make random players to not see the "ERROR" model ? like maybe force them to automatically download the mod or something?
8ceptonix 29 May @ 6:05pm 
first step to drone warfare in l4d2
L_M 20 May @ 9:14pm 
hmm i never try nor found that mod like that

weel gonna try search it for test
kurochama  [author] 20 May @ 6:22pm 
@L_M , if you use a mod that spawns pitchfork in all campaigns, you may try to change the mod position in Addon Menu. Make pitchfork mod load earlier than sentry floating turret.
L_M 20 May @ 5:06pm 
im using admin system mod and yeah it can

but looks like its incompitable with update melee like pitchfork and css one

idk maybe the admin system is bad cant call it because its work fine when i test it at tumtara map but when i try play normally it didnt spawn the turret

maybe must use sv_cheat to spawn it
kurochama  [author] 20 May @ 4:54pm 
@L_M , did you also try to spawn manually via "give itemname" on console. For example if you replace crowbar with sentry: give crowbar.
In fact I never encountered this spawn rate problem when using this mod, & even with "give baseball_bat" console command, I got sentry anytime I typed that.
L_M 20 May @ 4:24pm 
im just rename that txt file to what melee i want to convert it, didnt change anything contain of it


well gonna try again maybe im just suck didnt find it :/
kurochama  [author] 20 May @ 4:01pm 
@L_M , the spawn rate should be 100% though, as it replaces any baseball bats. & if you change the baseball bat to other melee, the spawn rate is still 100%. Probably there's a mistake during your process in changing the melee, like for example, you might forget to change the melee model to sentry (if you open "baseball_bat.txt" in the "melee" folder, the model name is not baseball bat but sentry).
L_M 20 May @ 12:18pm 
hmm why the spawn rate of this turret kinda low like i almost never see it

if i want to edit the rate spawn of it, which code that focus of that?
L_M 16 May @ 6:20pm 
ah yes, i found all of em

gonna try mess with it:steamthumbsup:, thanks for help
kurochama  [author] 16 May @ 3:16pm 
@L_M , did you mean that you wanted to change it so it would replace melee other than baseball bat? This one is slightly complicated, as you'll need to modify several files. One of them is in "melee" folder. You need to rename it to other melee name. Then the rest of 2 files are in "vscripts" folder. One has the list of custom weapon, & the other is "sentry_use.nut". Replace 'baseball_bat" there with other melee.
As for range, it can be found in both "sentry_turret" & "sentry_turret_weapon". For the damage, it's in "sentry_turret_weapon".
L_M 16 May @ 8:42am 
hmm im curious

if i want to change the placement weapon to turn sentry, im just copy weapon from pak_01.dir and place to this script right

and now which code at "sentry" section that setting how to change the weapon to sentry

and one more, which code value i must focus to change the range and damage wise?
kurochama  [author] 25 Apr @ 3:02pm 
@하루시카 모모코 , you need to host a local server if you want to use in multiplayer.
Aiveo 25 Apr @ 2:15pm 
Isn't this add-on generated in multi?
undead army 18 Apr @ 3:53am 
well done kurochama...
these laser sentries are very helpful in playing single mode:steamthumbsup:
kurochama  [author] 12 Apr @ 3:30pm 
Alternatively, you can use this instead for turret, if you still can't find which mods causing the bug: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3161723055
kurochama  [author] 12 Apr @ 3:27pm 
@King Of The Family , I just tested with L4B2 & it worked, like this: https://drive.google.com/file/d/1ufVRZHHmDIlpkgr5wZUtFFWsj29-Ce4X/view?usp=sharing
So, the conflict is not with Left 4 Lib, but other mods. You can try to check your script mods as one or some of them could be what caused this mod to stop working.
King Of The Family 12 Apr @ 2:43pm 
ah nvm. im not using custom weapons of any kind. :/
King Of The Family 12 Apr @ 2:41pm 
AH! okay. yes im using another custom weapons mod (i think)
kurochama  [author] 12 Apr @ 2:26pm 
@King Of The Family , did it stop working when Left 4 Lib is active? It's the first time I heard about this. I'll try to check it by testing with Left 4 Bots 2 soon.
Anyway, did you probably also use other custom weapons, or custom weapon lab? This mod uses same methods, as it's originally made by Rectus, the author of all custom weapons & the source of references of custom weapon lab. So, there might be a possibility that it stopped working because of other custom weapon mods.
King Of The Family 12 Apr @ 1:04pm 
it seems Left 4 Lib doesn't like it... i hold click and does the little animation but the turret never spawns.
King Of The Family 12 Apr @ 1:03pm 
Continued (fuck you steam xD)


SPAWNING SENTRY FLOATING TURRET...
Activating Custom Weapons
Custom Weapon Base loading...
Custom weapon controller by Rectus
Initializing weapon controller...
scripts/vscripts/custom_sentry.nut line = (33) column = (22) : error can't assign expression

AN ERROR HAS OCCURED [Failed to include script "custom_sentry"]

CALLSTACK
*FUNCTION [AddCustomWeapon()] scripts/vscripts/cweapon_fturret_controller.nut line [88]
*FUNCTION [AddWeapons()] scripts/vscripts/cstweapon_fturret.nut line [15]
*FUNCTION [main()] scripts/vscripts/cstweapon_fturret.nut line [34]
*FUNCTION [DoIncludeScript()] NATIVE line [-1]
*FUNCTION [IncludeScript()] unnamed line [75]
*FUNCTION [OnGameEvent_round_start_post_nav()] scripts/vscripts/cweapon_fturret_trigger.nut line [6]
*FUNCTION [__RunEventCallbacks()] unnamed line [211]
*FUNCTION [__RunGameEventCallbacks()] unnamed line [218]
King Of The Family 12 Apr @ 1:03pm 
continued:

LOCALS
[testScope] TABLE
[scriptName] "custom_sentry"
[viewModel] "models/weapons/melee/v_sentry.mdl"
[this] TABLE
[@ITERATOR@] 1
[props] TABLE
[weaponName] "sentry"
[weapons] TABLE
[this] TABLE
[vargv] ARRAY
[this] TABLE
[scope] TABLE
[name] "cstweapon_fturret"
[this] TABLE
[event] TABLE
[this] TABLE
[funcName] "OnGameEvent_round_start_post_nav"
[idx] 11
[useTable] TABLE
[bWarnIfMissing] true
[globalTableName] "GameEventCallbacks"
[prefix] "OnGameEvent_"
[params] TABLE
[event] "round_start_post_nav"
[this] TABLE
[params] TABLE
[event] "round_start_post_nav"
[this] TABLE
SCRIPT PERF WARNING --- "main" ran long at 1.835085ms
King Of The Family 12 Apr @ 1:02pm 
im getting this error in the console:
AN ERROR HAS OCCURED [Failed to include script "cstweapon_fturret"]

CALLSTACK
*FUNCTION [IncludeScript()] unnamed line [75]
*FUNCTION [OnGameEvent_round_start_post_nav()] scripts/vscripts/cweapon_fturret_trigger.nut line [6]
*FUNCTION [__RunEventCallbacks()] unnamed line [211]
*FUNCTION [__RunGameEventCallbacks()] unnamed line [218]

LOCALS
[scope] TABLE
[name] "cstweapon_fturret"
[this] TABLE
[event] TABLE
[this] TABLE
[funcName] "OnGameEvent_round_start_post_nav"
[idx] 11
[useTable] TABLE
[bWarnIfMissing] true
[globalTableName] "GameEventCallbacks"
[prefix] "OnGameEvent_"
[params] TABLE
[event] "round_start_post_nav"
[this] TABLE
[params] TABLE
[event] "round_start_post_nav"
[this] TABLE
kurochama  [author] 12 Apr @ 12:39pm 
@King Of The Family , this mod replaces basebal bat, so if you want to spawn it, spawn a baseball bat instead. Then when carrying it, hold ATTACK key & aim at the ground & then release the ATTACK key to deploy it on the ground.
King Of The Family 12 Apr @ 11:46am 
it won't let me spawn it. is there something i have to do to be able to spawn it?
kurochama  [author] 27 Feb @ 8:49am 
@*ST , this mod is ported from the original Homemade Sentry Turret by Rectus. There are only slight modifications on the turret scripts, & that shouldn't cause other bot mod to stop working because this is a custom weapon mod that should be unrelated to bot mods. I regularly used this together with other script mods & some bot mods but I never encountered such bug. If there are some errors, there should be some red texts showing up on the console. So, you can check those red texts to see which one of the mods caused the errors.
*ST 27 Feb @ 8:17am 
This MOD conflicts with [Advanced Bot AI], causing both MODs to become non-functional. We hope this can be fixed.
Vandal59 26 Feb @ 12:41pm 
tiene fuego amigo
de resto nice
76561198130231914@bandit 18 Feb @ 2:21pm 
good afternoon, is it suitable for any map, even modified maps?
kurochama  [author] 12 Feb @ 9:15pm 
@L_M , that's actually one of hidden features that I forgot to remove :steamhappy: . Back then I also used this as a healing turret. Probably I'll remove, or add it as an optional feature later.
As for changing it to anything other than bat, that might need another vpk file that contains a melee script file. & this would no longer become a standalone mod if the ones on the EX version were applied here too. So probably I'll leave this standalone version as it is.
L_M 12 Feb @ 8:49pm 
i found bug or feature maybe

when im infront of this sentry while shooting i get temporary health rapidly like infuse


This might be a great feature, which is to create a sentry that can switch to healing mode.
or maybe making another mod of it


btw one more question

Can the melee weapon be changed to something other than a bat, like similar to your sentry EX mod that can be switched?
L_M 16 Jan @ 4:41am 
ok take yur time for fix it:steamthumbsup:
kurochama  [author] 15 Jan @ 7:35pm 
@K_N , Probably it's a random bug. I haven't tried to spawn both this & gnome turret together yet, as that could make both of them too OP, as both of them will wipe zombies out when without me taking a shot at all. I'll try to test by using those two together later.
L_M 15 Jan @ 6:24pm 
ok after i try again at survival the passing 3rd place, i deploy 6-7 sentry and it going well but at after 18 minutes it going bug again doing blank shot with yellow light

another thing im using gnome magic turret too in case it source of bug, bcs after i try deploy it, the sentry become bug like that
L_M 15 Jan @ 5:25pm 
@Gumbs others do not need to subcribe this only the host must, to make this mod work.
L_M 15 Jan @ 5:22pm 
wow, sweet im gonna try it again
Unsants 15 Jan @ 5:15pm 
It is only necessary for the host to have this mod, or the others must have it so that the error image does not appear?
kurochama  [author] 15 Jan @ 3:38pm 
@K_N , I just updated the mod, & changed the target priority to common infected.
kurochama  [author] 15 Jan @ 1:56pm 
@K_N , probably it's because of target priority. Currently, the target priority is SI + Tank (top priority) > CI > Witch (lowest priority). Tank & SI share equal priority, & somehow the turret will focus on the dying tank until he completely falls. Probably I'll try to swap the target priority later so CI will get the top priority instead of SI + tank.
L_M 15 Jan @ 10:12am 
after i try survival for 30 minute straight and use 6-7 turret, the turret perfectly fine, no one is blank shot again for that long. thank you for fixing it:steamthumbsup::steamhappy:

but one think what I'm confused about is that the turret keeps shooting (animated) dead tanks that make it unable to shoot common and SI.

but overall the big problem is solved now thank you
L_M 15 Jan @ 7:18am 
holy shit thank you very much, im gonna try ASAP
kurochama  [author] 15 Jan @ 6:46am 
@K_N , I just updated the mod & slightly changed the code for using ammo. You can try it again. & during my test (on the video preview), I used 4 sentry turrets for 5 minutes & 30 seconds, & there's no jamming bug. So, it should be fixed now.
L_M 14 Jan @ 11:46pm 
yeah it work fine but sometime its error again with short or long time

btw i found it when use like 4-5 sentry
kurochama  [author] 14 Jan @ 11:08pm 
@K_N , did it start to work again after picking & deploying it again?
L_M 14 Jan @ 9:54pm 
yeah, it stuck with yellow light and stuck track too while doing blank firing

it happen too with your mod turret ex(gamemaps)
kurochama  [author] 14 Jan @ 9:34pm 
@K_N , did the light on the sentry change colors? I'll try to check on the ammo part later. As for that "InfiniteAmmo" on the code, I think it won't do anything, as I already changed it to be always in infinite ammo.
L_M 14 Jan @ 9:00pm 
then its bug then

but i see the code at sentry_turret_weap it has infiniteAmmo false
what happen if i try enable it?
kurochama  [author] 14 Jan @ 8:13pm 
@Slim Shady , on the description, there's "Infinite Ammo" listed on the features. So, it's not a bug.