Raised This Month: $276 Target: $400
 69% 

[L4D/L4D2] Grenade Throwing Bots


Post New Thread Reply   
 
Thread Tools Display Modes
Secepeul
Junior Member
Join Date: Apr 2019
Old 06-17-2020 , 05:14   Re: [L4D/L4D2] Grenade Throwing Bots
Reply With Quote #121

Quote:
Originally Posted by SombiMan View Post
There's also Merudo's version for left 4 downtown.
https://forums.alliedmods.net/showpo...&postcount=817

If anyone's interested, here's my edited version of this plugin. I removed the "#include <left4downtown>" because I'm using Left 4 DHooks Direct and added a "[0]" to "bChill" at line 93 to Doroemon's version to make it compile properly. It's working, but I'm still getting the same errors as the ones posted in this thread. The bots also sometimes miss hitting the tank.
Hey man, Why don't you post it somewhere to be listed in the plugin's tab, it would help a lot of people.Just a suggestion
Secepeul is offline
SombiMan
Junior Member
Join Date: Jun 2020
Old 06-17-2020 , 06:59   Re: [L4D/L4D2] Grenade Throwing Bots
Reply With Quote #122

I lack programming experience and I still can't fix the bug frequently mentioned in this thread so I'd get unapproved immediately if I post my version. Cravenge and Edison also did most of the work so I'd feel like stealing their work. Thanks for your kind thought though.

Last edited by SombiMan; 06-17-2020 at 07:01.
SombiMan is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 06-17-2020 , 07:26   Re: [L4D/L4D2] Grenade Throwing Bots
Reply With Quote #123

What are all the problems? I see some things scattered over the last few pages, looks like just errors being reported to logs. Is "Exception reported: Invalid Handle" the only issue? I can look into that at some point. As for bots missing the tank when throwing, that's probably because theres a delay between targeting and throwing but I haven't looked at the code to know. Also not really something I care to fix, that just adds to the dynamics of the games and good the bots are not perfect.

@cravenge, you're still active, why don't you support your plugin?




Modified version from post #117. This fixes:
Quote:
L 07/06/2019 - 06:45:20: [SM] Exception reported: Invalid Handle 0 (error: 4)
L 07/06/2019 - 06:45:20: [SM] Blaming: grenade_throwing_bots-l4d2.smx
L 07/06/2019 - 06:45:20: [SM] Call stack trace:
L 07/06/2019 - 06:45:20: [SM] [0] ArrayList.Length.get
L 07/06/2019 - 06:45:20: [SM] [1] Line 101, grenade_throwing_bots-l4d2.sp::OnEntityDestroyed
L 07/06/2019 - 06:45:20: [SM] Exception reported: Invalid Handle 0 (error: 4)
L 07/06/2019 - 06:45:20: [SM] Blaming: grenade_throwing_bots-l4d2.smx
Attached Files
File Type: sp Get Plugin or Get Source (grenade_throwing_bots-l4d2.sp - 244 views - 15.1 KB)
__________________

Last edited by Silvers; 06-17-2020 at 08:09.
Silvers is offline
Alex101192
Senior Member
Join Date: Aug 2018
Old 06-17-2020 , 09:08   Re: [L4D/L4D2] Grenade Throwing Bots
Reply With Quote #124

Quote:
Originally Posted by Sev View Post
Eh I'd agree if we didn't have Sourcemod and/or the Workshop. Those two things keep the game going for me. Without them, the game would have about the same amount of players as L4D1 does these days. The original vanilla L4D2 game is stale as all hell and the love for it simply comes down to ego driven purists and trolls who love the wild west nature of vanilla non modded servers. Otherwise, the workshop and sourcemod keep the game from being painfully boring, regardless of mode.
Yeah the workshop is the only good thing about this game. Lots of great and funny mods inside it, and also a ton of great custom maps. But everything else is just bad. The community, the game itself etc... Even sourcemod is bad at this point. I have lost the count of how many working plugins don't work in l4d2, or how there is dead extensions like downtown that has been dead for 10 years (required by useful plugins) which was only replaced recently by silver. And of course many others plugins I deal with that didn't work at all and caused trouble and were not unaccepted.

Very few people care about this game, and I can see why to be honest.

Last edited by Alex101192; 06-17-2020 at 09:08.
Alex101192 is offline
simvolist777
Junior Member
Join Date: Oct 2017
Location: Afghanistan, Kandahar
Old 08-28-2020 , 10:10   Re: [L4D/L4D2] Grenade Throwing Bots
Reply With Quote #125

