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

[REQUEST] L4D2 Bots using explosive and incendiary ammo packs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr. LightMare
Junior Member
Join Date: Oct 2017
Old 10-18-2017 , 03:31   [REQUEST] L4D2 Bots using explosive and incendiary ammo packs
Reply With Quote #1

I am sure that i'm not the only one that would love it if the bots in L4D2 to use the special ammo packs.

I'm currently using the Gear Transfer plugin to make the bots pick up items so i don't think there is a need to code them to pick up the packs.

Here is some of my ideas on how the bots could decide when to deploy an ammo pack:

When their primary weapon ammo is below X%.
OR
When a Tank spawns on the map.
OR
When a Witch spawns on the map.
OR
(Explosive ammo only) When a horde spawns on the map.
OR
Just on a random timer.

I would literally worship the person who could make this happen!
Dr. LightMare is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 10-19-2017 , 01:01   Re: [REQUEST] L4D2 Bots using explosive and incendiary ammo packs
Reply With Quote #2

I'd like a plugin that does this as well.

Idea: Perhaps a plugin like this could also include an admin command that activates the script for the bots to deploy an ammo pack. That way, in the event that an ammo pack is unexpectedly needed, a present admin can trigger the plugin's main function.
__________________

Last edited by Psyk0tik; 10-22-2017 at 11:28.
Psyk0tik is offline
Dr. LightMare
Junior Member
Join Date: Oct 2017
Old 10-19-2017 , 17:36   Re: [REQUEST] L4D2 Bots using explosive and incendiary ammo packs
Reply With Quote #3

Quote:
Originally Posted by Crasher_3637 View Post
I'd like a plugin that does this as well.

Idea: Perhaps a plugin like this could also include an admin command that activates the script for the bots to deploy an ammo pack. That way, in the event that an ammo pack is unexpectedly needed, a present admin can trigger the plugin's main function.
That would be a useful addition.
Dr. LightMare is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 10-23-2017 , 10:02   Re: [REQUEST] L4D2 Bots using explosive and incendiary ammo packs
Reply With Quote #4

Like the idea! Okay, give me time to do this as it should be easy enough.
cravenge is offline
Dr. LightMare
Junior Member
Join Date: Oct 2017
Old 10-23-2017 , 10:07   Re: [REQUEST] L4D2 Bots using explosive and incendiary ammo packs
Reply With Quote #5

Quote:
Originally Posted by cravenge View Post
Like the idea! Okay, give me time to do this as it should be easy enough.
THANK YOU!
I think you might be the first one to do something like this. Atleast i haven't found anything like it from anywhere.
Would you be so kind and take a look of my other idea about bots using mounted turrets?
Dr. LightMare is offline
Dr. LightMare
Junior Member
Join Date: Oct 2017
Old 10-23-2017 , 11:57   Re: [REQUEST] L4D2 Bots using explosive and incendiary ammo packs
Reply With Quote #6

Quote:
Originally Posted by cravenge View Post
Okay, try this first and post back feedbacks and/or suggestions about the plugin. I haven't added what Crasher stated but I need to know if the plugin you requested works well before I do that.

Your other idea might be a little challenging but I'd like to give it a try too.
Trying it right now!
Dr. LightMare is offline
Dr. LightMare
Junior Member
Join Date: Oct 2017
Old 10-23-2017 , 12:05   Re: [REQUEST] L4D2 Bots using explosive and incendiary ammo packs
Reply With Quote #7

Quote:
Originally Posted by cravenge View Post
Okay, try this first and post back feedbacks and/or suggestions about the plugin. I haven't added what Crasher stated but I need to know if the plugin you requested works well before I do that.

Your other idea might be a little challenging but I'd like to give it a try too.
NICE it works! They do deploy packs on hordes but not on tanks.

EDIT: Also they only seem to deploy a pack once per map.

Last edited by Dr. LightMare; 10-23-2017 at 12:14.
Dr. LightMare is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 10-25-2017 , 09:24   Re: [REQUEST] L4D2 Bots using explosive and incendiary ammo packs
Reply With Quote #8

Quote:
Originally Posted by Dr. LightMare View Post
[...]
I see the results are good. Hmm, quite odd on the tank part. Maybe "tank_spawn" event doesn't fire too often so I'll have to change it to "player_spawn" event since it almost fires on every occasion.

Last edited by cravenge; 10-25-2017 at 09:50.
cravenge is offline
Dr. LightMare
Junior Member
Join Date: Oct 2017
Old 10-25-2017 , 09:33   Re: [REQUEST] L4D2 Bots using explosive and incendiary ammo packs
Reply With Quote #9

Quote:
Originally Posted by cravenge View Post
I see the results are good. Hmm, quite odd on the tank part. Maybe "tank_spawn" event doesn't fire too often so I'll have to change it to "player_spawn" event since it almost fires on every occasion.
I have played few matches, but i have not yet seen them deploy pack on witch/tank spawns.
They do deploy to hordes but only once per map.
I can't say for sure but so far thats what i have experienced.
Dr. LightMare is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 10-25-2017 , 09:52   Re: [REQUEST] L4D2 Bots using explosive and incendiary ammo packs
Reply With Quote #10

I added every check that you wanted which means they will only use them when:
  1. Their primary weapons are running out of ammo.
    • 15 for SMGs
    • 10 for both T1 and T2 Shotguns
    • 25 for Rifles
    • 20 for Snipers
    • 30 for M60
    • 5 for Grenade Launchers
  2. A tank spawning on the map.
  3. A witch spawning on the map.
  4. A horde spawning on the map.

Here, I fixed some bugs regarding the 'only deploy once' restriction rule I accidentally coded. Post feedbacks and/or suggestions.
Attached Files
File Type: sp Get Plugin or Get Source (ammo_pack_deployers-l4d2.sp - 185 views - 17.9 KB)
File Type: smx ammo_pack_deployers-l4d2.smx (12.7 KB, 203 views)
cravenge 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:11.


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