Raised This Month: $51 Target: $400
 12% 

[L4D2] Bots Weapon Preferences Editor (UPDATED 09-11-2017)


Post New Thread Reply   
 
Thread Tools Display Modes
Deadpool69
Junior Member
Join Date: Jul 2015
Old 10-29-2020 , 20:12   Re: [L4D2] Bots Weapon Preferences Editor (UPDATED 09-11-2017)
Reply With Quote #61

Quote:
Originally Posted by DreadedGhoul575 View Post
Tried it and installed left 4 downtown 2 (not the src or playerslots, the default one), changed the values and the bots were still the same.

Gamedata link is dead btw.
I'm also having this exact same issue, even though I downloaded the latest version of this plugin and Left 4 Downtown (the no-playerslot version). I changed Nick's preferences so he never picks up assault rifles, but when I drop an AR near me to bait him, he still goes to pick it up.

Here are the mods that I have enabled:
Deadpool69 is offline
Iizuka07
Senior Member
Join Date: Aug 2018
Location: Underground
Old 02-17-2022 , 14:54   Re: [L4D2] Bots Weapon Preferences Editor (UPDATED 09-11-2017)
Reply With Quote #62

Can someone update this please

L 02/17/2022 - 20:48:22: [SM] Exception reported: Property "m_vecOrigin" not found (entity 261/predicted_viewmodel)
L 02/17/2022 - 20:48:22: [SM] Blaming: [L4D2] Bots Weapon Preference Manipulation.smx
L 02/17/2022 - 20:48:22: [SM] Call stack trace:
L 02/17/2022 - 20:48:22: [SM] [0] GetEntPropVector
L 02/17/2022 - 20:48:22: [SM] [1] Line 1013, /home/forums/content/files/2/4/4/9/4/4/165494.attach::L4D2_OnFindScavengeItem
L 02/17/2022 - 20:48:22: [SM] [3] Call_Finish
L 02/17/2022 - 20:48:22: [SM] [4] Line 10411, C:\Servers\L4D2\left4dead2\addons\sourcemod\s cripting\left4dhooks.sp:: DTR_SurvivorBot_FindScavengeItem_Post
__________________
死が待っている

Last edited by Iizuka07; 02-17-2022 at 14:54.
Iizuka07 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-17-2022 , 17:57   Re: [L4D2] Bots Weapon Preferences Editor (UPDATED 09-11-2017)
Reply With Quote #63

Quote:
Originally Posted by Iizuka07 View Post
Can someone update this please

L 02/17/2022 - 20:48:22: [SM] Exception reported: Property "m_vecOrigin" not found (entity 261/predicted_viewmodel)
L 02/17/2022 - 20:48:22: [SM] Blaming: [L4D2] Bots Weapon Preference Manipulation.smx
L 02/17/2022 - 20:48:22: [SM] Call stack trace:
L 02/17/2022 - 20:48:22: [SM] [0] GetEntPropVector
L 02/17/2022 - 20:48:22: [SM] [1] Line 1013, /home/forums/content/files/2/4/4/9/4/4/165494.attach::L4D2_OnFindScavengeItem
L 02/17/2022 - 20:48:22: [SM] [3] Call_Finish
L 02/17/2022 - 20:48:22: [SM] [4] Line 10411, C:\Servers\L4D2\left4dead2\addons\sourcemod\s cripting\left4dhooks.sp:: DTR_SurvivorBot_FindScavengeItem_Post
This seems to require a lot of changes to modify all the arrays from storing entity indexes and use entity references instead which is what should be done to accurately identify the correct entity to affect. Entity indexes are recycled, so you can't guarantee they're the same entity when storing their index. This has been expressed endlessly over the years.
__________________
Silvers is offline
Gold Fish
Senior Member
Join Date: Mar 2020
Old 02-18-2022 , 04:54   Re: [L4D2] Bots Weapon Preferences Editor (UPDATED 09-11-2017)
Reply With Quote #64

A very complex and heavy plugin for the server, as I understand it, the weapon is forcibly issued to the bot from the ground? Maybe there are some other ways to explain to bots what kind of weapons to take?
__________________
-

PHP Code:
public OnClientConnect(int Client) {
    
KickClient(Client"sorry");

Gold Fish is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-18-2022 , 07:48   Re: [L4D2] Bots Weapon Preferences Editor (UPDATED 09-11-2017)
Reply With Quote #65

L4D2_OnFindScavengeItem is what bots use to select weapons. Looking through the plugin it is very heavy on the server, lots of strings constantly being created even if they're never used (created before checking IsValidEntity for example). There are lots of string checks that should happen after checking for a valid handle and plenty other optimizations. Could do with being re-written in all honesty and with a lot less code.
__________________
Silvers is offline
Sev
Veteran Member
Join Date: May 2010
Old 02-18-2022 , 14:28   Re: [L4D2] Bots Weapon Preferences Editor (UPDATED 09-11-2017)
Reply With Quote #66

I thought it was a fine plugin for the time it came out as it allowed you to prevent the bots from picking up snipers or at the time restoring the original weapon preference for the L4D1 crew before that got fixed in the TLS update.

Nowadays I probably wouldn't use it.

Last edited by Sev; 02-18-2022 at 14:30.
Sev is offline
Iizuka07
Senior Member
Join Date: Aug 2018
Location: Underground
Old 12-27-2023 , 10:18   Re: [L4D2] Bots Weapon Preferences Editor (UPDATED 09-11-2017)
Reply With Quote #67

Is there any updates on this? This plugin is a must have
__________________
死が待っている
Iizuka07 is offline
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 01-01-2024 , 11:45   Re: [L4D2] Bots Weapon Preferences Editor (UPDATED 09-11-2017)
Reply With Quote #68

Quote:
Originally Posted by Silvers View Post
L4D2_OnFindScavengeItem is what bots use to select weapons. Looking through the plugin it is very heavy on the server, lots of strings constantly being created even if they're never used (created before checking IsValidEntity for example). There are lots of string checks that should happen after checking for a valid handle and plenty other optimizations. Could do with being re-written in all honesty and with a lot less code.
Looking back at the code, it really is very painful, this was probably the first huge plugin of this kind that I ever undertook without really fully having the necessary experience (or skills to be honest), I say it's a miracle it even worked as it did.

It definitely needs a complete overhaul and rewrite, I'm surprised there does not exist a (better written) alternative all these years later.
__________________
DeathChaos25 is offline
Reply



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 16:01.


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