Hello. Can someone tell me why this plugin might not work on the server? There are no errors in the logs. The plugin starts, but the bots do not throw grenades. Is it possible some other plugin is preventing bots from throwing grenades? Here is a list of my plugins. I would be grateful for the advice.
] sm plugins list
"Admin File Reader" (1.10.0.6434) by AlliedModders LLC
"Admin Help" (1.10.0.6434) by AlliedModders LLC
"Admin Menu" (1.10.0.6434) by AlliedModders LLC
"Anti-Flood" (1.10.0.6434) by AlliedModders LLC
"Basic Ban Commands" (1.10.0.6434) by AlliedModders LLC
"Basic Chat" (1.10.0.6434) by AlliedModders LLC
"Basic Comm Control" (1.10.0.6434) by AlliedModders LLC
"Basic Commands" (1.10.0.6434) by AlliedModders LLC
"Basic Info Triggers" (1.10.0.6434) by AlliedModders LLC
"Basic Votes" (1.10.0.6434) by AlliedModders LLC
"Client Preferences" (1.10.0.6434) by AlliedModders LLC
"Fun Commands" (1.10.0.6434) by AlliedModders LLC
"Fun Votes" (1.10.0.6434) by AlliedModders LLC
"L4D Ghost Fly" (1.1.1a) by Madcap (modified by dcx2)
"Auto grab laser sight" (1.1) by WolfGang
"[L4D2]GrenadeLauncher_AmmoPile_patch" (1.0) by Lux
"[L4D2] Grenade Throwing Bots" (1. by cravenge, Edison1318, Windy Wind, Lux
"[L4D2] Nightmarish Common" (1.1) by Mortiegama
"[L4D2] Uncommon Boomer Bile" (1.12) by Mortiegama
"[L4D2] Survivor Respawning" (1.25) by Mortiegama
"L4D2 Bile the World" (1.0.7) by AtomicStryker
"[L4D1&2] Boomer Rain" (1.0.1) by Die Teetasse
"[L4D2] Healing Cola" (1.2) by SilverShot
"[L4D2] Explosive Cars" (1.0.1h) by honorcode23,Fixed: kochiurun119
"[L4D2] Fireworks Party" (1.7.1) by SilverShot
"Incapped Magnum" (1.4) by Oshroth
"[L4D2] Infected Loot Drops" (2.3d) by Thraka
"[L4D2] Knife Unlock" (1.1) by SilverShot, Dr!fter
"[L4D2] Lamp" (1.2) by SilverShot
"[L4D2] Melee Weapon Spawner" (1.2) by SilverShot
"L4D2 Mighty Stomp Foot" (1.0.1) by AtomicStryker
"L4D2MonsterBots1" (1.2.0) by Machine, Modified by Fwoosh
"[L4D2] Mutant Zombies" (1.3) by SilverShot
"L4D2 Spawn Uncommons" (1.0.9) by AtomicStryker
"[L4D2] Objects Spawner" (3.0) by honorcode23 & $atanic $pirit
"[L4D2] Spitter Acid Damage" (1.0) by SilverShot
"[L4D2] Weather Control" (1.6) by SilverShot
"[L4D2] Upgrade Pack Spawner" (1.3) by SilverShot
"[L4D2] Weapon/Zombie Spawner" (1.0a) by Zuko & McFlurry
"[L4D2] Weapon Unlock" (0.8.1) by Crimson_Fox
"[L4D, L4D2] No Death Check Until Dead" (1.4. by chinagreenelvis (modified by dcx2)
"[L4D2] Ammo Pile Spawner" (1.6) by SilverShot
"[L4D & L4D2] Health Cabinet" (1.7.1) by SilverShot
"[L4D1 AND L4D2] Cloud Damage" (2.22) by AtomicStryker
"[L4D & L4D2] Explosive Barrel" (1.5.2) by SilverShot
"[L4D1 And L4D2] Faster Health" (1.0) by Ernecio (Satanael)
"[L4D & L4D2] Flashlight Package" (2.6.1) by SilverShot
"[L4D & L4D2] Gear Transfer" (1.6.1) by SilverShot
"[L4D & L4D2] Prototype Grenades" (1.21) by SilverShot
"[L4D & L4D2] Gun Cabinet" (1.4) by SilverShot
"[L4D & L4D2] Mission and Weapons - Info Editor" (1.3) by SilverShot
"[L4D(2)] Laser Tag" (0.2) by KrX/Whosat
"L4D Players" (0.0.1) by NiCo-op
"Self Help" (1.0.1) by Pan Xiaohai
"Stuck Zombie Melee Fix" (1.0.4) by AtomicStryker
"[L4D2] superBoss" (1.0.0) by Pan Xiaohai
"tank's throw special infected" (1.2) by Pan Xiaohai
"[L4D & L4D2] UnVomit - Remove Boomer Screen Effect" (1.1) by SilverShot
"[L4D & L4D2] Health Vending Machine" (1.6) by SilverShot
"[L4D & L4D2] Weapon Crate" (1.6) by SilverShot
"[L4D & L4D2] Weapon Spawn" (1.4) by SilverShot
"[L4D2]M60_NoDrop_AmmoPile_patch" (1.0.7) by Lux
"[MT] Absorb Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Acid Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Aimless Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Ammo Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Blind Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Bomb Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Bury Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Car Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Choke Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Clone Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Cloud Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Drop Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Drug Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Drunk Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Electric Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Enforce Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Fast Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Fire Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Fling Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Fragile Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Ghost Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] God Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Gravity Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Heal Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Hit Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Hurt Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Hypno Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Ice Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Idle Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Invert Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Item Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Jump Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Kamikaze Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Lag Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Leech Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Medic Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Meteor Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Minion Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Necro Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Nullify Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Omni Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Panic Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Pimp Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Puke Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Pyro Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Quiet Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Recoil Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Regen Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Respawn Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Restart Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Rock Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Rocket Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Shake Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Shield Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Shove Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Slow Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Smash Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Smite Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Spam Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Splash Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Throw Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Track Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Ultimate Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Undead Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Vampire Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Vision Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Warp Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Whirl Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Witch Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Xiphos Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Yell Ability" (8.63) by Psyk0tik (Crasher_3637)
"[MT] Zombie Ability" (8.63) by Psyk0tik (Crasher_3637)
"Mutant Tanks" (8.63) by Psyk0tik (Crasher_3637)
"Player Commands" (1.10.0.6434) by AlliedModders LLC
"Reload.smx" Reload.smx
"Reserved Slots" (1.10.0.6434) by AlliedModders LLC
"[L4D2] ScavengeBots" (1.0) by Machine
"[L4D2] Secondary Weapons Menu" (1.2.1) by Teddy Revisted
"sm_silvercfg.smx" sm_silvercfg.smx
"Sound Commands" (1.10.0.6434) by AlliedModders LLC
"spitter throws rocks" (1) by spirit
"[L4D2] Secondary Weapons Menu" (1.2.1) by Teddy Revisted
"[L4D2] Spawn Tank" (0.2) by dr_lex
"WitchLight" (0.0. by BHaType

P.S. Found a solution to the problem. I ran the plugin on the local server and the bots started throwing grenades. For some reason, the plugin is not active on a dedicated server.

Last edited by simvolist777; 08-29-2020 at 05:11. Reason: Addition
simvolist777 is offline
SombiMan
Junior Member
Join Date: Jun 2020
Old 08-29-2020 , 09:14   Re: [L4D/L4D2] Grenade Throwing Bots
Reply With Quote #126

I think you're missing Left 4 DHooks. I'm not sure tho since I have very little experience in hosting a dedicated server.
SombiMan is offline
simvolist777
Junior Member
Join Date: Oct 2017
Location: Afghanistan, Kandahar
Old 09-10-2020 , 07:58   Re: [L4D/L4D2] Grenade Throwing Bots
Reply With Quote #127

Quote:
Originally Posted by SombiMan View Post
I think you're missing Left 4 DHooks. I'm not sure tho since I have very little experience in hosting a dedicated server.
Thanks you. It really helped. On the local server, the bots only threw Molotov cocktail. On a dedicated server, they can throw any other grenades. Also, now bots choose the type of grenade themselves.

Last edited by simvolist777; 09-10-2020 at 07:59.
simvolist777 is offline
Moran3
New Member
Join Date: Apr 2018
Old 09-16-2020 , 12:54   Re: [L4D/L4D2] Grenade Throwing Bots
Reply With Quote #128

Yes it works but the bots can't seem to catch the grenades themselves you have to give them yourself so they can use it and throw them
can you correct that?

Last edited by Moran3; 09-16-2020 at 13:10.
Moran3 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:28.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode