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

[L4D] Halloween Jumpscare (v0.0.7, 2023-10-31)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Plugin ID:
8236
Plugin Version:
0.0.7
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin will make you pee in fear on halloween
    Old 10-07-2022 , 09:12   [L4D] Halloween Jumpscare (v0.0.7, 2023-10-31)
    Reply With Quote #1

    This plugin will spawn a witch, boomer, hunter, smoker or tank (only the model) in front of the survivors every 30 seconds with a 10% chance.

    Oh, and they will scream random screams and vanish after 3 seconds.

    Features:
    It will make you pee in fear on halloween.

    CVAR/Command list:
    PHP Code:

    // Percent chance for a jumpscare. 1-100 
    // -
    // Default: "10"
    l4d_jumpscarechance "10"

    // Set jumpscare interval if you set it lower than 2 seconds it is a real freakshow
    // -
    // Default: "30.0"
    l4d_jumpscareinterval "30.0" 
    Changelog:
    2022-10-07 (v0.0.1)
    * Initial release.,
    2022-10-07 (v0.0.2)
    * added cVar for interval and chance
    2022-10-09 (v0.0.3)
    * added animation
    * added dynamic height spawn code from silvers fork of Zuko & McFlurry [L4D2] Weapon/Zombie Spawner
    2022-10-11 (v0.0.4)
    * added check for Exception reported: Client index -1 is invalid, suggestion by Marttt
    2022-10-12 (v0.0.5)
    - added small firework on vanish to make me happy
    2022-10-19 (v0.0.6)
    - added TIMER_FLAG_NO_MAPCHANGE for mapchange
    2023-10-31 (v0.0.7)
    - try to fix cvars & added boomer, hunter, smoker, tank

    Installation instructions:
    Click 'Get Plugin' button, place SMX in the sourcemod plugins folder. Or compile it yourself.
    After you did that or altered the cvars please do a map change.

    Dependencies:
    None

    Bugs:
    for some reason it needs a map change after changing cvars or being activated.

    If you think nothing happens please keep in mind that it spawns the model every 30 seconds with 10% chance AND for 1 of the 4 survivors only.


    Plans:
    none

    Credits:
    Based on code snippets from:
    * Marttt - the whole programming contruction I stole from your tank car smash plugin. https://forums.alliedmods.net/showthread.php?t=335105
    * Includes dynamic height spawn code from silvers fork of Zuko & McFlurry [L4D2] Weapon/Zombie Spawner https://forums.alliedmods.net/showthread.php?p=993960
    * Krufftys Killers & King_OXO reporting problem with invalid index
    * Marttts suggetion to fix it
    * Sout12 reporting problem with timer
    Attached Thumbnails
    Click image for larger version

