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

[L4D] Smoker Sharpshooter (v1.0.2, 2022-11-12)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Plugin ID:
8085
Plugin Version:
1.0.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Smoker can shoot survivors with his tongue instead of pulling them.
    Old 06-19-2022 , 06:20   [L4D] Smoker Sharpshooter (v1.0.2, 2022-11-12)
    Reply With Quote #1

    Description
    This plugin adds a spawn chance to become a sharpshooter smoker.
    You can "shoot" survivors with your tongue dealing damage.
    Basically you shoot your tongue, damage is dealt and the tongue is cut, you can attack right away.

    Features
    Smoker can shoot survivors with his tongue instead of pulling them.

    Cvars
    A configuration file named "l4d_smoker_sharpshooter.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod" folder.

    Code:
    // This file was auto-generated by SourceMod (v1.10.0.6435)
    // ConVars for plugin "l4d_smoker_sharpshooter.smx"
    
    
    // Percent chance to become a smoker boxer. 1-100
    // -
    // Default: "20"
    l4d_smoker_chance "20"
    
    // Delay between tonguepunches 0-100
    // -
    // Default: "0"
    l4d_smoker_tonguedelay "0"
    
    // Damage done to survivor per tonguepunch 1-100
    // -
    // Default: "10"
    l4d_smoker_tonguepunchdamage "10"
    Public Commands
    none

    Admin Commands

    Change Log:
    1.0.1 (19-June-2022)
    - Initial release.
    1.0.2 (12-November-2022)
    - Crash on Tonguerelease & Dealdamage / Test with Dealdamage on grab now.


    Notes
    Tested only on l4d1, might work for l4d2 though.
    This plugin shows 0 indication of support for more than one smoker.

    ToDo
    Atm I set miss delay and let it as it is.
    SetConVarInt(FindConVar("tongue_miss_delay"), g_iCvar_delay);
    Would be better to read original value and then set it to g_iCvar_delay when sharpshooter is spawned otherwise set original value.
    But atm it is hot outside, my armpits smell funny and I can't get myself up to do that now.

    Based on:

    https://forums.alliedmods.net/showthread.php?p=2674363
    Smoker Release by Axel Juan Nieves

    https://forums.alliedmods.net/showthread.php?t=98794
    [L4D & L4D2] Boomer Splash Damage by AtomicStryker

    https://forums.alliedmods.net/showthread.php?t=234442
    L4D2 - Noxious Smoker by Mortiegama

    https://forums.alliedmods.net/showthread.php?t=335105
    Marttts whole programming contruction I took from his tank car smash plugin.

    idea by eyal282 https://forums.alliedmods.net/showthread.php?p=2777620
    but I got the idea all wrong, so well I release the wrong idea anyways

    Thanks.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_smoker_sharpshooter.sp - 262 views - 9.7 KB)
    __________________

    Last edited by finishlast; 11-14-2022 at 12:12.
    finishlast is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 06-19-2022 , 16:45   Re: [L4D] Smoker Sharpshooter (v1.0.1, 2022-06-19)
    Reply With Quote #2

    How does your first instinct of Spiderman not tell you that it's supposed to fly?

    Interesting release, but I would want to allow players to switch into original smoker so they can finish the last survivor.

    Your plugin shows 0 indication of support for more than one smoker.
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334

    Last edited by eyal282; 06-19-2022 at 16:46.
    eyal282 is offline
    sonic155
    Senior Member
    Join Date: Mar 2019
    Old 11-09-2022 , 21:34   Re: [L4D] Smoker Sharpshooter (v1.0.1, 2022-06-19)
    Reply With Quote #3

    L 11/09/2022 - 05:51:10: [SM] Exception reported: Not enough space on the stack
    L 11/09/2022 - 05:51:10: [SM] Blaming: l4d_smoker_sharpshooter.smx
    L 11/09/2022 - 05:51:10: [SM] Call stack trace:
    L 11/09/2022 - 05:51:10: [SM] [1] Line 284, l4d_smoker_sharpshooter.sp:ealDamage
    L 11/09/2022 - 05:51:10: [SM] [2] Line 220, l4d_smoker_sharpshooter.sp::event_tongue_rele ase
    L 11/09/2022 - 05:51:10: [SM] [4] AcceptEntityInput
    L 11/09/2022 - 05:51:10: [SM] [5] Line 280, l4d_smoker_sharpshooter.sp:ealDamage
    L 11/09/2022 - 05:51:10: [SM] [6] Line 220, l4d_smoker_sharpshooter.sp::event_tongue_rele ase
    L 11/09/2022 - 05:51:10: [SM] [8] AcceptEntityInput
    L 11/09/2022 - 05:51:10: [SM] [9] Line 280, l4d_smoker_sharpshooter.sp:ealDamage
    L 11/09/2022 - 05:51:10: [SM] [10] Line 220, l4d_smoker_sharpshooter.sp::event_tongue_rele ase
    L 11/09/2022 - 05:51:10: [SM] [12] AcceptEntityInput
    L 11/09/2022 - 05:51:10: [SM] [13] Line 280, l4d_smoker_sharpshooter.sp:ealDamage
    L 11/09/2022 - 05:51:10: [SM] [14] Line 220, l4d_smoker_sharpshooter.sp::event_tongue_rele ase
    L 11/09/2022 - 05:51:10: [SM] [16] AcceptEntityInput
    L 11/09/2022 - 05:51:10: [SM] [17] Line 280, l4d_smoker_sharpshooter.sp:ealDamage
    L 11/09/2022 - 05:51:10: [SM] [18] Line 220, l4d_smoker_sharpshooter.sp::event_tongue_rele ase
    L 11/09/2022 - 05:51:10: [SM] [20] AcceptEntityInput
    L 11/09/2022 - 05:51:10: [SM] [21] Line 280, l4d_smoker_sharpshooter.sp:ealDamage
    L 11/09/2022 - 05:51:10: [SM] [22] Line 220, l4d_smoker_sharpshooter.sp::event_tongue_rele ase
    L 11/09/2022 - 05:51:10: [SM] [24] AcceptEntityInput
    L 11/09/2022 - 05:51:10: [SM] [25] Line 280, l4d_smoker_sharpshooter.sp:ealDamage
    L 11/09/2022 - 05:51:10: [SM] [26] Line 220, l4d_smoker_sharpshooter.sp::event_tongue_rele ase
    L 11/09/2022 - 05:51:10: [SM] [28] AcceptEntityInput
    L 11/09/2022 - 05:51:10: [SM] [29] Line 280, l4d_smoker_sharpshooter.sp:ealDamage
    L 11/09/2022 - 05:51:10: [SM] [30] Line 220, l4d_smoker_sharpshooter.sp::event_tongue_rele ase
    L 11/09/2022 - 05:51:10: [SM] [32] AcceptEntityInput
    sonic155 is offline
    finishlast
    Senior Member
    Join Date: Nov 2018
    Location: In Reno with the vitamin
    Old 11-11-2022 , 12:57   Re: [L4D] Smoker Sharpshooter (v1.0.1, 2022-06-19)
    Reply With Quote #4

    I wonder why event_tongue_release fires so often. um
    __________________
    finishlast is offline
    sonic155
    Senior Member
    Join Date: Mar 2019
    Old 11-11-2022 , 20:15   Re: [L4D] Smoker Sharpshooter (v1.0.1, 2022-06-19)
    Reply With Quote #5

    not sure but it crashs the game of whoever the smoker tongue hits then this is spammed
    sonic155 is offline
    finishlast
    Senior Member
    Join Date: Nov 2018
    Location: In Reno with the vitamin
    Old 11-12-2022 , 13:02   Re: [L4D] Smoker Sharpshooter (v1.0.1, 2022-06-19)
    Reply With Quote #6

    I think Not enough space on the stack is some kind of recursive loop buffer overflow.

    I now put "Dealdamage" from event_tongue_release to event_tongue_grab, maybe that makes a difference.

    Maybe event_tongue_release doesn't like the way how I cut the tongue and then missbehave?

    Let's try the grab event, wouldn't matter in this case anyways where I deal damage.

    Updated first post.
    __________________

    Last edited by finishlast; 11-15-2022 at 07:53.
    finishlast is offline
    sonic155
    Senior Member
    Join Date: Mar 2019
    Old 11-13-2022 , 19:34   Re: [L4D] Smoker Sharpshooter (v1.0.1, 2022-06-19)
    Reply With Quote #7

    Tested works great =)
    sonic155 is offline
    faka
    New Member
    Join Date: Sep 2023
    Location: Colombia
    Old 09-03-2023 , 12:42   Re: [L4D] Smoker Sharpshooter (v1.0.2, 2022-11-12)
    Reply With Quote #8

    Sometimes when a Smoker SharpShooter kills a survivor it becomes invincible...
    faka 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 08:25.


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