Raised This Month: $32 Target: $400
 8% 

[L4D2] Ammo Pack Deployers


Post New Thread Reply   
 
Thread Tools Display Modes
Author
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Plugin ID:
6012
Plugin Version:
1.11
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    10 
    Plugin Description:
    Manipulates survivor bots to deploy ammo packs in certain situations.
    Old 02-03-2018 , 09:02   [L4D2] Ammo Pack Deployers
    Reply With Quote #1

    Description:


    ConVars:


    Commands:


    Bugs:


    Notes:


    Changelog:
    Attached Files
    File Type: sp Get Plugin or Get Source (ammo_pack_deployers-l4d2.sp - 2409 views - 23.8 KB)
    File Type: smx ammo_pack_deployers-l4d2.smx (14.1 KB, 1355 views)

    Last edited by cravenge; 06-28-2018 at 05:02.
    cravenge is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 02-03-2018 , 14:48   Re: [L4D2] Ammo Pack Deployers
    Reply With Quote #2

    Nice!
    __________________
    Psyk0tik is offline
    Dr. LightMare
    Junior Member
    Join Date: Oct 2017
    Old 02-05-2018 , 06:25   Re: [L4D2] Ammo Pack Deployers
    Reply With Quote #3

    HUGE Thanks!
    Dr. LightMare is offline
    ricksfishin
    Senior Member
    Join Date: Oct 2017
    Old 02-05-2018 , 15:02   Re: [L4D2] Ammo Pack Deployers
    Reply With Quote #4

    Compile error 181: function argument named 'vector' differs from prototype
    Have working l4downtown Exension so linux installed.
    Have L4D2 New Ammo Packs installed works fine.
    ricksfishin is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 02-06-2018 , 02:36   Re: [L4D2] Ammo Pack Deployers
    Reply With Quote #5

    Quote:
    Originally Posted by ricksfishin View Post
    [...]
    I assure you that this compiles just fine. Your Left 4 Downtown 2 include file must be outdated/old.

    Last edited by cravenge; 02-06-2018 at 02:37.
    cravenge is offline
    theproperson
    Member
    Join Date: Feb 2017
    Old 02-08-2018 , 04:24   Re: [L4D2] Ammo Pack Deployers
    Reply With Quote #6

    This is a very useful plugin, Thank you cravenge. I am wondering about these errors that are appearing in my logs, should I be worried or are these harmless?

    L 02/08/2018 - 03:56:22: SourceMod error session started
    L 02/08/2018 - 03:56:22: Info (map "C12m1_hilltop") (file "errors_20180208.log")
    L 02/08/2018 - 03:56:22: [SM] Exception reported: Invalid Handle 0 (error: 4)
    L 02/08/2018 - 03:56:22: [SM] Blaming: ammo_pack_deployers-l4d2.smx
    L 02/08/2018 - 03:56:22: [SM] Call stack trace:
    L 02/08/2018 - 03:56:22: [SM] [0] ArrayList.Length.get
    L 02/08/2018 - 03:56:22: [SM] [1] Line 279, ammo_pack_deployers-l4d2.sp::OnEntityDestroyed
    L 02/08/2018 - 03:56:22: [SM] Exception reported: Invalid Handle 0 (error: 4)
    L 02/08/2018 - 03:56:22: [SM] Blaming: ammo_pack_deployers-l4d2.smx
    L 02/08/2018 - 03:56:22: [SM] Call stack trace:
    L 02/08/2018 - 03:56:22: [SM] [0] ArrayList.Length.get
    L 02/08/2018 - 03:56:22: [SM] [1] Line 279, ammo_pack_deployers-l4d2.sp::OnEntityDestroyed
    L 02/08/2018 - 03:56:27: [SM] Exception reported: Invalid Handle 0 (error: 4)
    L 02/08/2018 - 03:56:27: [SM] Blaming: ammo_pack_deployers-l4d2.smx
    L 02/08/2018 - 03:56:27: [SM] Call stack trace:
    L 02/08/2018 - 03:56:27: [SM] [0] ArrayList.Length.get
    L 02/08/2018 - 03:56:27: [SM] [1] Line 279, ammo_pack_deployers-l4d2.sp::OnEntityDestroyed
    L 02/08/2018 - 03:56:27: [SM] Exception reported: Invalid Handle 0 (error: 4)
    L 02/08/2018 - 03:56:27: [SM] Blaming: ammo_pack_deployers-l4d2.smx
    L 02/08/2018 - 03:56:27: [SM] Call stack trace:
    L 02/08/2018 - 03:56:27: [SM] [0] ArrayList.Length.get
    L 02/08/2018 - 03:56:27: [SM] [1] Line 279, ammo_pack_deployers-l4d2.sp::OnEntityDestroyed
    L 02/08/2018 - 03:56:27: [SM] Exception reported: Invalid Handle 0 (error: 4)
    L 02/08/2018 - 03:56:27: [SM] Blaming: ammo_pack_deployers-l4d2.smx
    L 02/08/2018 - 03:56:27: [SM] Call stack trace:
    L 02/08/2018 - 03:56:27: [SM] [0] ArrayList.Length.get
    L 02/08/2018 - 03:56:27: [SM] [1] Line 279, ammo_pack_deployers-l4d2.sp::OnEntityDestroyed
    L 02/08/2018 - 04:01:53: Error log file session closed.
    theproperson is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 02-08-2018 , 08:24   Re: [L4D2] Ammo Pack Deployers
    Reply With Quote #7

    Quote:
    Originally Posted by theproperson View Post
    [...]
    Those errors are harmless, but I assure you that the plugin will still work. I'm kinda working it out on figuring what causes them to pop out and why.
    cravenge is offline
    DarkDeviL
    SourceMod Moderator
    Join Date: Apr 2012
    Old 02-08-2018 , 11:30   Re: [L4D2] Ammo Pack Deployers
    Reply With Quote #8

    Quote:
    Originally Posted by cravenge View Post
    Those errors are harmless, but I assure you that the plugin will still work. I'm kinda working it out on figuring what causes them to pop out and why.
    You're not checking whether it is a valid entity:

    Code:
    public void OnEntityCreated(int entity, const char[] classname)
    {
    	if (entity < 1 || entity > 2048)
    	{
    		return;
    [...]
    vs

    Code:
    public void OnEntityDestroyed(int entity)
    {
    	if (IsAmmoPack(entity) && !IsAmmoPackOwned(entity))
    	{
    [...]
    Adding some check in OnEntityDestroyed before blindly using "entity" might fix it.
    __________________
    Mostly known as "DarkDeviL".

    Dropbox FastDL: Public folder will no longer work after March 15, 2017!
    For more info, see the [SRCDS Thread], or the [HLDS Thread].
    DarkDeviL is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 02-09-2018 , 22:14   Re: [L4D2] Ammo Pack Deployers
    Reply With Quote #9

    Quote:
    Originally Posted by arne1288 View Post
    Adding some check in OnEntityDestroyed before blindly using "entity" might fix it.
    Ohh, okay. Noted! Thanks!
    cravenge is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 06-28-2018 , 04:53   Re: [L4D2] Ammo Pack Deployers
    Reply With Quote #10

    A (probably last) minor update has been posted! Please check the changelog for further details.
    cravenge 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 00:19.


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