Name:	scare.jpg
Views:	856
Size:	92.0 KB
ID:	197304  
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_halloween_jumpscare.sp - 135 views - 16.5 KB)
    __________________

    Last edited by finishlast; 10-31-2023 at 09:06.
    finishlast is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 10-09-2022 , 12:25   Re: [L4D] Halloween Jumpscare (v0.0.3, 2022-10-09)
    Reply With Quote #2

    Nice idea, funny!
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    finishlast
    Senior Member
    Join Date: Nov 2018
    Location: In Reno with the vitamin
    Old 10-09-2022 , 13:16   Re: [L4D] Halloween Jumpscare (v0.0.3, 2022-10-09)
    Reply With Quote #3

    Hahaha, yes took me only 3 years.

    https://forums.alliedmods.net/showpo...81&postcount=7
    __________________

    Last edited by finishlast; 10-09-2022 at 13:17.
    finishlast is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 10-09-2022 , 13:31   Re: [L4D] Halloween Jumpscare (v0.0.3, 2022-10-09)
    Reply With Quote #4

    Quote:
    Originally Posted by finishlast View Post
    Hahaha, yes took me only 3 years.[/url]
    haha, not much (if from zero knowledge).
    Mentioned death soul took me 1 month (not from zero).
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Krufftys Killers
    Senior Member
    Join Date: Jan 2014
    Old 10-10-2022 , 19:08   Re: [L4D] Halloween Jumpscare (v0.0.3, 2022-10-09)
    Reply With Quote #5

    started gettig this error
    L 10/09/2022 - 19:19:02: Info (map "c7m1_docks") (file "C:\servers\kkiller\left4dead2\addons\sourcem od\logs\errors_20221009.log")
    L 10/09/2022 - 19:19:02: [SM] Exception reported: Client index -1 is invalid
    L 10/09/2022 - 19:19:02: [SM] Blaming: l4d_halloween_jumpscare.smx
    L 10/09/2022 - 19:19:02: [SM] Call stack trace:
    L 10/09/2022 - 19:19:02: [SM] [0] IsClientInGame
    L 10/09/2022 - 19:19:02: [SM] [1] Line 168, /home/forums/content/files/2/8/8/8/6/8/197310.attach::gate
    L 10/09/2022 - 195:23: Error log file session closed.
    Krufftys Killers is offline
    King_OXO
    Senior Member
    Join Date: Dec 2020
    Location: Brazil
    Old 10-11-2022 , 08:15   Re: [L4D] Halloween Jumpscare (v0.0.3, 2022-10-09)
    Reply With Quote #6

    Quote:
    Originally Posted by Krufftys Killers View Post
    started gettig this error
    L 10/09/2022 - 19:19:02: Info (map "c7m1_docks") (file "C:\servers\kkiller\left4dead2\addons\sourcem od\logs\errors_20221009.log")
    L 10/09/2022 - 19:19:02: [SM] Exception reported: Client index -1 is invalid
    L 10/09/2022 - 19:19:02: [SM] Blaming: l4d_halloween_jumpscare.smx
    L 10/09/2022 - 19:19:02: [SM] Call stack trace:
    L 10/09/2022 - 19:19:02: [SM] [0] IsClientInGame
    L 10/09/2022 - 19:19:02: [SM] [1] Line 168, /home/forums/content/files/2/8/8/8/6/8/197310.attach::gate
    L 10/09/2022 - 195:23: Error log file session closed.
    Only for l4d
    __________________
    My Noob Plugins

    Discord:WhiteFire#1301
    Steam:WhiteFire
    Youtube
    King_OXO is offline
    finishlast
    Senior Member
    Join Date: Nov 2018
    Location: In Reno with the vitamin
    Old 10-11-2022 , 12:07   Re: [L4D] Halloween Jumpscare (v0.0.3, 2022-10-09)
    Reply With Quote #7

    Thanks Marttt, I hope the new check I added inside the gate elimitated the error.
    updated to v 0.0.4 on front page

    If you just replace the smx in the server make sure to change the map after or strange things will happen

    This plugin might work on L4d2, haven't tested it though.
    __________________

    Last edited by finishlast; 10-11-2022 at 15:08.
    finishlast is offline
    Sout12
    Member
    Join Date: May 2017
    Old 10-19-2022 , 00:03   Re: [L4D] Halloween Jumpscare (v0.0.5, 2022-10-11)
    Reply With Quote #8

    Hello, I was testing this plugin on L4D2 it worked but it seems like the chance cvars didn't work at least on l4d2 so I tried to delete it but now, I hear the witch scream sometimes randomly without the plugin installed, any ideas?
    Sout12 is offline
    finishlast
    Senior Member
    Join Date: Nov 2018
    Location: In Reno with the vitamin
    Old 10-19-2022 , 05:17   Re: [L4D] Halloween Jumpscare (v0.0.5, 2022-10-11)
    Reply With Quote #9

    Think it is a problem with the timer. Updated to version 0.0.6.

    The cvar chance works but you have to change to another map or restart the server to take effect.

    If you delete the smx file and restart the server, she will be gone.
    __________________

    Last edited by finishlast; 10-19-2022 at 05:52.
    finishlast is offline
    McRi0t
    Junior Member
    Join Date: Oct 2022
    Old 10-21-2022 , 21:15   Re: [L4D] Halloween Jumpscare (v0.0.5, 2022-10-11)
    Reply With Quote #10

    Quote:
    Originally Posted by finishlast View Post
    Think it is a problem with the timer. Updated to version 0.0.6.

    The cvar chance works but you have to change to another map or restart the server to take effect.

    If you delete the smx file and restart the server, she will be gone.
    This looks awesome!
    I don't suppose someone can tweak it so it does work for L4D2 before Halloween? I would love to scare the crap out of my friends >:-)

    Last edited by McRi0t; 10-21-2022 at 21:15.
    McRi0t 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 00:45.


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