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

[L4D2] Weapon Destroy


Post New Thread Reply   
 
Thread Tools Display Modes
Author
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Plugin ID:
6466
Plugin Version:
5.0.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Your weapon may break.
    Old 03-10-2019 , 22:42   [L4D2] Weapon Destroy
    Reply With Quote #1

    Description:
    In some moment your weapon can break and you will not be able to shoot.

    Commands
    • sm_wd_config_dump - dumps config
    • sm_wd_config_reload - reloads config

    Note
    • Config must be placed to sourcemod/data/
    Attached Files
    File Type: cfg weapons_destroying_chances.cfg (1.5 KB, 207 views)
    File Type: sp Get Plugin or Get Source (l4d2_weapon_destroy.sp - 320 views - 9.6 KB)

    Last edited by BHaType; 01-19-2022 at 19:39. Reason: Removed DEBUG
    BHaType is offline
    Send a message via AIM to BHaType
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 03-11-2019 , 04:42   Re: [L4D2] Weapon Destroy
    Reply With Quote #2

    Good idea. Nicely done )
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    mikaelangelis
    Senior Member
    Join Date: Oct 2017
    Old 03-11-2019 , 21:26   Re: [L4D2] Weapon Destroy
    Reply With Quote #3

    cool LOL. makes it realistic as it is irl when you overheat the barrel or get jammed LOL

    Last edited by mikaelangelis; 03-11-2019 at 21:47.
    mikaelangelis is offline
    theproperson
    Member
    Join Date: Feb 2017
    Old 03-12-2019 , 03:49   Re: [L4D2] Weapon Destroy
    Reply With Quote #4

    I keep trying to compile after only changing the chat / hint message text to English and get these errors

    Desktop\WeaponDestroy.sp(1) : error 010: invalid function or declaration
    Desktop\WeaponDestroy.sp(82) : error 017: undefined symbol "GetPlayerWeaponSlot"
    Desktop\WeaponDestroy.sp(121) : error 017: undefined symbol "GetPlayerWeaponSlot"

    Any suggestions?
    theproperson is offline
    BHaType
    Great Tester of Whatever
    Join Date: Jun 2018
    Old 03-12-2019 , 04:11   Re: [L4D2] Weapon Destroy
    Reply With Quote #5

    Code?
    BHaType is offline
    Send a message via AIM to BHaType
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 03-12-2019 , 12:54   Re: [L4D2] Weapon Destroy
    Reply With Quote #6

    Quote:
    Originally Posted by BHaType View Post
    Code?
    Those compile errors are due to the first 2 lines of your code.

    Change this:
    PHP Code:
    #include sdkhooks
    #include sdktools 
    To this:
    PHP Code:
    #include <sdkhooks>
    #include <sdktools> 
    __________________
    Psyk0tik is offline
    BHaType
    Great Tester of Whatever
    Join Date: Jun 2018
    Old 03-12-2019 , 15:53   Re: [L4D2] Weapon Destroy
    Reply With Quote #7

    Thanks. Updated.
    BHaType is offline
    Send a message via AIM to BHaType
    theproperson
    Member
    Join Date: Feb 2017
    Old 03-12-2019 , 23:38   Re: [L4D2] Weapon Destroy
    Reply With Quote #8

    Quote:
    Originally Posted by BHaType View Post
    Code?
    Tried your newly updated version and just translated Russian to English, still getting those same errors and can't compile but attached .sp
    Attached Files
    File Type: sp Get Plugin or Get Source (WeaponDestroy.sp - 481 views - 6.8 KB)

    Last edited by theproperson; 03-12-2019 at 23:43.
    theproperson is offline
    BHaType
    Great Tester of Whatever
    Join Date: Jun 2018
    Old 03-12-2019 , 23:49   Re: [L4D2] Weapon Destroy
    Reply With Quote #9

    Quote:
    Originally Posted by theproperson View Post
    Tried your newly updated version and just translated Russian to English, still getting those same errors and can't compile but attached .sp
    Compiles without any errors.
    Attached Files
    File Type: smx WeaponDestroy(eng).smx (7.5 KB, 360 views)
    BHaType is offline
    Send a message via AIM to BHaType
    theproperson
    Member
    Join Date: Feb 2017
    Old 03-13-2019 , 00:44   Re: [L4D2] Weapon Destroy
    Reply With Quote #10

    Quote:
    Originally Posted by BHaType View Post
    Compiles without any errors.
    Thank you very much!
    theproperson 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 16:13.


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